All of lore.kernel.org
 help / color / mirror / Atom feed
* [ebiggers:wip-aes-gcm 52/60] lib/crypto/aes.c:1522:13: warning: 'aes_gcm_decrypt_arch' defined but not used
@ 2026-11-28  7:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-28  7:23 UTC (permalink / raw)
  To: Eric Biggers; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git wip-aes-gcm
head:   582d64ea07ba0a2bebed6eee194d7328cbad617b
commit: c3ffe11001b2e3af97b557bbbcaf54b8c08e51fe [52/60] lib/crypto: aes-gcm: Add one-shot AES-GCM arch hooks
config: um-randconfig-2200-20261128 (https://download.01.org/0day-ci/archive/20261128/20261128081511.5FCmncTg-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261128/20261128081511.5FCmncTg-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/20261128081511.5FCmncTg-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> lib/crypto/aes.c:1522:13: warning: 'aes_gcm_decrypt_arch' defined but not used [-Wunused-function]
    1522 | static bool aes_gcm_decrypt_arch(u8 *dst, const u8 *src, size_t data_len,
         |             ^~~~~~~~~~~~~~~~~~~~
>> lib/crypto/aes.c:1513:13: warning: 'aes_gcm_encrypt_arch' defined but not used [-Wunused-function]
    1513 | static bool aes_gcm_encrypt_arch(u8 *dst, const u8 *src, size_t data_len,
         |             ^~~~~~~~~~~~~~~~~~~~


vim +/aes_gcm_decrypt_arch +1522 lib/crypto/aes.c

  1500	
  1501	/*
  1502	 * Hooks for optimized one-shot AES-GCM implementations, overridable by the
  1503	 * architecture.  They are called with ad_len <= AES_GCM_MAX_AD_LEN and
  1504	 * data_len <= AES_GCM_MAX_DATA_LEN.  Both in-place and out-of-place
  1505	 * en/decryption must be supported.  Returning false causes the incremental
  1506	 * implementation to be used instead.
  1507	 *
  1508	 * When aes_gcm_decrypt_arch() returns true, it sets *err to 0 if the
  1509	 * authentication tag is valid or -EBADMSG if it is invalid.  The caller clears
  1510	 * dst on error.
  1511	 */
  1512	#ifndef aes_gcm_encrypt_arch
> 1513	static bool aes_gcm_encrypt_arch(u8 *dst, const u8 *src, size_t data_len,
  1514					 u8 *authtag, const u8 *ad, size_t ad_len,
  1515					 const u8 nonce[12],
  1516					 const struct aes_gcm_key *key)
  1517	{
  1518		return false;
  1519	}
  1520	#endif
  1521	#ifndef aes_gcm_decrypt_arch
> 1522	static bool aes_gcm_decrypt_arch(u8 *dst, const u8 *src, size_t data_len,
  1523					 const u8 *authtag, const u8 *ad, size_t ad_len,
  1524					 const u8 nonce[12],
  1525					 const struct aes_gcm_key *key, int *err)
  1526	{
  1527		return false;
  1528	}
  1529	#endif
  1530	

-- 
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-11-28  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28  7:23 [ebiggers:wip-aes-gcm 52/60] lib/crypto/aes.c:1522:13: warning: 'aes_gcm_decrypt_arch' defined but not used 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.