[RFC PATCH] scsi: ufs: ufshpb: ufshpb_remove_lun() can be static
by kbuild test robot
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
ufshpb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c
index 4a10e7b6f7949..1c1c669e3ee35 100644
--- a/drivers/scsi/ufs/ufshpb.c
+++ b/drivers/scsi/ufs/ufshpb.c
@@ -37,7 +37,7 @@ struct ufshpb_lun *ufshpb_luns;
static unsigned long ufshpb_lun_map[BITS_TO_LONGS(UFSHPB_MAX_LUNS)];
static u8 ufshpb_lun_lookup[UFSHPB_MAX_LUNS];
-void ufshpb_remove_lun(u8 lun)
+static void ufshpb_remove_lun(u8 lun)
{
struct ufshpb_lun *hpb;
2 years, 4 months
[wsa:i2c/for-next 89/93] i2c-mt65xx.c:undefined reference to `__divdi3'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
head: 41895bfee70e7b8a5af7deae458fbf02c1fe782a
commit: 5f1ae73d538a84f96f53c2381b50bc278181136c [89/93] i2c: mediatek: Add i2c ac-timing adjust support
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 5f1ae73d538a84f96f53c2381b50bc278181136c
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
ld: drivers/i2c/busses/i2c-mt65xx.o: in function `mtk_i2c_calculate_speed':
>> i2c-mt65xx.c:(.text+0x5d2): undefined reference to `__divdi3'
>> ld: i2c-mt65xx.c:(.text+0x60f): undefined reference to `__divdi3'
ld: i2c-mt65xx.c:(.text+0x640): undefined reference to `__divdi3'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[vfs:work.copy_regset_to_user 1/2] arch/arm64/kernel/ptrace.c:1243:2: error: unknown type name 'pt_regs'; use 'struct' keyword to refer to the type
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.copy_regset_to_user
head: 2008e606213bbc8a3beb071ce8669b55457f2bed
commit: 12946caf9e4b122cfb51bad5bf0c8dfcc716b82f [1/2] arm64: take fetching compat reg out of pt_regs into a new helper
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 12946caf9e4b122cfb51bad5bf0c8dfcc716b82f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
arch/arm64/kernel/ptrace.c: In function 'compat_get_user_reg':
>> arch/arm64/kernel/ptrace.c:1243:2: error: unknown type name 'pt_regs'; use 'struct' keyword to refer to the type
1243 | pt_regs *regs = task_pt_regs(target);
| ^~~~~~~
| struct
In file included from include/linux/rcupdate.h:30,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
>> arch/arm64/kernel/ptrace.c:1243:31: error: 'target' undeclared (first use in this function)
1243 | pt_regs *regs = task_pt_regs(target);
| ^~~~~~
arch/arm64/include/asm/processor.h:267:52: note: in definition of macro 'task_pt_regs'
267 | ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
| ^
arch/arm64/kernel/ptrace.c:1243:31: note: each undeclared identifier is reported only once for each function it appears in
1243 | pt_regs *regs = task_pt_regs(target);
| ^~~~~~
arch/arm64/include/asm/processor.h:267:52: note: in definition of macro 'task_pt_regs'
267 | ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
| ^
>> arch/arm64/kernel/ptrace.c:1247:14: error: request for member 'pc' in something not a structure or union
1247 | return regs->pc;
| ^~
>> arch/arm64/kernel/ptrace.c:1249:35: error: request for member 'pstate' in something not a structure or union
1249 | return pstate_to_compat_psr(regs->pstate);
| ^~
>> arch/arm64/kernel/ptrace.c:1251:14: error: request for member 'orig_x0' in something not a structure or union
1251 | return regs->orig_x0;
| ^~
>> arch/arm64/kernel/ptrace.c:1253:14: error: request for member 'regs' in something not a structure or union
1253 | return regs->regs[idx];
| ^~
>> arch/arm64/kernel/ptrace.c:1255:1: warning: control reaches end of non-void function [-Wreturn-type]
1255 | }
| ^
vim +1243 arch/arm64/kernel/ptrace.c
1240
1241 static inline compat_ulong_t compat_get_user_reg(struct task_struct *task, int idx)
1242 {
> 1243 pt_regs *regs = task_pt_regs(target);
1244
1245 switch (idx) {
1246 case 15:
> 1247 return regs->pc;
1248 case 16:
> 1249 return pstate_to_compat_psr(regs->pstate);
1250 case 17:
> 1251 return regs->orig_x0;
1252 default:
> 1253 return regs->regs[idx];
1254 }
> 1255 }
1256
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[RFC PATCH] scsi: ufshpb: ufshpb_luns_conf can be static
by kbuild test robot
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
ufshpb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c
index 181917f662f56..1bd2030d0897b 100644
--- a/drivers/scsi/ufs/ufshpb.c
+++ b/drivers/scsi/ufs/ufshpb.c
@@ -66,8 +66,8 @@ struct ufshpb_lun {
struct ufshpb_config *ufshpb_conf;
-struct ufshpb_lun_config *ufshpb_luns_conf;
-struct ufshpb_lun *ufshpb_luns;
+static struct ufshpb_lun_config *ufshpb_luns_conf;
+static struct ufshpb_lun *ufshpb_luns;
static unsigned long ufshpb_lun_map[BITS_TO_LONGS(UFSHPB_MAX_LUNS)];
static u8 ufshpb_lun_lookup[UFSHPB_MAX_LUNS];
2 years, 4 months
Re: [PATCH] fnic: to not call 'scsi_done()' for unhandled commands
by kbuild test robot
Hi Hannes,
I love your patch! Perhaps something to improve:
[auto build test WARNING on scsi/for-next]
[also build test WARNING on mkp-scsi/for-next v5.7-rc5 next-20200515]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Hannes-Reinecke/fnic-to-not-call...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 9d4cf5bd421fb6467ff5f00e26a37527246dd4d6)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/scsi/fnic/fnic_scsi.c:1419:1: warning: unused label 'cleanup_scsi_cmd' [-Wunused-label]
cleanup_scsi_cmd:
^~~~~~~~~~~~~~~~~
1 warning generated.
vim +/cleanup_scsi_cmd +1419 drivers/scsi/fnic/fnic_scsi.c
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1361
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1362 static void fnic_cleanup_io(struct fnic *fnic, int exclude_id)
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1363 {
1259c5dc752474 Sesidhar Beddel 2013-09-09 1364 int i;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1365 struct fnic_io_req *io_req;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1366 unsigned long flags = 0;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1367 struct scsi_cmnd *sc;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1368 spinlock_t *io_lock;
14eb5d905d16ec Hiral Patel 2013-02-12 1369 unsigned long start_time = 0;
67125b0287a9e6 Hiral Patel 2013-09-12 1370 struct fnic_stats *fnic_stats = &fnic->fnic_stats;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1371
fc85799ee362e3 Hiral Patel 2013-09-09 1372 for (i = 0; i < fnic->fnic_max_tag_id; i++) {
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1373 if (i == exclude_id)
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1374 continue;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1375
1259c5dc752474 Sesidhar Beddel 2013-09-09 1376 io_lock = fnic_io_lock_tag(fnic, i);
1259c5dc752474 Sesidhar Beddel 2013-09-09 1377 spin_lock_irqsave(io_lock, flags);
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1378 sc = scsi_host_find_tag(fnic->lport->host, i);
1259c5dc752474 Sesidhar Beddel 2013-09-09 1379 if (!sc) {
1259c5dc752474 Sesidhar Beddel 2013-09-09 1380 spin_unlock_irqrestore(io_lock, flags);
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1381 continue;
1259c5dc752474 Sesidhar Beddel 2013-09-09 1382 }
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1383
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1384 io_req = (struct fnic_io_req *)CMD_SP(sc);
03298552cba38f Hiral Patel 2013-02-12 1385 if ((CMD_FLAGS(sc) & FNIC_DEVICE_RESET) &&
03298552cba38f Hiral Patel 2013-02-12 1386 !(CMD_FLAGS(sc) & FNIC_DEV_RST_DONE)) {
03298552cba38f Hiral Patel 2013-02-12 1387 /*
03298552cba38f Hiral Patel 2013-02-12 1388 * We will be here only when FW completes reset
03298552cba38f Hiral Patel 2013-02-12 1389 * without sending completions for outstanding ios.
03298552cba38f Hiral Patel 2013-02-12 1390 */
03298552cba38f Hiral Patel 2013-02-12 1391 CMD_FLAGS(sc) |= FNIC_DEV_RST_DONE;
03298552cba38f Hiral Patel 2013-02-12 1392 if (io_req && io_req->dr_done)
03298552cba38f Hiral Patel 2013-02-12 1393 complete(io_req->dr_done);
03298552cba38f Hiral Patel 2013-02-12 1394 else if (io_req && io_req->abts_done)
03298552cba38f Hiral Patel 2013-02-12 1395 complete(io_req->abts_done);
03298552cba38f Hiral Patel 2013-02-12 1396 spin_unlock_irqrestore(io_lock, flags);
03298552cba38f Hiral Patel 2013-02-12 1397 continue;
03298552cba38f Hiral Patel 2013-02-12 1398 } else if (CMD_FLAGS(sc) & FNIC_DEVICE_RESET) {
03298552cba38f Hiral Patel 2013-02-12 1399 spin_unlock_irqrestore(io_lock, flags);
03298552cba38f Hiral Patel 2013-02-12 1400 continue;
03298552cba38f Hiral Patel 2013-02-12 1401 }
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1402 if (!io_req) {
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1403 spin_unlock_irqrestore(io_lock, flags);
cb830d88a62fde Hannes Reinecke 2020-05-15 1404 continue;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1405 }
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1406
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1407 CMD_SP(sc) = NULL;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1408
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1409 spin_unlock_irqrestore(io_lock, flags);
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1410
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1411 /*
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1412 * If there is a scsi_cmnd associated with this io_req, then
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1413 * free the corresponding state
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1414 */
14eb5d905d16ec Hiral Patel 2013-02-12 1415 start_time = io_req->start_time;
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1416 fnic_release_ioreq_buf(fnic, io_req, sc);
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1417 mempool_free(io_req, fnic->io_req_pool);
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1418
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 @1419 cleanup_scsi_cmd:
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1420 sc->result = DID_TRANSPORT_DISRUPTED << 16;
668186637e013f Hiral Shah 2014-04-18 1421 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
e8bfe3e7ffc380 Satish Kharat 2019-01-14 1422 "%s: tag:0x%x : sc:0x%p duration = %lu DID_TRANSPORT_DISRUPTED\n",
e8bfe3e7ffc380 Satish Kharat 2019-01-14 1423 __func__, sc->request->tag, sc,
e8bfe3e7ffc380 Satish Kharat 2019-01-14 1424 (jiffies - start_time));
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1425
67125b0287a9e6 Hiral Patel 2013-09-12 1426 if (atomic64_read(&fnic->io_cmpl_skip))
67125b0287a9e6 Hiral Patel 2013-09-12 1427 atomic64_dec(&fnic->io_cmpl_skip);
67125b0287a9e6 Hiral Patel 2013-09-12 1428 else
67125b0287a9e6 Hiral Patel 2013-09-12 1429 atomic64_inc(&fnic_stats->io_stats.io_completions);
67125b0287a9e6 Hiral Patel 2013-09-12 1430
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1431 /* Complete the command to SCSI */
4d7007b49d523d Hiral Patel 2013-02-12 1432 if (sc->scsi_done) {
e8bfe3e7ffc380 Satish Kharat 2019-01-14 1433 if (!(CMD_FLAGS(sc) & FNIC_IO_ISSUED))
e8bfe3e7ffc380 Satish Kharat 2019-01-14 1434 shost_printk(KERN_ERR, fnic->lport->host,
e8bfe3e7ffc380 Satish Kharat 2019-01-14 1435 "Calling done for IO not issued to fw: tag:0x%x sc:0x%p\n",
e8bfe3e7ffc380 Satish Kharat 2019-01-14 1436 sc->request->tag, sc);
e8bfe3e7ffc380 Satish Kharat 2019-01-14 1437
4d7007b49d523d Hiral Patel 2013-02-12 1438 FNIC_TRACE(fnic_cleanup_io,
4d7007b49d523d Hiral Patel 2013-02-12 1439 sc->device->host->host_no, i, sc,
4d7007b49d523d Hiral Patel 2013-02-12 1440 jiffies_to_msecs(jiffies - start_time),
4d7007b49d523d Hiral Patel 2013-02-12 1441 0, ((u64)sc->cmnd[0] << 32 |
4d7007b49d523d Hiral Patel 2013-02-12 1442 (u64)sc->cmnd[2] << 24 |
4d7007b49d523d Hiral Patel 2013-02-12 1443 (u64)sc->cmnd[3] << 16 |
4d7007b49d523d Hiral Patel 2013-02-12 1444 (u64)sc->cmnd[4] << 8 | sc->cmnd[5]),
4d7007b49d523d Hiral Patel 2013-02-12 1445 (((u64)CMD_FLAGS(sc) << 32) | CMD_STATE(sc)));
4d7007b49d523d Hiral Patel 2013-02-12 1446
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1447 sc->scsi_done(sc);
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1448 }
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1449 }
4d7007b49d523d Hiral Patel 2013-02-12 1450 }
5df6d737dd4b0f Abhijeet Joglekar 2009-04-17 1451
:::::: The code at line 1419 was first introduced by commit
:::::: 5df6d737dd4b0fe9eccf943abb3677cfea05a6c4 [SCSI] fnic: Add new Cisco PCI-Express FCoE HBA
:::::: TO: Abhijeet Joglekar <abjoglek(a)cisco.com>
:::::: CC: James Bottomley <James.Bottomley(a)HansenPartnership.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-review:UPDATE-20200514-234943/Stanislav-Lisovskiy/Consider-DBuf-bandwidth-when-calculating-CDCLK/20200514-232846 6/7] drivers/gpu/drm/i915/display/intel_display.c:14736:21: error: unused variable 'crtc'
by kbuild test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200514-234943/Stanislav...
head: 299fe22b95c5eec191b4fadb8c149ae6c5262f6c
commit: 605fbe4b20bd78e247088acbe3b2d3a63f3960cd [6/7] drm/i915: Adjust CDCLK accordingly to our DBuf bw needs
config: i386-randconfig-a013-20200515 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 605fbe4b20bd78e247088acbe3b2d3a63f3960cd
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/i915/display/intel_display.c: In function 'intel_atomic_check_planes':
drivers/gpu/drm/i915/display/intel_display.c:14695:2: error: 'new_cdclk_state' undeclared (first use in this function); did you mean 'intel_cdclk_state'?
new_cdclk_state = intel_atomic_get_new_cdclk_state(state);
^~~~~~~~~~~~~~~
intel_cdclk_state
drivers/gpu/drm/i915/display/intel_display.c:14695:2: note: each undeclared identifier is reported only once for each function it appears in
drivers/gpu/drm/i915/display/intel_display.c:14698:4: error: 'need_cdclk_calc' undeclared (first use in this function); did you mean 'intel_cdclk_vals'?
*need_cdclk_calc = true;
^~~~~~~~~~~~~~~
intel_cdclk_vals
In file included from include/linux/list.h:9:0,
from include/linux/kobject.h:19,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/linux/i2c.h:13,
from drivers/gpu/drm/i915/display/intel_display.c:27:
include/linux/kernel.h:866:2: error: first argument to '__builtin_choose_expr' not a constant
__builtin_choose_expr(__safe_cmp(x, y), ^
include/linux/kernel.h:882:19: note: in expansion of macro '__careful_cmp'
#define max(x, y) __careful_cmp(x, y, >)
^~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:14711:15: note: in expansion of macro 'max'
min_cdclk = max(new_cdclk_state->min_cdclk[crtc->pipe], min_cdclk);
^~~
drivers/gpu/drm/i915/display/intel_display.c: In function 'intel_atomic_check_cdclk':
>> drivers/gpu/drm/i915/display/intel_display.c:14736:21: error: unused variable 'crtc' [-Werror=unused-variable]
struct intel_crtc *crtc;
^~~~
>> drivers/gpu/drm/i915/display/intel_display.c:14735:27: error: unused variable 'new_crtc_state' [-Werror=unused-variable]
struct intel_crtc_state *new_crtc_state;
^~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/display/intel_display.c:14734:28: error: unused variable 'new_cdclk_state' [-Werror=unused-variable]
struct intel_cdclk_state *new_cdclk_state;
^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/crtc +14736 drivers/gpu/drm/i915/display/intel_display.c
14726
14727 static int intel_atomic_check_cdclk(struct intel_atomic_state *state,
14728 bool *need_cdclk_calc)
14729 {
14730 int i;
14731 struct intel_plane_state *plane_state;
14732 struct intel_plane *plane;
14733 int ret;
14734 struct intel_cdclk_state *new_cdclk_state;
14735 struct intel_crtc_state *new_crtc_state;
14736 struct intel_crtc *crtc;
14737 /*
14738 * active_planes bitmask has been updated, and potentially
14739 * affected planes are part of the state. We can now
14740 * compute the minimum cdclk for each plane.
14741 */
14742 for_each_new_intel_plane_in_state(state, plane, plane_state, i) {
14743 ret = intel_plane_calc_min_cdclk(state, plane, need_cdclk_calc);
14744 if (ret)
14745 return ret;
14746 }
14747
14748 return 0;
14749 }
14750
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[dborkman:pr/getname 8/10] net/ipv4/af_inet.c:784:3: error: implicit declaration of function 'BPF_CGROUP_RUN_SA_PROG_LOCK'; did you mean 'BPF_CGROUP_RUN_PROG_SYSCTL'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git pr/getname
head: 9847f84318d0ff763c0e52bd2095651f2ae3e8b9
commit: e2f4f09309b41e70841ab4a38eff4dc9925a6f76 [8/10] bpf: add get{peer,sock}name attach types for sock_addr
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e2f4f09309b41e70841ab4a38eff4dc9925a6f76
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
net/ipv4/af_inet.c: In function 'inet_getname':
>> net/ipv4/af_inet.c:784:3: error: implicit declaration of function 'BPF_CGROUP_RUN_SA_PROG_LOCK'; did you mean 'BPF_CGROUP_RUN_PROG_SYSCTL'? [-Werror=implicit-function-declaration]
784 | BPF_CGROUP_RUN_SA_PROG_LOCK(sk, (struct sockaddr *)sin,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| BPF_CGROUP_RUN_PROG_SYSCTL
cc1: some warnings being treated as errors
--
net/ipv6/af_inet6.c: In function 'inet6_getname':
>> net/ipv6/af_inet6.c:536:3: error: implicit declaration of function 'BPF_CGROUP_RUN_SA_PROG_LOCK'; did you mean 'BPF_CGROUP_RUN_PROG_SYSCTL'? [-Werror=implicit-function-declaration]
536 | BPF_CGROUP_RUN_SA_PROG_LOCK(sk, (struct sockaddr *)sin,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| BPF_CGROUP_RUN_PROG_SYSCTL
cc1: some warnings being treated as errors
vim +784 net/ipv4/af_inet.c
757
758 /*
759 * This does both peername and sockname.
760 */
761 int inet_getname(struct socket *sock, struct sockaddr *uaddr,
762 int peer)
763 {
764 struct sock *sk = sock->sk;
765 struct inet_sock *inet = inet_sk(sk);
766 DECLARE_SOCKADDR(struct sockaddr_in *, sin, uaddr);
767
768 sin->sin_family = AF_INET;
769 if (peer) {
770 if (!inet->inet_dport ||
771 (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_SYN_SENT)) &&
772 peer == 1))
773 return -ENOTCONN;
774 sin->sin_port = inet->inet_dport;
775 sin->sin_addr.s_addr = inet->inet_daddr;
776 } else {
777 __be32 addr = inet->inet_rcv_saddr;
778 if (!addr)
779 addr = inet->inet_saddr;
780 sin->sin_port = inet->inet_sport;
781 sin->sin_addr.s_addr = addr;
782 }
783 if (cgroup_bpf_enabled)
> 784 BPF_CGROUP_RUN_SA_PROG_LOCK(sk, (struct sockaddr *)sin,
785 peer ? BPF_CGROUP_INET4_GETPEERNAME :
786 BPF_CGROUP_INET4_GETSOCKNAME,
787 NULL);
788 memset(sin->sin_zero, 0, sizeof(sin->sin_zero));
789 return sizeof(*sin);
790 }
791 EXPORT_SYMBOL(inet_getname);
792
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH 09/14] pinctrl: ocelot: Add Sparx5 SoC support
by kbuild test robot
Hi Lars,
I love your patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on pinctrl/devel clk/clk-next linus/master v5.7-rc5 next-20200512]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Lars-Povlsen/Adding-support-for-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/pinctrl/pinctrl-ocelot.c:28: warning: "clrsetbits" redefined
28 | #define clrsetbits(addr, clear, set) |
In file included from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/linux/gpio/driver.h:7,
from drivers/pinctrl/pinctrl-ocelot.c:10:
arch/powerpc/include/asm/io.h:849: note: this is the location of the previous definition
849 | #define clrsetbits(type, addr, clear, set) |
vim +/clrsetbits +28 drivers/pinctrl/pinctrl-ocelot.c
27
> 28 #define clrsetbits(addr, clear, set) \
29 writel((readl(addr) & ~(clear)) | (set), (addr))
30
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months