Re: [PATCH] crypto: Used macros from compiler.h instead of __attribute__(...))

From: kbuild test robot
Date: Fri Dec 30 2016 - 19:04:06 EST


Hi =,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.10-rc1 next-20161224]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/gidisrael-gmail-com/crypto-Used-macros-from-compiler-h-instead-of-__attribute__/20161231-072412
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile

All errors (new ones prefixed by >>):

crypto/shash.c: In function 'shash_update_unaligned':
>> crypto/shash.c:84:3: error: requested alignment is not a constant
crypto/shash.c: In function 'shash_final_unaligned':
crypto/shash.c:120:3: error: requested alignment is not a constant

vim +84 crypto/shash.c

78 struct crypto_shash *tfm = desc->tfm;
79 struct shash_alg *shash = crypto_shash_alg(tfm);
80 unsigned long alignmask = crypto_shash_alignmask(tfm);
81 unsigned int unaligned_len = alignmask + 1 -
82 ((unsigned long)data & alignmask);
83 u8 ubuf[shash_align_buffer_size(unaligned_len, alignmask)]
> 84 __aligned(aligned);
85 u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1);
86 int err;
87

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip