[tnguy-next-queue:dev-queue 8/111] drivers/net/ethernet/intel/i40e/i40e_txrx.c:547:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: 48d91eba0c7d674de08e9c66fcd67a2b742f8b7a
commit: 0d18a45d3255af770e8bf428d3b5c0fa7071f192 [8/111] i40e: VLAN field for flow director
config: parisc-randconfig-r033-20201209 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.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/tnguy/next-queue.git/comm...
git remote add tnguy-next-queue https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git
git fetch --no-tags tnguy-next-queue dev-queue
git checkout 0d18a45d3255af770e8bf428d3b5c0fa7071f192
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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/net/ethernet/intel/i40e/i40e_txrx.c: In function 'i40e_add_del_fdir_ip':
>> drivers/net/ethernet/intel/i40e/i40e_txrx.c:547:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
547 | int ret;
| ^~~
vim +/ret +547 drivers/net/ethernet/intel/i40e/i40e_txrx.c
f223c8752a0b756 Jacob Keller 2017-02-06 524
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 525 #define I40E_IP_DUMMY_PACKET_LEN 34
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 526 #define I40E_IP6_DUMMY_PACKET_LEN 54
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 527 /**
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 528 * i40e_add_del_fdir_ip - Add/Remove IPv4 Flow Director filters for
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 529 * a specific flow spec
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 530 * @vsi: pointer to the targeted VSI
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 531 * @fd_data: the flow director data required for the FDir descriptor
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 532 * @add: true adds a filter, false removes it
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 533 * @ipv4: true is v4, false is v6
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 534 *
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 535 * Returns 0 if the filters were successfully added or removed
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 536 **/
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 537 static int i40e_add_del_fdir_ip(struct i40e_vsi *vsi,
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 538 struct i40e_fdir_filter *fd_data,
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 539 bool add,
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 540 bool ipv4)
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 541 {
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 542 struct i40e_pf *pf = vsi->back;
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 543 int payload_offset;
49d7d9333163756 Anjali Singhai Jain 2014-06-04 544 u8 *raw_packet;
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 545 int iter_start;
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 546 int iter_end;
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 @547 int ret;
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 548 int i;
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 549
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 550 if (ipv4) {
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 551 iter_start = I40E_FILTER_PCTYPE_NONF_IPV4_OTHER;
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 552 iter_end = I40E_FILTER_PCTYPE_FRAG_IPV4;
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 553 } else {
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 554 iter_start = I40E_FILTER_PCTYPE_NONF_IPV6_OTHER;
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 555 iter_end = I40E_FILTER_PCTYPE_FRAG_IPV6;
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 556 }
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 557
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 558 for (i = iter_start; i <= iter_end; i++) {
49d7d9333163756 Anjali Singhai Jain 2014-06-04 559 raw_packet = kzalloc(I40E_FDIR_MAX_RAW_PACKET_SIZE, GFP_KERNEL);
49d7d9333163756 Anjali Singhai Jain 2014-06-04 560 if (!raw_packet)
49d7d9333163756 Anjali Singhai Jain 2014-06-04 561 return -ENOMEM;
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 562
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 563 /* IPv6 no header option differs from IPv4 */
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 564 (void)i40e_create_dummy_packet
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 565 (raw_packet, ipv4, (ipv4) ? IPPROTO_IP : IPPROTO_NONE,
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 566 fd_data);
0e588de17f086c3 Jacob Keller 2017-02-06 567
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 568 payload_offset = (ipv4) ? I40E_IP_DUMMY_PACKET_LEN :
7d00e937cd081ff Przemyslaw Patynowski 2020-10-21 569 I40E_IP6_DUMMY_PACKET_LEN;
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 570 ret = i40e_prepare_fdir_filter(pf, fd_data, add, raw_packet,
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 571 payload_offset, i);
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 572 }
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 573
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 574 i40e_change_filter_num(ipv4, add, &pf->fd_ip4_filter_cnt,
0d18a45d3255af7 Przemyslaw Patynowski 2020-10-21 575 &pf->fd_ip6_filter_cnt);
097dbf52505962d Jacob Keller 2017-02-06 576
e5187ee3ee9a95b Jacob Keller 2017-02-06 577 return 0;
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 578 }
17a73f6b14010d4 Joseph Gasparakis 2014-02-12 579
:::::: The code at line 547 was first introduced by commit
:::::: 17a73f6b14010d4516a05f52e3c87431e86edebb i40e: Flow Director sideband accounting
:::::: TO: Joseph Gasparakis <joseph.gasparakis(a)intel.com>
:::::: CC: Jeff Kirsher <jeffrey.t.kirsher(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [PATCH RFC bpf-next 2/4] bpf: support BPF ksym variables in kernel modules
by kernel test robot
Hi Andrii,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Andrii-Nakryiko/Support-kernel-m...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: i386-randconfig-r036-20201209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/6612e8dbf119471e023d79a56d7834fce...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andrii-Nakryiko/Support-kernel-module-ksym-variables/20201211-123414
git checkout 6612e8dbf119471e023d79a56d7834fceeb3e33b
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
kernel/bpf/core.c:1350:12: warning: no previous prototype for 'bpf_probe_read_kernel' [-Wmissing-prototypes]
1350 | u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from kernel/bpf/core.c:21:
kernel/bpf/core.c: In function '___bpf_prog_run':
include/linux/filter.h:888:3: warning: cast between incompatible function types from 'u64 (*)(u64, u64, u64, u64, u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)'} to 'u64 (*)(u64, u64, u64, u64, u64, const struct bpf_insn *)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, const struct bpf_insn *)'} [-Wcast-function-type]
888 | ((u64 (*)(u64, u64, u64, u64, u64, const struct bpf_insn *)) \
| ^
kernel/bpf/core.c:1518:13: note: in expansion of macro '__bpf_call_base_args'
1518 | BPF_R0 = (__bpf_call_base_args + insn->imm)(BPF_R1, BPF_R2,
| ^~~~~~~~~~~~~~~~~~~~
kernel/bpf/core.c: At top level:
kernel/bpf/core.c:1704:6: warning: no previous prototype for 'bpf_patch_call_args' [-Wmissing-prototypes]
1704 | void bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth)
| ^~~~~~~~~~~~~~~~~~~
In file included from kernel/bpf/core.c:21:
kernel/bpf/core.c: In function 'bpf_patch_call_args':
include/linux/filter.h:888:3: warning: cast between incompatible function types from 'u64 (*)(u64, u64, u64, u64, u64)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)'} to 'u64 (*)(u64, u64, u64, u64, u64, const struct bpf_insn *)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, const struct bpf_insn *)'} [-Wcast-function-type]
888 | ((u64 (*)(u64, u64, u64, u64, u64, const struct bpf_insn *)) \
| ^
kernel/bpf/core.c:1709:3: note: in expansion of macro '__bpf_call_base_args'
1709 | __bpf_call_base_args;
| ^~~~~~~~~~~~~~~~~~~~
kernel/bpf/core.c: At top level:
kernel/bpf/core.c:2102:6: warning: no previous prototype for '__bpf_free_used_maps' [-Wmissing-prototypes]
2102 | void __bpf_free_used_maps(struct bpf_prog_aux *aux,
| ^~~~~~~~~~~~~~~~~~~~
>> kernel/bpf/core.c:2122:6: warning: no previous prototype for '__bpf_free_used_btfs' [-Wmissing-prototypes]
2122 | void __bpf_free_used_btfs(struct bpf_prog_aux *aux,
| ^~~~~~~~~~~~~~~~~~~~
vim +/__bpf_free_used_btfs +2122 kernel/bpf/core.c
2121
> 2122 void __bpf_free_used_btfs(struct bpf_prog_aux *aux,
2123 struct btf_mod_pair *used_btfs, u32 len)
2124 {
2125 #ifdef CONFIG_BPF_SYSCALL
2126 struct btf_mod_pair *btf_mod;
2127 u32 i;
2128
2129 for (i = 0; i < len; i++) {
2130 btf_mod = &used_btfs[i];
2131 if (btf_mod->module)
2132 module_put(btf_mod->module);
2133 btf_put(btf_mod->btf);
2134 }
2135 #endif
2136 }
2137
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[intel-linux-intel-lts:4.19/android_r 19120/20689] drivers/usb/host/xhci-dbgcap.c:191:6: warning: no previous prototype for function 'xhci_dbc_flush_requests'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: 4a6aef8d991e7c47e5da39927e0ad28ec90cd01b
commit: b652a52d36a85d1b731921ba08e701d7150ce200 [19120/20689] Merge branch 'aosp/android-4.19-stable' into android_r
config: arm-randconfig-r015-20201210 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5ff35356f1af2bb92785b38c657463924d9ec386)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/intel/linux-intel-lts/commit/b652a52d36a85d1b731921ba0...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 4.19/android_r
git checkout b652a52d36a85d1b731921ba08e701d7150ce200
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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/usb/host/xhci-dbgcap.c:191:6: warning: no previous prototype for function 'xhci_dbc_flush_requests' [-Wmissing-prototypes]
void xhci_dbc_flush_requests(struct xhci_dbc *dbc)
^
drivers/usb/host/xhci-dbgcap.c:191:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void xhci_dbc_flush_requests(struct xhci_dbc *dbc)
^
static
1 warning generated.
drivers/usb/host/xhci-dbgcap.c:18: warning: cannot understand function prototype: 'struct dbc_function *dbc_registered_func; '
ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected
vim +/xhci_dbc_flush_requests +191 drivers/usb/host/xhci-dbgcap.c
dfba2174dc421e Lu Baolu 2017-12-08 189
b88d999a5b9ae9 Prabhat Chand Pandey 2019-05-22 190
b88d999a5b9ae9 Prabhat Chand Pandey 2019-05-22 @191 void xhci_dbc_flush_requests(struct xhci_dbc *dbc)
dfba2174dc421e Lu Baolu 2017-12-08 192 {
dfba2174dc421e Lu Baolu 2017-12-08 193 xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_OUT]);
dfba2174dc421e Lu Baolu 2017-12-08 194 xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_IN]);
dfba2174dc421e Lu Baolu 2017-12-08 195 }
b88d999a5b9ae9 Prabhat Chand Pandey 2019-05-22 196 EXPORT_SYMBOL_GPL(xhci_dbc_flush_requests);
dfba2174dc421e Lu Baolu 2017-12-08 197
:::::: The code at line 191 was first introduced by commit
:::::: b88d999a5b9ae9022e12e1a5810b12b21cb77996 usb: xhci: dbc: make DbC modular, introducing dbc_function structure
:::::: TO: Prabhat Chand Pandey <prabhat.chand.pandey(a)intel.com>
:::::: CC: Pan, Kris <kris.pan(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[android-common:upstream-f2fs-stable-linux-4.19.y 482/715] fs/f2fs/inode.c:307:7: warning: format specifies type 'unsigned long' but the argument has type 'blkcnt_t' (aka 'unsigned long long')
by kernel test robot
tree: https://android.googlesource.com/kernel/common upstream-f2fs-stable-linux-4.19.y
head: d2af1846e23f4b2ab18cc155327b86111ce07824
commit: 0f87f20d0536ae21524ce1c25335aec991229114 [482/715] f2fs: fix to check i_compr_blocks correctly
config: arm-randconfig-r015-20201210 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5ff35356f1af2bb92785b38c657463924d9ec386)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common upstream-f2fs-stable-linux-4.19.y
git checkout 0f87f20d0536ae21524ce1c25335aec991229114
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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/f2fs/inode.c:307:7: warning: format specifies type 'unsigned long' but the argument has type 'blkcnt_t' (aka 'unsigned long long') [-Wformat]
SECTOR_TO_BLOCK(inode->i_blocks));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:1949:39: note: expanded from macro 'f2fs_warn'
f2fs_printk(sbi, KERN_WARNING fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
fs/f2fs/segment.h:119:2: note: expanded from macro 'SECTOR_TO_BLOCK'
((sectors) >> F2FS_LOG_SECTORS_PER_BLOCK)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +307 fs/f2fs/inode.c
198
199 static bool sanity_check_inode(struct inode *inode, struct page *node_page)
200 {
201 struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
202 struct f2fs_inode_info *fi = F2FS_I(inode);
203 struct f2fs_inode *ri = F2FS_INODE(node_page);
204 unsigned long long iblocks;
205
206 iblocks = le64_to_cpu(F2FS_INODE(node_page)->i_blocks);
207 if (!iblocks) {
208 set_sbi_flag(sbi, SBI_NEED_FSCK);
209 f2fs_warn(sbi, "%s: corrupted inode i_blocks i_ino=%lx iblocks=%llu, run fsck to fix.",
210 __func__, inode->i_ino, iblocks);
211 return false;
212 }
213
214 if (ino_of_node(node_page) != nid_of_node(node_page)) {
215 set_sbi_flag(sbi, SBI_NEED_FSCK);
216 f2fs_warn(sbi, "%s: corrupted inode footer i_ino=%lx, ino,nid: [%u, %u] run fsck to fix.",
217 __func__, inode->i_ino,
218 ino_of_node(node_page), nid_of_node(node_page));
219 return false;
220 }
221
222 if (f2fs_sb_has_flexible_inline_xattr(sbi)
223 && !f2fs_has_extra_attr(inode)) {
224 set_sbi_flag(sbi, SBI_NEED_FSCK);
225 f2fs_warn(sbi, "%s: corrupted inode ino=%lx, run fsck to fix.",
226 __func__, inode->i_ino);
227 return false;
228 }
229
230 if (f2fs_has_extra_attr(inode) &&
231 !f2fs_sb_has_extra_attr(sbi)) {
232 set_sbi_flag(sbi, SBI_NEED_FSCK);
233 f2fs_warn(sbi, "%s: inode (ino=%lx) is with extra_attr, but extra_attr feature is off",
234 __func__, inode->i_ino);
235 return false;
236 }
237
238 if (fi->i_extra_isize > F2FS_TOTAL_EXTRA_ATTR_SIZE ||
239 fi->i_extra_isize % sizeof(__le32)) {
240 set_sbi_flag(sbi, SBI_NEED_FSCK);
241 f2fs_warn(sbi, "%s: inode (ino=%lx) has corrupted i_extra_isize: %d, max: %zu",
242 __func__, inode->i_ino, fi->i_extra_isize,
243 F2FS_TOTAL_EXTRA_ATTR_SIZE);
244 return false;
245 }
246
247 if (f2fs_has_extra_attr(inode) &&
248 f2fs_sb_has_flexible_inline_xattr(sbi) &&
249 f2fs_has_inline_xattr(inode) &&
250 (!fi->i_inline_xattr_size ||
251 fi->i_inline_xattr_size > MAX_INLINE_XATTR_SIZE)) {
252 set_sbi_flag(sbi, SBI_NEED_FSCK);
253 f2fs_warn(sbi, "%s: inode (ino=%lx) has corrupted i_inline_xattr_size: %d, max: %zu",
254 __func__, inode->i_ino, fi->i_inline_xattr_size,
255 MAX_INLINE_XATTR_SIZE);
256 return false;
257 }
258
259 if (F2FS_I(inode)->extent_tree) {
260 struct extent_info *ei = &F2FS_I(inode)->extent_tree->largest;
261
262 if (ei->len &&
263 (!f2fs_is_valid_blkaddr(sbi, ei->blk,
264 DATA_GENERIC_ENHANCE) ||
265 !f2fs_is_valid_blkaddr(sbi, ei->blk + ei->len - 1,
266 DATA_GENERIC_ENHANCE))) {
267 set_sbi_flag(sbi, SBI_NEED_FSCK);
268 f2fs_warn(sbi, "%s: inode (ino=%lx) extent info [%u, %u, %u] is incorrect, run fsck to fix",
269 __func__, inode->i_ino,
270 ei->blk, ei->fofs, ei->len);
271 return false;
272 }
273 }
274
275 if (f2fs_has_inline_data(inode) &&
276 (!S_ISREG(inode->i_mode) && !S_ISLNK(inode->i_mode))) {
277 set_sbi_flag(sbi, SBI_NEED_FSCK);
278 f2fs_warn(sbi, "%s: inode (ino=%lx, mode=%u) should not have inline_data, run fsck to fix",
279 __func__, inode->i_ino, inode->i_mode);
280 return false;
281 }
282
283 if (f2fs_has_inline_dentry(inode) && !S_ISDIR(inode->i_mode)) {
284 set_sbi_flag(sbi, SBI_NEED_FSCK);
285 f2fs_warn(sbi, "%s: inode (ino=%lx, mode=%u) should not have inline_dentry, run fsck to fix",
286 __func__, inode->i_ino, inode->i_mode);
287 return false;
288 }
289
290 if (f2fs_has_extra_attr(inode) && f2fs_sb_has_compression(sbi) &&
291 fi->i_flags & F2FS_COMPR_FL &&
292 F2FS_FITS_IN_INODE(ri, fi->i_extra_isize,
293 i_log_cluster_size)) {
294 if (ri->i_compress_algorithm >= COMPRESS_MAX) {
295 f2fs_warn(sbi, "%s: inode (ino=%lx) has unsupported "
296 "compress algorithm: %u, run fsck to fix",
297 __func__, inode->i_ino,
298 ri->i_compress_algorithm);
299 return false;
300 }
301 if (le64_to_cpu(ri->i_compr_blocks) >
302 SECTOR_TO_BLOCK(inode->i_blocks)) {
303 f2fs_warn(sbi, "%s: inode (ino=%lx) has inconsistent "
304 "i_compr_blocks:%llu, i_blocks:%lu, run fsck to fix",
305 __func__, inode->i_ino,
306 le64_to_cpu(ri->i_compr_blocks),
> 307 SECTOR_TO_BLOCK(inode->i_blocks));
308 return false;
309 }
310 if (ri->i_log_cluster_size < MIN_COMPRESS_LOG_SIZE ||
311 ri->i_log_cluster_size > MAX_COMPRESS_LOG_SIZE) {
312 f2fs_warn(sbi, "%s: inode (ino=%lx) has unsupported "
313 "log cluster size: %u, run fsck to fix",
314 __func__, inode->i_ino,
315 ri->i_log_cluster_size);
316 return false;
317 }
318 }
319
320 return true;
321 }
322
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[intel-linux-intel-lts:5.4/yocto 415/1142] drivers/misc/xlink-usb/local_host/u_xlink.c:1002 vpu_read_swid() error: uninitialized symbol 'BUF4'.
by Dan Carpenter
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791 [415/1142] xlink-usb: XLink USB Remote and Local Host driver
config: i386-randconfig-m021-20201211 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/misc/xlink-usb/local_host/u_xlink.c:1002 vpu_read_swid() error: uninitialized symbol 'BUF4'.
vim +/BUF4 +1002 drivers/misc/xlink-usb/local_host/u_xlink.c
5e9e6d86fe729c Lai Jun Ann 2020-07-03 987 int *vpu_read_swid(void *data)
5e9e6d86fe729c Lai Jun Ann 2020-07-03 988 {
5e9e6d86fe729c Lai Jun Ann 2020-07-03 989 struct gs_port *port;
5e9e6d86fe729c Lai Jun Ann 2020-07-03 990
5e9e6d86fe729c Lai Jun Ann 2020-07-03 991 port = ports[PORT_NUM].port;
5e9e6d86fe729c Lai Jun Ann 2020-07-03 992 struct list_head *pool = &port->read_pool;
5e9e6d86fe729c Lai Jun Ann 2020-07-03 993 int *BUF4;
5e9e6d86fe729c Lai Jun Ann 2020-07-03 994 struct usb_request *req;
5e9e6d86fe729c Lai Jun Ann 2020-07-03 995
5e9e6d86fe729c Lai Jun Ann 2020-07-03 996 while (!list_empty(pool)) {
5e9e6d86fe729c Lai Jun Ann 2020-07-03 997 req = list_entry(pool->next, struct usb_request, list);
5e9e6d86fe729c Lai Jun Ann 2020-07-03 998 list_del(&req->list);
5e9e6d86fe729c Lai Jun Ann 2020-07-03 999 BUF4 = req->buf;
5e9e6d86fe729c Lai Jun Ann 2020-07-03 1000 break;
5e9e6d86fe729c Lai Jun Ann 2020-07-03 1001 }
5e9e6d86fe729c Lai Jun Ann 2020-07-03 @1002 return BUF4;
^^^^^^^^^^^
Can this be called when the pool list is empty?
5e9e6d86fe729c Lai Jun Ann 2020-07-03 1003 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[tglx-devel:genirq 35/56] arch/arm/kernel/smp.c:544:16: warning: variable 'irq' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git genirq
head: 53cc7c5b089bb7f673fc14f830c4a5d665812b1d
commit: 0b1d6bdfe64f977586bbe94a054d82dd816a0aeb [35/56] ARM: smp: Use irq_desc_kstat_cpu() in show_ipi_list()
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel genirq
git checkout 0b1d6bdfe64f977586bbe94a054d82dd816a0aeb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
arch/arm/kernel/smp.c: In function 'show_ipi_list':
>> arch/arm/kernel/smp.c:544:16: warning: variable 'irq' set but not used [-Wunused-but-set-variable]
544 | unsigned int irq;
| ^~~
arch/arm/kernel/smp.c: At top level:
arch/arm/kernel/smp.c:575:6: warning: no previous prototype for 'arch_irq_work_raise' [-Wmissing-prototypes]
575 | void arch_irq_work_raise(void)
| ^~~~~~~~~~~~~~~~~~~
arch/arm/kernel/smp.c:779:6: warning: no previous prototype for 'panic_smp_self_stop' [-Wmissing-prototypes]
779 | void panic_smp_self_stop(void)
| ^~~~~~~~~~~~~~~~~~~
arch/arm/kernel/smp.c:791:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes]
791 | int setup_profiling_timer(unsigned int multiplier)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/irq +544 arch/arm/kernel/smp.c
365ec7b1732732 Nicolas Pitre 2014-07-25 538
f13cd4170ee789 Russell King 2010-11-15 539 void show_ipi_list(struct seq_file *p, int prec)
^1da177e4c3f41 Linus Torvalds 2005-04-16 540 {
4a88abd7b48e8e Russell King 2010-11-15 541 unsigned int cpu, i;
^1da177e4c3f41 Linus Torvalds 2005-04-16 542
4a88abd7b48e8e Russell King 2010-11-15 543 for (i = 0; i < NR_IPI; i++) {
220387048d8598 Marc Zyngier 2020-09-25 @544 unsigned int irq;
220387048d8598 Marc Zyngier 2020-09-25 545
220387048d8598 Marc Zyngier 2020-09-25 546 if (!ipi_desc[i])
220387048d8598 Marc Zyngier 2020-09-25 547 continue;
220387048d8598 Marc Zyngier 2020-09-25 548
220387048d8598 Marc Zyngier 2020-09-25 549 irq = irq_desc_get_irq(ipi_desc[i]);
4a88abd7b48e8e Russell King 2010-11-15 550 seq_printf(p, "%*s%u: ", prec - 1, "IPI", i);
^1da177e4c3f41 Linus Torvalds 2005-04-16 551
026b7c6bf0bf04 Nicolas Pitre 2012-12-03 552 for_each_online_cpu(cpu)
0b1d6bdfe64f97 Thomas Gleixner 2020-12-10 553 seq_printf(p, "%10u ", irq_desc_kstat_cpu(ipi_desc[i], cpu));
^1da177e4c3f41 Linus Torvalds 2005-04-16 554
4a88abd7b48e8e Russell King 2010-11-15 555 seq_printf(p, " %s\n", ipi_types[i]);
4a88abd7b48e8e Russell King 2010-11-15 556 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 557 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 558
:::::: The code at line 544 was first introduced by commit
:::::: 220387048d859896ccc362c0ebf9bc1e0fa62eb9 ARM: Handle no IPI being registered in show_ipi_list()
:::::: TO: Marc Zyngier <maz(a)kernel.org>
:::::: CC: Marc Zyngier <maz(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months