tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git
linux-5.4.y
head: 77e3436dc72b46a2aea0d899841065fba8f5b5fa
commit: cf24f27f1874da8e52e7f438e39e735d781152d0 [400/405] crypto: lib/sha256 - add
sha256() function
config: sparc64-randconfig-r005-20201021 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git/c...
git remote add f2fs-stable
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git
git fetch --no-tags f2fs-stable linux-5.4.y
git checkout cf24f27f1874da8e52e7f438e39e735d781152d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> arch/sparc/crypto/sha256_glue.c:160:25: error: 'sha256'
redeclared as different kind of symbol
160 | static struct shash_alg sha256 =
{
| ^~~~~~
In file included from arch/sparc/crypto/sha256_glue.c:20:
include/crypto/sha.h:140:6: note: previous declaration of 'sha256' was here
140 | void sha256(const u8 *data, unsigned int len, u8 *out);
| ^~~~~~
vim +/sha256 +160 arch/sparc/crypto/sha256_glue.c
86c93b24ef49d64 David S. Miller 2012-08-19 159
86c93b24ef49d64 David S. Miller 2012-08-19 @160 static struct shash_alg sha256 = {
86c93b24ef49d64 David S. Miller 2012-08-19 161 .digestsize = SHA256_DIGEST_SIZE,
86c93b24ef49d64 David S. Miller 2012-08-19 162 .init = sha256_sparc64_init,
86c93b24ef49d64 David S. Miller 2012-08-19 163 .update = sha256_sparc64_update,
86c93b24ef49d64 David S. Miller 2012-08-19 164 .final = sha256_sparc64_final,
86c93b24ef49d64 David S. Miller 2012-08-19 165 .export = sha256_sparc64_export,
86c93b24ef49d64 David S. Miller 2012-08-19 166 .import = sha256_sparc64_import,
86c93b24ef49d64 David S. Miller 2012-08-19 167 .descsize = sizeof(struct
sha256_state),
86c93b24ef49d64 David S. Miller 2012-08-19 168 .statesize = sizeof(struct
sha256_state),
86c93b24ef49d64 David S. Miller 2012-08-19 169 .base = {
86c93b24ef49d64 David S. Miller 2012-08-19 170 .cra_name = "sha256",
86c93b24ef49d64 David S. Miller 2012-08-19 171
.cra_driver_name= "sha256-sparc64",
1080362425793f6 David S. Miller 2012-09-15 172
.cra_priority = SPARC_CR_OPCODE_PRIORITY,
86c93b24ef49d64 David S. Miller 2012-08-19 173 .cra_blocksize = SHA256_BLOCK_SIZE,
86c93b24ef49d64 David S. Miller 2012-08-19 174 .cra_module = THIS_MODULE,
86c93b24ef49d64 David S. Miller 2012-08-19 175 }
86c93b24ef49d64 David S. Miller 2012-08-19 176 };
86c93b24ef49d64 David S. Miller 2012-08-19 177
:::::: The code at line 160 was first introduced by commit
:::::: 86c93b24ef49d64062045c4e3cc2ed4609f6842a sparc64: Add SHA224/SHA256 driver making
use of the 'sha256' instruction.
:::::: TO: David S. Miller <davem(a)davemloft.net>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org