* [linux-next:master 10056/11507] security/apparmor/apparmorfs.c:1602:17: error: implicit declaration of function 'decompress_zstd'
@ 2026-08-01 0:30 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-01 0:30 UTC (permalink / raw)
To: John Johansen; +Cc: oe-kbuild-all, Georgia Garcia
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/202608010834.9yIVzhG2-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/202608010834.9yIVzhG2-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608010834.9yIVzhG2-lkp@intel.com/
All errors (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 +/decompress_zstd +1602 security/apparmor/apparmorfs.c
5d5182cae40115 John Johansen 2017-05-09 1580
5d5182cae40115 John Johansen 2017-05-09 1581 static int rawdata_open(struct inode *inode, struct file *file)
5d5182cae40115 John Johansen 2017-05-09 1582 {
63c16c3a760855 Chris Coulson 2019-01-23 1583 int error;
63c16c3a760855 Chris Coulson 2019-01-23 1584 struct aa_loaddata *loaddata;
63c16c3a760855 Chris Coulson 2019-01-23 1585 struct rawdata_f_data *private;
63c16c3a760855 Chris Coulson 2019-01-23 1586
92de220a7f3363 John Johansen 2020-06-30 1587 if (!aa_current_policy_view_capable(NULL))
5ac8c355ae0013 John Johansen 2017-01-16 1588 return -EACCES;
63c16c3a760855 Chris Coulson 2019-01-23 1589
8e135b8aee5a06 John Johansen 2026-03-01 1590 loaddata = get_loaddata_common_ref(inode->i_private);
63c16c3a760855 Chris Coulson 2019-01-23 1591 if (!loaddata)
5d5182cae40115 John Johansen 2017-05-09 1592 return -ENOENT;
5ac8c355ae0013 John Johansen 2017-01-16 1593
63c16c3a760855 Chris Coulson 2019-01-23 1594 private = rawdata_f_data_alloc(loaddata->size);
63c16c3a760855 Chris Coulson 2019-01-23 1595 if (IS_ERR(private)) {
63c16c3a760855 Chris Coulson 2019-01-23 1596 error = PTR_ERR(private);
63c16c3a760855 Chris Coulson 2019-01-23 1597 goto fail_private_alloc;
63c16c3a760855 Chris Coulson 2019-01-23 1598 }
63c16c3a760855 Chris Coulson 2019-01-23 1599
63c16c3a760855 Chris Coulson 2019-01-23 1600 private->loaddata = loaddata;
63c16c3a760855 Chris Coulson 2019-01-23 1601
f4d6b94b40c966 Jon Tourville 2022-07-11 @1602 error = decompress_zstd(loaddata->data, loaddata->compressed_size,
ad213bbbc0e3e2 John Johansen 2026-03-01 1603 private->data, loaddata->size);
63c16c3a760855 Chris Coulson 2019-01-23 1604 if (error)
63c16c3a760855 Chris Coulson 2019-01-23 1605 goto fail_decompress;
63c16c3a760855 Chris Coulson 2019-01-23 1606
63c16c3a760855 Chris Coulson 2019-01-23 1607 file->private_data = private;
5ac8c355ae0013 John Johansen 2017-01-16 1608 return 0;
63c16c3a760855 Chris Coulson 2019-01-23 1609
63c16c3a760855 Chris Coulson 2019-01-23 1610 fail_decompress:
63c16c3a760855 Chris Coulson 2019-01-23 1611 rawdata_f_data_free(private);
63c16c3a760855 Chris Coulson 2019-01-23 1612 return error;
63c16c3a760855 Chris Coulson 2019-01-23 1613
63c16c3a760855 Chris Coulson 2019-01-23 1614 fail_private_alloc:
a0b7091c4de45a John Johansen 2026-02-24 1615 aa_put_i_loaddata(loaddata);
63c16c3a760855 Chris Coulson 2019-01-23 1616 return error;
5ac8c355ae0013 John Johansen 2017-01-16 1617 }
5ac8c355ae0013 John Johansen 2017-01-16 1618
:::::: The code at line 1602 was first introduced by commit
:::::: f4d6b94b40c966ddd9eeb0d451e8a02c595ec7e3 apparmor: use zstd compression for profile data
:::::: TO: Jon Tourville <jon.tourville@canonical.com>
:::::: CC: John Johansen <john.johansen@canonical.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-01 0:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-01 0:30 [linux-next:master 10056/11507] security/apparmor/apparmorfs.c:1602:17: error: implicit declaration of function 'decompress_zstd' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.