[linux-next:master 10056/11507] security/apparmor/apparmorfs.c:1469:1: warning: unused variable 'seq_ns_compress_min_fops'

kernel test robot <[email protected]> Sat, 01 Aug 2026 04:29:15 +0800
Newsgroups dev.linux.lists.llvm,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: powerpc-randconfig-001-20260801 (https://download.01.org/0day-ci/archive/20260801/[email protected]/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
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:1469:1: warning: unused variable 'seq_ns_compress_min_fops' [-Wunused-const-variable]
    1469 | SEQ_NS_FOPS(compress_min);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
   security/apparmor/apparmorfs.c:1391:37: note: expanded from macro 'SEQ_NS_FOPS'
    1391 | static const struct file_operations seq_ns_ ##NAME ##_fops = {        \
         |                                     ^~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:132:1: note: expanded from here
     132 | seq_ns_compress_min_fops
         | ^~~~~~~~~~~~~~~~~~~~~~~~
>> security/apparmor/apparmorfs.c:1470:1: warning: unused variable 'seq_ns_compress_max_fops' [-Wunused-const-variable]
    1470 | SEQ_NS_FOPS(compress_max);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
   security/apparmor/apparmorfs.c:1391:37: note: expanded from macro 'SEQ_NS_FOPS'
    1391 | static const struct file_operations seq_ns_ ##NAME ##_fops = {        \
         |                                     ^~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:140:1: note: expanded from here
     140 | seq_ns_compress_max_fops
         | ^~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.


vim +/seq_ns_compress_min_fops +1469 security/apparmor/apparmorfs.c

2218d08123362c Jon Tourville 2022-07-11  1464  
40cde7fcc344bc John Johansen 2017-06-09  1465  SEQ_NS_FOPS(stacked);
40cde7fcc344bc John Johansen 2017-06-09  1466  SEQ_NS_FOPS(nsstacked);
64c8697045f877 John Johansen 2017-05-25  1467  SEQ_NS_FOPS(level);
64c8697045f877 John Johansen 2017-05-25  1468  SEQ_NS_FOPS(name);
2218d08123362c Jon Tourville 2022-07-11 @1469  SEQ_NS_FOPS(compress_min);
2218d08123362c Jon Tourville 2022-07-11 @1470  SEQ_NS_FOPS(compress_max);
3e3e569539864d John Johansen 2017-01-16  1471  
5d5182cae40115 John Johansen 2017-05-09  1472  

:::::: The code at line 1469 was first introduced by commit
:::::: 2218d08123362c63bab257caf5ec3bc1a6e87ae9 apparmor: expose compression level limits in sysfs

:::::: TO: Jon Tourville <[email protected]>
:::::: CC: John Johansen <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki