[linux-next:master 10056/11507] security/apparmor/apparmorfs.c:1602:17: error: implicit declaration of function 'decompress_zstd'
kernel test robot <[email protected]> Sat, 01 Aug 2026 08:30:57 +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 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 <[email protected]> :::::: CC: John Johansen <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki