lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 28 Feb 2021 03:14:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ard Biesheuvel <ard.biesheuvel@...aro.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Herbert Xu <herbert@...dor.apana.org.au>,
        Ondrej Mosnacek <omosnace@...hat.com>
Subject: crypto/aegis128-neon.c:17:6: warning: no previous prototype for
 'crypto_aegis128_have_simd'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5695e51619745d4fe3ec2506a2f0cd982c5e27a4
commit: a4397635afea5d127548d64e0055ed471ef2d5be crypto: aegis128 - provide a SIMD implementation based on NEON intrinsics
date:   1 year, 6 months ago
config: arm64-randconfig-r035-20210226 (attached as .config)
compiler: aarch64-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/torvalds/linux.git/commit/?id=a4397635afea5d127548d64e0055ed471ef2d5be
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a4397635afea5d127548d64e0055ed471ef2d5be
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> crypto/aegis128-neon.c:17:6: warning: no previous prototype for 'crypto_aegis128_have_simd' [-Wmissing-prototypes]
      17 | bool crypto_aegis128_have_simd(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~
>> crypto/aegis128-neon.c:22:6: warning: no previous prototype for 'crypto_aegis128_update_simd' [-Wmissing-prototypes]
      22 | void crypto_aegis128_update_simd(union aegis_block *state, const void *msg)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> crypto/aegis128-neon.c:29:6: warning: no previous prototype for 'crypto_aegis128_encrypt_chunk_simd' [-Wmissing-prototypes]
      29 | void crypto_aegis128_encrypt_chunk_simd(union aegis_block *state, u8 *dst,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> crypto/aegis128-neon.c:37:6: warning: no previous prototype for 'crypto_aegis128_decrypt_chunk_simd' [-Wmissing-prototypes]
      37 | void crypto_aegis128_decrypt_chunk_simd(union aegis_block *state, u8 *dst,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from crypto/aegis128-neon.c:9:
   crypto/aegis.h:27:32: warning: 'crypto_aegis_const' defined but not used [-Wunused-const-variable=]
      27 | static const union aegis_block crypto_aegis_const[2] = {
         |                                ^~~~~~~~~~~~~~~~~~
--
>> crypto/aegis128-neon-inner.c:76:6: warning: no previous prototype for 'crypto_aegis128_update_neon' [-Wmissing-prototypes]
      76 | void crypto_aegis128_update_neon(void *state, const void *msg)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> crypto/aegis128-neon-inner.c:85:6: warning: no previous prototype for 'crypto_aegis128_encrypt_chunk_neon' [-Wmissing-prototypes]
      85 | void crypto_aegis128_encrypt_chunk_neon(void *state, void *dst, const void *src,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> crypto/aegis128-neon-inner.c:117:6: warning: no previous prototype for 'crypto_aegis128_decrypt_chunk_neon' [-Wmissing-prototypes]
     117 | void crypto_aegis128_decrypt_chunk_neon(void *state, void *dst, const void *src,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/crypto_aegis128_have_simd +17 crypto/aegis128-neon.c

    10	
    11	void crypto_aegis128_update_neon(void *state, const void *msg);
    12	void crypto_aegis128_encrypt_chunk_neon(void *state, void *dst, const void *src,
    13						unsigned int size);
    14	void crypto_aegis128_decrypt_chunk_neon(void *state, void *dst, const void *src,
    15						unsigned int size);
    16	
  > 17	bool crypto_aegis128_have_simd(void)
    18	{
    19		return cpu_have_feature(cpu_feature(AES));
    20	}
    21	
  > 22	void crypto_aegis128_update_simd(union aegis_block *state, const void *msg)
    23	{
    24		kernel_neon_begin();
    25		crypto_aegis128_update_neon(state, msg);
    26		kernel_neon_end();
    27	}
    28	
  > 29	void crypto_aegis128_encrypt_chunk_simd(union aegis_block *state, u8 *dst,
    30						const u8 *src, unsigned int size)
    31	{
    32		kernel_neon_begin();
    33		crypto_aegis128_encrypt_chunk_neon(state, dst, src, size);
    34		kernel_neon_end();
    35	}
    36	
  > 37	void crypto_aegis128_decrypt_chunk_simd(union aegis_block *state, u8 *dst,

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (33938 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ