[herbert-cryptodev-2.6:master 17/22] arch/arm64/crypto/sha256-glue.c:194:1: warning: data definition has no type or storage class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   7883d1b28a2b0e62edcacea22de6b36a1918b15a
commit: 6c19f3bfff0344cdc02e7b074062a9acd026f010 [17/22] crypto: lib/sha256 - Use generic code from sha256_base
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230519/202305191953.PIB1w80W-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 12.1.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/herbert/cryptodev-2.6.git/commit/?id=6c19f3bfff0344cdc02e7b074062a9acd026f010
        git remote add herbert-cryptodev-2.6 https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
        git fetch --no-tags herbert-cryptodev-2.6 master
        git checkout 6c19f3bfff0344cdc02e7b074062a9acd026f010
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/crypto/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305191953.PIB1w80W-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   arch/arm64/crypto/sha256-glue.c:18:20: error: expected declaration specifiers or '...' before string constant
      18 | MODULE_DESCRIPTION("SHA-224/SHA-256 secure hash for arm64");
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm64/crypto/sha256-glue.c:19:15: error: expected declaration specifiers or '...' before string constant
      19 | MODULE_AUTHOR("Andy Polyakov <appro@xxxxxxxxxxx>");
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm64/crypto/sha256-glue.c:20:15: error: expected declaration specifiers or '...' before string constant
      20 | MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx>");
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm64/crypto/sha256-glue.c:21:16: error: expected declaration specifiers or '...' before string constant
      21 | MODULE_LICENSE("GPL v2");
         |                ^~~~~~~~
   In file included from include/crypto/internal/hash.h:11,
                    from arch/arm64/crypto/sha256-glue.c:11:
   arch/arm64/crypto/sha256-glue.c:22:21: error: expected ')' before string constant
      22 | MODULE_ALIAS_CRYPTO("sha224");
         |                     ^~~~~~~~
   include/crypto/algapi.h:44:55: note: in definition of macro 'MODULE_ALIAS_CRYPTO'
      44 |                 __MODULE_INFO(alias, alias_userspace, name);    \
         |                                                       ^~~~
   include/crypto/algapi.h:45:52: error: expected ')' before string constant
      45 |                 __MODULE_INFO(alias, alias_crypto, "crypto-" name)
         |                                                    ^~~~~~~~~
   arch/arm64/crypto/sha256-glue.c:22:1: note: in expansion of macro 'MODULE_ALIAS_CRYPTO'
      22 | MODULE_ALIAS_CRYPTO("sha224");
         | ^~~~~~~~~~~~~~~~~~~
   arch/arm64/crypto/sha256-glue.c:23:21: error: expected ')' before string constant
      23 | MODULE_ALIAS_CRYPTO("sha256");
         |                     ^~~~~~~~
   include/crypto/algapi.h:44:55: note: in definition of macro 'MODULE_ALIAS_CRYPTO'
      44 |                 __MODULE_INFO(alias, alias_userspace, name);    \
         |                                                       ^~~~
   include/crypto/algapi.h:45:52: error: expected ')' before string constant
      45 |                 __MODULE_INFO(alias, alias_crypto, "crypto-" name)
         |                                                    ^~~~~~~~~
   arch/arm64/crypto/sha256-glue.c:23:1: note: in expansion of macro 'MODULE_ALIAS_CRYPTO'
      23 | MODULE_ALIAS_CRYPTO("sha256");
         | ^~~~~~~~~~~~~~~~~~~
>> arch/arm64/crypto/sha256-glue.c:194:1: warning: data definition has no type or storage class
     194 | module_init(sha256_mod_init);
         | ^~~~~~~~~~~
   arch/arm64/crypto/sha256-glue.c:194:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
>> arch/arm64/crypto/sha256-glue.c:194:1: warning: parameter names (without types) in function declaration
   arch/arm64/crypto/sha256-glue.c:195:1: warning: data definition has no type or storage class
     195 | module_exit(sha256_mod_fini);
         | ^~~~~~~~~~~
   arch/arm64/crypto/sha256-glue.c:195:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
   arch/arm64/crypto/sha256-glue.c:195:1: warning: parameter names (without types) in function declaration
   arch/arm64/crypto/sha256-glue.c:173:19: warning: 'sha256_mod_init' defined but not used [-Wunused-function]
     173 | static int __init sha256_mod_init(void)
         |                   ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +194 arch/arm64/crypto/sha256-glue.c

7918ecef073fe8 Ard Biesheuvel 2016-11-20  193  
7918ecef073fe8 Ard Biesheuvel 2016-11-20 @194  module_init(sha256_mod_init);

:::::: The code at line 194 was first introduced by commit
:::::: 7918ecef073fe80eeb399a37d8d48561864eedf1 crypto: arm64/sha2 - integrate OpenSSL implementations of SHA256/SHA512

:::::: TO: Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx>
:::::: CC: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux