All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: John Johansen <john.johansen@canonical.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Georgia Garcia <georgia.garcia@canonical.com>
Subject: [linux-next:master 10056/11507] security/apparmor/apparmorfs.c:1602:17: error: implicit declaration of function 'decompress_zstd'
Date: Sat, 01 Aug 2026 08:30:57 +0800	[thread overview]
Message-ID: <202608010834.9yIVzhG2-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-08-01  0:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202608010834.9yIVzhG2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=georgia.garcia@canonical.com \
    --cc=john.johansen@canonical.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.