Re: [PATCH 5/7] genirq/affinity: move group_cpus_evenly() into lib/
by kernel test robot
Hi Ming,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/irq/core]
[also build test WARNING on next-20210813]
[cannot apply to block/for-next linux/master linus/master v5.14-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Ming-Lei/genirq-affinity-abstrac...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 04c2721d3530f0723b4c922a8fa9f26b202a20de
config: hexagon-randconfig-r041-20210814 (attached as .config)
compiler: clang version 12.0.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/759f72186bfdd5c3ba8b53ac0749cf7ba...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ming-Lei/genirq-affinity-abstract-new-API-from-managed-irq-affinity-spread/20210814-203741
git checkout 759f72186bfdd5c3ba8b53ac0749cf7ba930012c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> lib/group_cpus.c:344:17: warning: no previous prototype for function 'group_cpus_evenly' [-Wmissing-prototypes]
struct cpumask *group_cpus_evenly(unsigned int numgrps)
^
lib/group_cpus.c:344:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct cpumask *group_cpus_evenly(unsigned int numgrps)
^
static
1 warning generated.
vim +/group_cpus_evenly +344 lib/group_cpus.c
328
329 /**
330 * group_cpus_evenly - Group all CPUs evenly per NUMA/CPU locality
331 * @numgrps: number of groups
332 *
333 * Return: cpumask array if successful, NULL otherwise. And each element
334 * includes CPUs assigned to this group
335 *
336 * Try to put close CPUs from viewpoint of CPU and NUMA locality into
337 * same group, and run two-stage grouping:
338 * 1) allocate present CPUs on these groups evenly first
339 * 2) allocate other possible CPUs on these groups evenly
340 *
341 * We guarantee in the resulted grouping that all CPUs are covered, and
342 * no same CPU is assigned to different groups
343 */
> 344 struct cpumask *group_cpus_evenly(unsigned int numgrps)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[djwong-xfs:defrag-freespace 309/310] fs/xfs/libxfs/xfs_bmap.c:6611:25: warning: variable 'rtxlen_out' is uninitialized when used here
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git defrag-freespace
head: eac62500d5481c286ef5fac0873d1707175312b6
commit: e17e75a18c97e1f807f4e82707349ffa38c94fa3 [309/310] xfs: fallocate free space into a file
config: mips-randconfig-r004-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs defrag-freespace
git checkout e17e75a18c97e1f807f4e82707349ffa38c94fa3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/xfs/libxfs/xfs_bmap.c:6593:16: warning: variable 'rtxlen_in' set but not used [-Wunused-but-set-variable]
xfs_extlen_t rtxlen_in, rtxlen_out;
^
>> fs/xfs/libxfs/xfs_bmap.c:6611:25: warning: variable 'rtxlen_out' is uninitialized when used here [-Wuninitialized]
mval->br_blockcount = rtxlen_out * mp->m_sb.sb_rextsize;
^~~~~~~~~~
fs/xfs/libxfs/xfs_bmap.c:6593:37: note: initialize the variable 'rtxlen_out' to silence this warning
xfs_extlen_t rtxlen_in, rtxlen_out;
^
= 0
>> fs/xfs/libxfs/xfs_bmap.c:6605:7: warning: variable 'rtx_out' is uninitialized when used here [-Wuninitialized]
if (rtx_out == NULLRTBLOCK)
^~~~~~~
fs/xfs/libxfs/xfs_bmap.c:6592:32: note: initialize the variable 'rtx_out' to silence this warning
xfs_rtblock_t rtx_in, rtx_out;
^
= 0
3 warnings generated.
vim +/rtxlen_out +6611 fs/xfs/libxfs/xfs_bmap.c
6541
6542 /*
6543 * Given a file and a free physical extent, map it into the file at the same
6544 * offset if the file were a sparse image of the physical device. Set @mval to
6545 * whatever mapping we added to the file.
6546 */
6547 int
6548 xfs_bmapi_freesp(
6549 struct xfs_trans **tpp,
6550 struct xfs_inode *ip,
6551 xfs_fsblock_t fsbno,
6552 xfs_extlen_t len,
6553 struct xfs_bmbt_irec *mval)
6554 {
6555 struct xfs_bmbt_irec irec;
6556 struct xfs_mount *mp = ip->i_mount;
6557 xfs_fileoff_t startoff;
6558 bool isrt = XFS_IS_REALTIME_INODE(ip);
6559 int nimaps;
6560 int error;
6561
6562 trace_xfs_bmapi_freesp(ip, fsbno, len);
6563
6564 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK,
6565 XFS_IEXT_ADD_NOSPLIT_CNT);
6566 if (error)
6567 return error;
6568
6569 if (isrt)
6570 startoff = fsbno;
6571 else
6572 startoff = xfs_fsblock_to_fileoff(mp, fsbno);
6573
6574 /* Make sure the entire range is a hole. */
6575 nimaps = 1;
6576 error = xfs_bmapi_read(ip, startoff, len, &irec, &nimaps, 0);
6577 if (error)
6578 return error;
6579
6580 if (irec.br_startoff != startoff ||
6581 irec.br_startblock != HOLESTARTBLOCK ||
6582 irec.br_blockcount < len)
6583 return -EINVAL;
6584
6585 /*
6586 * Allocate the physical extent. We should not have dropped the lock
6587 * since the scan of the free space metadata, so this should work,
6588 * though the length may be adjusted to play nicely with metadata space
6589 * reservations.
6590 */
6591 if (isrt) {
6592 xfs_rtblock_t rtx_in, rtx_out;
> 6593 xfs_extlen_t rtxlen_in, rtxlen_out;
6594 uint32_t mod;
6595
6596 rtx_in = div_u64_rem(fsbno, mp->m_sb.sb_rextsize, &mod);
6597 ASSERT(mod == 0);
6598 rtxlen_in = len / mp->m_sb.sb_rextsize;
6599 ASSERT(len % mp->m_sb.sb_rextsize == 0);
6600
6601 error = xfs_rtallocate_extent(*tpp, rtx_in, 1, rtxlen_in,
6602 &rtxlen_out, 0, 1, &rtx_out);
6603 if (error)
6604 return error;
> 6605 if (rtx_out == NULLRTBLOCK)
6606 return -ENOSPC;
6607 if (rtx_out != rtx_in) {
6608 ASSERT(0);
6609 return -EFSCORRUPTED;
6610 }
> 6611 mval->br_blockcount = rtxlen_out * mp->m_sb.sb_rextsize;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[usb:usb-testing 3/89] drivers/usb/dwc3/gadget.c:687:2: warning: Value stored to 'dep' is never read [clang-analyzer-deadcode.DeadStores]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head: 0d45a1373e669880b8beaecc8765f44cb0241e47
commit: 9f607a309fbe95fc1f77acce5af70766a7142537 [3/89] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements
config: x86_64-randconfig-c007-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id...
git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
git fetch --no-tags usb usb-testing
git checkout 9f607a309fbe95fc1f77acce5af70766a7142537
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
^
drivers/hid/hid-dr.c:259:7: note: Assuming the condition is false
if (field->flags & HID_MAIN_ITEM_RELATIVE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-dr.c:259:3: note: Taking false branch
if (field->flags & HID_MAIN_ITEM_RELATIVE)
^
drivers/hid/hid-dr.c:262:4: note: Calling 'hid_map_usage'
map_abs(usage->hid & 0xf);
^
drivers/hid/hid-dr.c:245:25: note: expanded from macro 'map_abs'
#define map_abs(c) hid_map_usage(hi, usage, bit, max, EV_ABS, (c))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/hid.h:982:2: note: 'input' initialized here
struct input_dev *input = hidinput->input;
^~~~~~~~~~~~~~~~~~~~~~~
include/linux/hid.h:986:2: note: Control jumps to 'case 3:' at line 987
switch (type) {
^
include/linux/hid.h:990:3: note: Execution continues on line 1005
break;
^
include/linux/hid.h:1005:15: note: 'c' is <= 'limit'
if (unlikely(c > limit || !bmap)) {
^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/hid.h:1005:15: note: Left side of '||' is false
if (unlikely(c > limit || !bmap)) {
^
include/linux/hid.h:1005:28: note: Assuming 'bmap' is null
if (unlikely(c > limit || !bmap)) {
^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/hid.h:1005:2: note: Taking true branch
if (unlikely(c > limit || !bmap)) {
^
include/linux/hid.h:1006:3: note: Assuming the condition is true
pr_warn_ratelimited("%s: Invalid code %d type %d\n",
^
include/linux/printk.h:557:2: note: expanded from macro 'pr_warn_ratelimited'
printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:540:6: note: expanded from macro 'printk_ratelimited'
if (__ratelimit(&_rs)) \
^~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:41:28: note: expanded from macro '__ratelimit'
#define __ratelimit(state) ___ratelimit(state, __func__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/hid.h:1006:3: note: Taking true branch
pr_warn_ratelimited("%s: Invalid code %d type %d\n",
^
include/linux/printk.h:557:2: note: expanded from macro 'pr_warn_ratelimited'
printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^
include/linux/printk.h:540:2: note: expanded from macro 'printk_ratelimited'
if (__ratelimit(&_rs)) \
^
include/linux/hid.h:1007:9: note: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'input')
input->name, c, type);
^
include/linux/printk.h:557:49: note: expanded from macro 'pr_warn_ratelimited'
printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/printk.h:541:17: note: expanded from macro 'printk_ratelimited'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
11 warnings generated.
Suppressed 11 warnings (11 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
7 warnings generated.
>> drivers/usb/dwc3/gadget.c:687:2: warning: Value stored to 'dep' is never read [clang-analyzer-deadcode.DeadStores]
dep = dwc->eps[1];
^ ~~~~~~~~~~~
drivers/usb/dwc3/gadget.c:687:2: note: Value stored to 'dep' is never read
dep = dwc->eps[1];
^ ~~~~~~~~~~~
drivers/usb/dwc3/gadget.c:698:3: warning: Value stored to 'dep' is never read [clang-analyzer-deadcode.DeadStores]
dep = dwc->eps[num];
^ ~~~~~~~~~~~~~
drivers/usb/dwc3/gadget.c:698:3: note: Value stored to 'dep' is never read
dep = dwc->eps[num];
^ ~~~~~~~~~~~~~
drivers/usb/dwc3/gadget.c:3110:19: warning: Value stored to 'trb' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue];
^~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/gadget.c:3110:19: note: Value stored to 'trb' during its initialization is never read
struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue];
^~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 4 warnings (3 in non-user code, 1 with check filters).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
11 warnings generated.
drivers/regulator/core.c:1109:2: warning: Value stored to 'count' is never read [clang-analyzer-deadcode.DeadStores]
count += scnprintf(buf + count, len - count, ", %s",
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/regulator/core.c:1109:2: note: Value stored to 'count' is never read
count += scnprintf(buf + count, len - count, ", %s",
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/regulator/core.c:3791:3: warning: Value stored to 'possible_uV' is never read [clang-analyzer-deadcode.DeadStores]
possible_uV = desired_min_uV;
^ ~~~~~~~~~~~~~~
drivers/regulator/core.c:3791:3: note: Value stored to 'possible_uV' is never read
possible_uV = desired_min_uV;
^ ~~~~~~~~~~~~~~
Suppressed 9 warnings (9 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
7 warnings generated.
Suppressed 7 warnings (7 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
8 warnings generated.
Suppressed 8 warnings (8 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
8 warnings generated.
drivers/usb/host/xhci-dbgcap.c:828:4: warning: Value stored to 'ctrl' is never read [clang-analyzer-deadcode.DeadStores]
ctrl = readl(&dbc->regs->control);
^
drivers/usb/host/xhci-dbgcap.c:828:4: note: Value stored to 'ctrl' is never read
Suppressed 7 warnings (7 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
7 warnings generated.
Suppressed 7 warnings (7 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
7 warnings generated.
Suppressed 7 warnings (7 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
5 warnings generated.
include/uapi/linux/phonet.h:176:9: warning: 1st function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
return pn_object(spn->spn_dev, spn->spn_obj);
^
net/phonet/pep.c:776:6: note: Assuming 'skb' is non-null
if (!skb)
^~~~
net/phonet/pep.c:776:2: note: Taking false branch
if (!skb)
^
net/phonet/pep.c:780:6: note: Assuming field 'skc_state' is equal to TCP_LISTEN
if (sk->sk_state != TCP_LISTEN) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
net/phonet/pep.c:780:2: note: Taking false branch
vim +/dep +687 drivers/usb/dwc3/gadget.c
668
669 /**
670 * dwc3_gadget_clear_tx_fifo_size - Clears txfifo allocation
671 * @dwc: pointer to the DWC3 context
672 *
673 * Iterates through all the endpoint registers and clears the previous txfifo
674 * allocations.
675 */
676 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc)
677 {
678 struct dwc3_ep *dep;
679 int fifo_depth;
680 int size;
681 int num;
682
683 if (!dwc->do_fifo_resize)
684 return;
685
686 /* Read ep0IN related TXFIFO size */
> 687 dep = dwc->eps[1];
688 size = dwc3_readl(dwc->regs, DWC3_GTXFIFOSIZ(0));
689 if (DWC3_IP_IS(DWC3))
690 fifo_depth = DWC3_GTXFIFOSIZ_TXFDEP(size);
691 else
692 fifo_depth = DWC31_GTXFIFOSIZ_TXFDEP(size);
693
694 dwc->last_fifo_depth = fifo_depth;
695 /* Clear existing TXFIFO for all IN eps except ep0 */
696 for (num = 3; num < min_t(int, dwc->num_eps, DWC3_ENDPOINTS_NUM);
697 num += 2) {
698 dep = dwc->eps[num];
699 /* Don't change TXFRAMNUM on usb31 version */
700 size = DWC3_IP_IS(DWC3) ? 0 :
701 dwc3_readl(dwc->regs, DWC3_GTXFIFOSIZ(num >> 1)) &
702 DWC31_GTXFIFOSIZ_TXFRAMNUM;
703
704 dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(num >> 1), size);
705 }
706 dwc->num_ep_resized = 0;
707 }
708
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_parse.c:15: warning: "RST" redefined
by kernel test robot
Hi Xia,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a2824f19e6065a0d3735acd9fe7155b104e7edf5
commit: 030a7b5c168d996e590cdd09fffd8ebaa8a5d571 media: platform: Rename jpeg dec file name
date: 12 months ago
config: mips-randconfig-c004-20210816 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 030a7b5c168d996e590cdd09fffd8ebaa8a5d571
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/media/platform/mtk-jpeg/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_parse.c:15: warning: "RST" redefined
15 | #define RST 0xd0
|
In file included from arch/mips/include/asm/mach-rc32434/irq.h:8,
from arch/mips/include/asm/irq.h:18,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from arch/mips/include/asm/hardirq.h:16,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h:11,
from drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_hw.h:13,
from drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_parse.h:11,
from drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_parse.c:11:
arch/mips/include/asm/mach-rc32434/rb.h:15: note: this is the location of the previous definition
15 | #define RST (1 << 15)
|
vim +/RST +15 drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_parse.c
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c Rick Chang 2016-12-14 12
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c Rick Chang 2016-12-14 13 #define TEM 0x01
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c Rick Chang 2016-12-14 14 #define SOF0 0xc0
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c Rick Chang 2016-12-14 @15 #define RST 0xd0
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c Rick Chang 2016-12-14 16 #define SOI 0xd8
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c Rick Chang 2016-12-14 17 #define EOI 0xd9
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c Rick Chang 2016-12-14 18
:::::: The code at line 15 was first introduced by commit
:::::: b2f0d2724ba477d326e9d654d4db1c93e98f8b93 [media] vcodec: mediatek: Add Mediatek JPEG Decoder Driver
:::::: TO: Rick Chang <rick.chang(a)mediatek.com>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)s-opensource.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH] kbuild: Enable -Wimplicit-fallthrough for clang 14.0.0+
by kernel test robot
Hi Nathan,
I love your patch! Perhaps something to improve:
[auto build test WARNING on a2824f19e6065a0d3735acd9fe7155b104e7edf5]
url: https://github.com/0day-ci/linux/commits/Nathan-Chancellor/kbuild-Enable-...
base: a2824f19e6065a0d3735acd9fe7155b104e7edf5
config: mips-randconfig-r003-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/0day-ci/linux/commit/358205a0573f713b532173c9cf3c9efa0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Nathan-Chancellor/kbuild-Enable-Wimplicit-fallthrough-for-clang-14-0-0/20210817-085926
git checkout 358205a0573f713b532173c9cf3c9efa052dc9d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
sound/core/pcm_native.c:273:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable]
struct snd_mask old_mask;
^
sound/core/pcm_native.c:309:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable]
struct snd_interval old_interval;
^
sound/core/pcm_native.c:350:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable]
struct snd_interval old_interval;
^
sound/core/pcm_native.c:349:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable]
struct snd_mask old_mask;
^
sound/core/pcm_native.c:633:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable]
struct snd_mask old_mask;
^
sound/core/pcm_native.c:634:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable]
struct snd_interval old_interval;
^
>> sound/core/pcm_native.c:3815:3: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough]
fallthrough;
^
include/linux/compiler_attributes.h:210:41: note: expanded from macro 'fallthrough'
# define fallthrough __attribute__((__fallthrough__))
^
sound/core/pcm_native.c:3823:3: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough]
fallthrough;
^
include/linux/compiler_attributes.h:210:41: note: expanded from macro 'fallthrough'
# define fallthrough __attribute__((__fallthrough__))
^
8 warnings generated.
vim +3815 sound/core/pcm_native.c
e88e8ae639a490 Takashi Iwai 2006-04-28 3798
^1da177e4c3f41 Linus Torvalds 2005-04-16 3799 static int snd_pcm_mmap(struct file *file, struct vm_area_struct *area)
^1da177e4c3f41 Linus Torvalds 2005-04-16 3800 {
877211f5e1b119 Takashi Iwai 2005-11-17 3801 struct snd_pcm_file * pcm_file;
877211f5e1b119 Takashi Iwai 2005-11-17 3802 struct snd_pcm_substream *substream;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3803 unsigned long offset;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3804
^1da177e4c3f41 Linus Torvalds 2005-04-16 3805 pcm_file = file->private_data;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3806 substream = pcm_file->substream;
7eaa943c8ed8e9 Takashi Iwai 2008-08-08 3807 if (PCM_RUNTIME_CHECK(substream))
7eaa943c8ed8e9 Takashi Iwai 2008-08-08 3808 return -ENXIO;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3809
^1da177e4c3f41 Linus Torvalds 2005-04-16 3810 offset = area->vm_pgoff << PAGE_SHIFT;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3811 switch (offset) {
80fe7430c70859 Arnd Bergmann 2018-04-24 3812 case SNDRV_PCM_MMAP_OFFSET_STATUS_OLD:
80fe7430c70859 Arnd Bergmann 2018-04-24 3813 if (pcm_file->no_compat_mmap || !IS_ENABLED(CONFIG_64BIT))
80fe7430c70859 Arnd Bergmann 2018-04-24 3814 return -ENXIO;
c0dbbdad4e11f8 Gustavo A. R. Silva 2020-07-08 @3815 fallthrough;
80fe7430c70859 Arnd Bergmann 2018-04-24 3816 case SNDRV_PCM_MMAP_OFFSET_STATUS_NEW:
42f945970af9df Takashi Iwai 2017-06-19 3817 if (!pcm_status_mmap_allowed(pcm_file))
^1da177e4c3f41 Linus Torvalds 2005-04-16 3818 return -ENXIO;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3819 return snd_pcm_mmap_status(substream, file, area);
80fe7430c70859 Arnd Bergmann 2018-04-24 3820 case SNDRV_PCM_MMAP_OFFSET_CONTROL_OLD:
80fe7430c70859 Arnd Bergmann 2018-04-24 3821 if (pcm_file->no_compat_mmap || !IS_ENABLED(CONFIG_64BIT))
80fe7430c70859 Arnd Bergmann 2018-04-24 3822 return -ENXIO;
c0dbbdad4e11f8 Gustavo A. R. Silva 2020-07-08 3823 fallthrough;
80fe7430c70859 Arnd Bergmann 2018-04-24 3824 case SNDRV_PCM_MMAP_OFFSET_CONTROL_NEW:
b602aa8eb1a0f5 Takashi Iwai 2017-06-27 3825 if (!pcm_control_mmap_allowed(pcm_file))
^1da177e4c3f41 Linus Torvalds 2005-04-16 3826 return -ENXIO;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3827 return snd_pcm_mmap_control(substream, file, area);
^1da177e4c3f41 Linus Torvalds 2005-04-16 3828 default:
^1da177e4c3f41 Linus Torvalds 2005-04-16 3829 return snd_pcm_mmap_data(substream, file, area);
^1da177e4c3f41 Linus Torvalds 2005-04-16 3830 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 3831 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3832 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 3833
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[jpirko-mlxsw:linecards 60/118] net/core/devlink.c:1987:32: error: use of undeclared identifier 'devlink_list'
by kernel test robot
tree: https://github.com/jpirko/linux_mlxsw linecards
head: 6b580f8d58828d310d04bfebc84f991ed36cdb46
commit: 9c59c78fc8363db10148c774d2bbd66349a00e5f [60/118] devlink: add support to create line card and expose to user
config: powerpc64-randconfig-r016-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/jpirko/linux_mlxsw/commit/9c59c78fc8363db10148c774d2bb...
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw linecards
git checkout 9c59c78fc8363db10148c774d2bbd66349a00e5f
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash net/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> net/core/devlink.c:1987:32: error: use of undeclared identifier 'devlink_list'
list_for_each_entry(devlink, &devlink_list, list) {
^
>> net/core/devlink.c:1987:32: error: use of undeclared identifier 'devlink_list'
>> net/core/devlink.c:1987:32: error: use of undeclared identifier 'devlink_list'
>> net/core/devlink.c:1987:2: error: no member named 'list' in 'devlink'
list_for_each_entry(devlink, &devlink_list, list) {
^ ~~~~
include/linux/list.h:628:13: note: expanded from macro 'list_for_each_entry'
for (pos = list_first_entry(head, typeof(*pos), member); \
^ ~~~~~~
include/linux/list.h:522:2: note: expanded from macro 'list_first_entry'
list_entry((ptr)->next, type, member)
^ ~~~~~~
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^ ~~~~~~
include/linux/kernel.h:498:21: note: expanded from macro 'container_of'
((type *)(__mptr - offsetof(type, member))); })
^ ~~~~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
>> net/core/devlink.c:1987:2: error: assigning to 'struct devlink *' from incompatible type 'void'
list_for_each_entry(devlink, &devlink_list, list) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:628:11: note: expanded from macro 'list_for_each_entry'
for (pos = list_first_entry(head, typeof(*pos), member); \
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net/core/devlink.c:1987:46: error: no member named 'list' in 'struct devlink'
list_for_each_entry(devlink, &devlink_list, list) {
~~~~~~~ ^
include/linux/list.h:629:38: note: expanded from macro 'list_for_each_entry'
!list_entry_is_head(pos, head, member); \
~~~ ^
include/linux/list.h:619:9: note: expanded from macro 'list_entry_is_head'
(&pos->member == (head))
~~~ ^
>> net/core/devlink.c:1987:32: error: use of undeclared identifier 'devlink_list'
list_for_each_entry(devlink, &devlink_list, list) {
^
>> net/core/devlink.c:1987:46: error: no member named 'list' in 'struct devlink'
list_for_each_entry(devlink, &devlink_list, list) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
include/linux/list.h:630:34: note: expanded from macro 'list_for_each_entry'
pos = list_next_entry(pos, member))
~~~~~~~~~~~~~~~~~~~~~^~~~~~~
include/linux/list.h:555:20: note: expanded from macro 'list_next_entry'
list_entry((pos)->member.next, typeof(*(pos)), member)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:511:15: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:494:26: note: expanded from macro 'container_of'
void *__mptr = (void *)(ptr); \
^~~
>> net/core/devlink.c:1987:46: error: no member named 'list' in 'struct devlink'
list_for_each_entry(devlink, &devlink_list, list) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
include/linux/list.h:630:34: note: expanded from macro 'list_for_each_entry'
pos = list_next_entry(pos, member))
~~~~~~~~~~~~~~~~~~~~~^~~~~~~
include/linux/list.h:555:20: note: expanded from macro 'list_next_entry'
list_entry((pos)->member.next, typeof(*(pos)), member)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:511:15: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
>> net/core/devlink.c:1987:46: error: no member named 'list' in 'struct devlink'
list_for_each_entry(devlink, &devlink_list, list) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
include/linux/list.h:630:34: note: expanded from macro 'list_for_each_entry'
pos = list_next_entry(pos, member))
~~~~~~~~~~~~~~~~~~~~~^~~~~~~
include/linux/list.h:555:20: note: expanded from macro 'list_next_entry'
list_entry((pos)->member.next, typeof(*(pos)), member)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:511:15: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
>> net/core/devlink.c:1987:2: error: no member named 'list' in 'devlink'
list_for_each_entry(devlink, &devlink_list, list) {
^ ~~~~
include/linux/list.h:630:13: note: expanded from macro 'list_for_each_entry'
pos = list_next_entry(pos, member))
^ ~~~~~~
include/linux/list.h:555:2: note: expanded from macro 'list_next_entry'
list_entry((pos)->member.next, typeof(*(pos)), member)
^ ~~~~~~
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^ ~~~~~~
include/linux/kernel.h:498:21: note: expanded from macro 'container_of'
((type *)(__mptr - offsetof(type, member))); })
^ ~~~~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
>> net/core/devlink.c:1987:2: error: assigning to 'struct devlink *' from incompatible type 'void'
list_for_each_entry(devlink, &devlink_list, list) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:630:11: note: expanded from macro 'list_for_each_entry'
pos = list_next_entry(pos, member))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
vim +/devlink_list +1987 net/core/devlink.c
1976
1977 static int devlink_nl_cmd_linecard_get_dumpit(struct sk_buff *msg,
1978 struct netlink_callback *cb)
1979 {
1980 struct devlink_linecard *linecard;
1981 struct devlink *devlink;
1982 int start = cb->args[0];
1983 int idx = 0;
1984 int err;
1985
1986 mutex_lock(&devlink_mutex);
> 1987 list_for_each_entry(devlink, &devlink_list, list) {
1988 if (!net_eq(devlink_net(devlink), sock_net(msg->sk)))
1989 continue;
1990 mutex_lock(&devlink->lock);
1991 list_for_each_entry(linecard, &devlink->linecard_list, list) {
1992 if (idx < start) {
1993 idx++;
1994 continue;
1995 }
1996 err = devlink_nl_linecard_fill(msg, devlink, linecard,
1997 DEVLINK_CMD_LINECARD_NEW,
1998 NETLINK_CB(cb->skb).portid,
1999 cb->nlh->nlmsg_seq,
2000 NLM_F_MULTI,
2001 cb->extack);
2002 if (err) {
2003 mutex_unlock(&devlink->lock);
2004 goto out;
2005 }
2006 idx++;
2007 }
2008 mutex_unlock(&devlink->lock);
2009 }
2010 out:
2011 mutex_unlock(&devlink_mutex);
2012
2013 cb->args[0] = idx;
2014 return msg->len;
2015 }
2016
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[djwong-xfs:defrag-freespace 309/310] fs/xfs/libxfs/xfs_bmap.c:6593:33: warning: variable 'rtxlen_in' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git defrag-freespace
head: eac62500d5481c286ef5fac0873d1707175312b6
commit: e17e75a18c97e1f807f4e82707349ffa38c94fa3 [309/310] xfs: fallocate free space into a file
config: mips-rm200_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs defrag-freespace
git checkout e17e75a18c97e1f807f4e82707349ffa38c94fa3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmapi_freesp':
>> fs/xfs/libxfs/xfs_bmap.c:6593:33: warning: variable 'rtxlen_in' set but not used [-Wunused-but-set-variable]
6593 | xfs_extlen_t rtxlen_in, rtxlen_out;
| ^~~~~~~~~
vim +/rtxlen_in +6593 fs/xfs/libxfs/xfs_bmap.c
6541
6542 /*
6543 * Given a file and a free physical extent, map it into the file at the same
6544 * offset if the file were a sparse image of the physical device. Set @mval to
6545 * whatever mapping we added to the file.
6546 */
6547 int
6548 xfs_bmapi_freesp(
6549 struct xfs_trans **tpp,
6550 struct xfs_inode *ip,
6551 xfs_fsblock_t fsbno,
6552 xfs_extlen_t len,
6553 struct xfs_bmbt_irec *mval)
6554 {
6555 struct xfs_bmbt_irec irec;
6556 struct xfs_mount *mp = ip->i_mount;
6557 xfs_fileoff_t startoff;
6558 bool isrt = XFS_IS_REALTIME_INODE(ip);
6559 int nimaps;
6560 int error;
6561
6562 trace_xfs_bmapi_freesp(ip, fsbno, len);
6563
6564 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK,
6565 XFS_IEXT_ADD_NOSPLIT_CNT);
6566 if (error)
6567 return error;
6568
6569 if (isrt)
6570 startoff = fsbno;
6571 else
6572 startoff = xfs_fsblock_to_fileoff(mp, fsbno);
6573
6574 /* Make sure the entire range is a hole. */
6575 nimaps = 1;
6576 error = xfs_bmapi_read(ip, startoff, len, &irec, &nimaps, 0);
6577 if (error)
6578 return error;
6579
6580 if (irec.br_startoff != startoff ||
6581 irec.br_startblock != HOLESTARTBLOCK ||
6582 irec.br_blockcount < len)
6583 return -EINVAL;
6584
6585 /*
6586 * Allocate the physical extent. We should not have dropped the lock
6587 * since the scan of the free space metadata, so this should work,
6588 * though the length may be adjusted to play nicely with metadata space
6589 * reservations.
6590 */
6591 if (isrt) {
6592 xfs_rtblock_t rtx_in, rtx_out;
> 6593 xfs_extlen_t rtxlen_in, rtxlen_out;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-next:master 7690/8423] igc_main.c:undefined reference to `ptp_clock_event'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b9011c7e671dbbf59bb753283ddfd03f0c9eb865
commit: e5f31552674e88bff3a4e3ca3e5357668b5f2973 [7690/8423] ethernet: fix PTP_1588_CLOCK dependencies
config: arc-randconfig-r006-20210816 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout e5f31552674e88bff3a4e3ca3e5357668b5f2973
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arceb-elf-ld: drivers/net/ethernet/intel/igc/igc_main.o: in function `igc_tsync_interrupt':
>> igc_main.c:(.text+0x968c): undefined reference to `ptp_clock_event'
>> arceb-elf-ld: igc_main.c:(.text+0x968c): undefined reference to `ptp_clock_event'
arceb-elf-ld: igc_main.c:(.text+0x98b0): undefined reference to `ptp_clock_event'
arceb-elf-ld: igc_main.c:(.text+0x98b0): undefined reference to `ptp_clock_event'
arceb-elf-ld: igc_main.c:(.text+0x9906): undefined reference to `ptp_clock_event'
arceb-elf-ld: drivers/net/ethernet/intel/igc/igc_main.o:igc_main.c:(.text+0x9906): more undefined references to `ptp_clock_event' follow
arceb-elf-ld: drivers/net/ethernet/intel/igc/igc_ethtool.o: in function `igc_ethtool_get_ts_info':
>> igc_ethtool.c:(.text+0x1910): undefined reference to `ptp_clock_index'
>> arceb-elf-ld: igc_ethtool.c:(.text+0x1910): undefined reference to `ptp_clock_index'
arceb-elf-ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_feature_enable_i225':
>> igc_ptp.c:(.text+0x802): undefined reference to `ptp_find_pin'
>> arceb-elf-ld: igc_ptp.c:(.text+0x802): undefined reference to `ptp_find_pin'
arceb-elf-ld: igc_ptp.c:(.text+0x8a0): undefined reference to `ptp_find_pin'
arceb-elf-ld: igc_ptp.c:(.text+0x8a0): undefined reference to `ptp_find_pin'
arceb-elf-ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_init':
>> igc_ptp.c:(.text+0x19e8): undefined reference to `ptp_clock_register'
>> arceb-elf-ld: igc_ptp.c:(.text+0x19e8): undefined reference to `ptp_clock_register'
arceb-elf-ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_stop':
>> igc_ptp.c:(.text+0x1b5c): undefined reference to `ptp_clock_unregister'
>> arceb-elf-ld: igc_ptp.c:(.text+0x1b5c): undefined reference to `ptp_clock_unregister'
arceb-elf-ld: drivers/net/ethernet/micrel/ks8851_common.o: in function `ks8851_probe_common':
ks8851_common.c:(.text+0x1460): undefined reference to `__this_module'
arceb-elf-ld: ks8851_common.c:(.text+0x1460): undefined reference to `__this_module'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH] staging/ks7010: Fix coding style problems
by kernel test robot
Hi Leon,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Leon-Krieg/staging-ks7010-Fix-co...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 9caf92ab573fd83c7455b65d4eefcefc1a9d2188
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/0day-ci/linux/commit/5e90bce950e7fa0f0331bb9620b538d31...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Leon-Krieg/staging-ks7010-Fix-coding-style-problems/20210817-020753
git checkout 5e90bce950e7fa0f0331bb9620b538d3109f04c6
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 distclean
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> Error: kernelrelease not valid - run 'make prepare' to update it
--
>> drivers/staging/ks7010/Kconfig:12: syntax error
drivers/staging/ks7010/Kconfig:11: invalid statement
drivers/staging/ks7010/Kconfig:12:warning: ignoring unsupported character '.'
drivers/staging/ks7010/Kconfig:12: unknown statement "SDW-823"
--
>> drivers/staging/ks7010/Kconfig:12: syntax error
drivers/staging/ks7010/Kconfig:11: invalid statement
drivers/staging/ks7010/Kconfig:12:warning: ignoring unsupported character '.'
drivers/staging/ks7010/Kconfig:12: unknown statement "SDW-823"
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:625: syncconfig] Error 2
make[1]: *** [Makefile:735: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
>> make[1]: *** No rule to make target 'modules_prepare'.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
>> drivers/staging/ks7010/Kconfig:12: syntax error
drivers/staging/ks7010/Kconfig:11: invalid statement
drivers/staging/ks7010/Kconfig:12:warning: ignoring unsupported character '.'
drivers/staging/ks7010/Kconfig:12: unknown statement "SDW-823"
make[2]: *** [scripts/kconfig/Makefile:77: olddefconfig] Error 1
make[1]: *** [Makefile:625: olddefconfig] Error 2
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
--
>> drivers/staging/ks7010/Kconfig:12: syntax error
drivers/staging/ks7010/Kconfig:11: invalid statement
drivers/staging/ks7010/Kconfig:12:warning: ignoring unsupported character '.'
drivers/staging/ks7010/Kconfig:12: unknown statement "SDW-823"
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:625: syncconfig] Error 2
make[1]: *** [Makefile:735: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: *** [arch/x86/Makefile:290: checkbin] Error 1
>> Error: kernelrelease not valid - run 'make prepare' to update it
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
--
>> drivers/staging/ks7010/Kconfig:12: syntax error
drivers/staging/ks7010/Kconfig:11: invalid statement
drivers/staging/ks7010/Kconfig:12:warning: ignoring unsupported character '.'
drivers/staging/ks7010/Kconfig:12: unknown statement "SDW-823"
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:625: syncconfig] Error 2
make[1]: *** [Makefile:735: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
>> Error: kernelrelease not valid - run 'make prepare' to update it
make[1]: *** [arch/x86/Makefile:290: checkbin] Error 1
make[1]: Target 'vmlinux' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'vmlinux' not remade because of errors.
***
*** The source tree is not clean, please run 'make ARCH=x86_64 mrproper'
*** in /kbuild/worktree/build-ktools-consumer
***
make[2]: *** [Makefile:565: outputmakefile] Error 1
make[2]: Target 'syncconfig' not remade because of errors.
make[1]: *** [Makefile:721: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
***
*** The source tree is not clean, please run 'make ARCH=x86_64 mrproper'
*** in /kbuild/worktree/build-ktools-consumer
***
make[1]: *** [Makefile:565: outputmakefile] Error 1
>> Error: kernelrelease not valid - run 'make prepare' to update it
make[1]: *** [arch/x86/Makefile:290: checkbin] Error 1
make[1]: Target 'vmlinux' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'vmlinux' not remade because of errors.
vim +12 drivers/staging/ks7010/Kconfig
> 12 SDW-823).
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH] ksmbd: fix lookup on idmapped mounts
by kernel test robot
Hi Christian,
I love your patch! Yet something to improve:
[auto build test ERROR on 456af438ad490bac7ed954cb929bcec1df7f0c82]
url: https://github.com/0day-ci/linux/commits/Christian-Brauner/ksmbd-fix-look...
base: 456af438ad490bac7ed954cb929bcec1df7f0c82
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/ebbc41b9d3f7b7f6c558cb5d5f12ecb81...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-Brauner/ksmbd-fix-lookup-on-idmapped-mounts/20210816-200054
git checkout ebbc41b9d3f7b7f6c558cb5d5f12ecb8134c9c2e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/ksmbd/vfs.c: In function 'ksmbd_vfs_lock_parent':
>> fs/ksmbd/vfs.c:79:18: error: implicit declaration of function 'lookup_one'; did you mean 'lookup_bdev'? [-Werror=implicit-function-declaration]
79 | dentry = lookup_one(user_ns, child->d_name.name, parent,
| ^~~~~~~~~~
| lookup_bdev
fs/ksmbd/vfs.c:79:16: warning: assignment to 'struct dentry *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
79 | dentry = lookup_one(user_ns, child->d_name.name, parent,
| ^
fs/ksmbd/vfs.c: In function 'ksmbd_vfs_mkdir':
fs/ksmbd/vfs.c:223:19: warning: assignment to 'struct dentry *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
223 | d = lookup_one(user_ns, dentry->d_name.name, dentry->d_parent,
| ^
fs/ksmbd/vfs.c: In function '__ksmbd_vfs_rename':
fs/ksmbd/vfs.c:753:18: warning: assignment to 'struct dentry *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
753 | dst_dent = lookup_one(dst_user_ns, dst_name, dst_dent_parent,
| ^
fs/ksmbd/vfs.c: In function 'ksmbd_vfs_fp_rename':
fs/ksmbd/vfs.c:816:19: warning: assignment to 'struct dentry *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
816 | src_child = lookup_one(user_ns, src_dent->d_name.name, src_dent_parent,
| ^
cc1: some warnings being treated as errors
--
fs/ksmbd/smb2pdu.c: In function 'process_query_dir_entries':
>> fs/ksmbd/smb2pdu.c:3542:24: error: implicit declaration of function 'lookup_one'; did you mean 'lookup_bdev'? [-Werror=implicit-function-declaration]
3542 | dent = lookup_one(user_ns, priv->d_info->name,
| ^~~~~~~~~~
| lookup_bdev
fs/ksmbd/smb2pdu.c:3542:22: warning: assignment to 'struct dentry *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
3542 | dent = lookup_one(user_ns, priv->d_info->name,
| ^
cc1: some warnings being treated as errors
vim +79 fs/ksmbd/vfs.c
62
63 /**
64 * ksmbd_vfs_lock_parent() - lock parent dentry if it is stable
65 *
66 * the parent dentry got by dget_parent or @parent could be
67 * unstable, we try to lock a parent inode and lookup the
68 * child dentry again.
69 *
70 * the reference count of @parent isn't incremented.
71 */
72 int ksmbd_vfs_lock_parent(struct user_namespace *user_ns, struct dentry *parent,
73 struct dentry *child)
74 {
75 struct dentry *dentry;
76 int ret = 0;
77
78 inode_lock_nested(d_inode(parent), I_MUTEX_PARENT);
> 79 dentry = lookup_one(user_ns, child->d_name.name, parent,
80 child->d_name.len);
81 if (IS_ERR(dentry)) {
82 ret = PTR_ERR(dentry);
83 goto out_err;
84 }
85
86 if (dentry != child) {
87 ret = -ESTALE;
88 dput(dentry);
89 goto out_err;
90 }
91
92 dput(dentry);
93 return 0;
94 out_err:
95 inode_unlock(d_inode(parent));
96 return ret;
97 }
98
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month