All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Eric Biggers <ebiggers@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [ebiggers:wip-aes-gcm 52/60] lib/crypto/aes.c:1522:13: warning: 'aes_gcm_decrypt_arch' defined but not used
Date: Sat, 28 Nov 2026 08:23:48 +0100	[thread overview]
Message-ID: <20261128081511.5FCmncTg-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-11-28  7:24 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=20261128081511.5FCmncTg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ebiggers@kernel.org \
    --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.