[linux-next:master 10056/11507] security/apparmor/apparmorfs.c:1391:37: warning: 'seq_ns_compress_max_fops' defined but not used
kernel test robot <[email protected]> Sat, 01 Aug 2026 07:03:38 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 415606a7be939835db9b0d6b711887586646346d commit: 1c5f27e845e84f58ed6bbe3e6bc12d6a013e74b5 [10056/11507] apparmor: Fix build failure when ZSTD_DECOMPRESS is not enabled config: sparc-randconfig-002-20260801 (https://download.01.org/0day-ci/archive/20260801/[email protected]/config) compiler: sparc-linux-gcc (GCC) 11.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): security/apparmor/apparmorfs.c: In function 'rawdata_open': security/apparmor/apparmorfs.c:1602:17: error: implicit declaration of function 'decompress_zstd' [-Werror=implicit-function-declaration] 1602 | error = decompress_zstd(loaddata->data, loaddata->compressed_size, | ^~~~~~~~~~~~~~~ At top level: >> security/apparmor/apparmorfs.c:1391:37: warning: 'seq_ns_compress_max_fops' defined but not used [-Wunused-const-variable=] 1391 | static const struct file_operations seq_ns_ ##NAME ##_fops = { \ | ^~~~~~~ security/apparmor/apparmorfs.c:1470:1: note: in expansion of macro 'SEQ_NS_FOPS' 1470 | SEQ_NS_FOPS(compress_max); | ^~~~~~~~~~~ >> security/apparmor/apparmorfs.c:1391:37: warning: 'seq_ns_compress_min_fops' defined but not used [-Wunused-const-variable=] 1391 | static const struct file_operations seq_ns_ ##NAME ##_fops = { \ | ^~~~~~~ security/apparmor/apparmorfs.c:1469:1: note: in expansion of macro 'SEQ_NS_FOPS' 1469 | SEQ_NS_FOPS(compress_min); | ^~~~~~~~~~~ cc1: some warnings being treated as errors vim +/seq_ns_compress_max_fops +1391 security/apparmor/apparmorfs.c f8eb8a1324e819 John Johansen 2013-08-14 1378 64c8697045f877 John Johansen 2017-05-25 1379 /* 64c8697045f877 John Johansen 2017-05-25 1380 * namespace based files 64c8697045f877 John Johansen 2017-05-25 1381 * several root files and 64c8697045f877 John Johansen 2017-05-25 1382 * policy/ * 64c8697045f877 John Johansen 2017-05-25 1383 */ f8eb8a1324e819 John Johansen 2013-08-14 1384 64c8697045f877 John Johansen 2017-05-25 1385 #define SEQ_NS_FOPS(NAME) \ 64c8697045f877 John Johansen 2017-05-25 1386 static int seq_ns_ ##NAME ##_open(struct inode *inode, struct file *file) \ 64c8697045f877 John Johansen 2017-05-25 1387 { \ 64c8697045f877 John Johansen 2017-05-25 1388 return single_open(file, seq_ns_ ##NAME ##_show, inode->i_private); \ 64c8697045f877 John Johansen 2017-05-25 1389 } \ 64c8697045f877 John Johansen 2017-05-25 1390 \ 64c8697045f877 John Johansen 2017-05-25 @1391 static const struct file_operations seq_ns_ ##NAME ##_fops = { \ 64c8697045f877 John Johansen 2017-05-25 1392 .owner = THIS_MODULE, \ 64c8697045f877 John Johansen 2017-05-25 1393 .open = seq_ns_ ##NAME ##_open, \ 64c8697045f877 John Johansen 2017-05-25 1394 .read = seq_read, \ 64c8697045f877 John Johansen 2017-05-25 1395 .llseek = seq_lseek, \ 64c8697045f877 John Johansen 2017-05-25 1396 .release = single_release, \ 64c8697045f877 John Johansen 2017-05-25 1397 } \ 3e3e569539864d John Johansen 2017-01-16 1398 :::::: The code at line 1391 was first introduced by commit :::::: 64c8697045f87713f0648e8429fcc3a0c4c61ffd apparmor: use macro template to simplify namespace seq_files :::::: TO: John Johansen <[email protected]> :::::: CC: John Johansen <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki