All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:6.6-1.0.x-imx 4777/11728] drivers/tee/crypto/tee_skcipher.c:467:5: warning: no previous prototype for function 'tee_crypt_algapi_init'
@ 2024-04-28 15:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-28 15:04 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: oe-kbuild-all

tree:   https://github.com/Freescale/linux-fslc 6.6-1.0.x-imx
head:   37770f55ac9c4f6cd958eb5544939207eed8478f
commit: fdf1dcebfcb499dfb4843df4d0be7c9c840cbf40 [4777/11728] tee: crypto: enable support for skcipher
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240428/202404282202.k1p1Eag9-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240428/202404282202.k1p1Eag9-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/202404282202.k1p1Eag9-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/tee/crypto/tee_skcipher.c:467:5: warning: no previous prototype for function 'tee_crypt_algapi_init' [-Wmissing-prototypes]
   int tee_crypt_algapi_init(void)
       ^
   drivers/tee/crypto/tee_skcipher.c:467:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int tee_crypt_algapi_init(void)
   ^
   static 
>> drivers/tee/crypto/tee_skcipher.c:494:6: warning: no previous prototype for function 'tee_crypt_algapi_exit' [-Wmissing-prototypes]
   void tee_crypt_algapi_exit(void)
        ^
   drivers/tee/crypto/tee_skcipher.c:494:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void tee_crypt_algapi_exit(void)
   ^
   static 
   2 warnings generated.


vim +/tee_crypt_algapi_init +467 drivers/tee/crypto/tee_skcipher.c

   466	
 > 467	int tee_crypt_algapi_init(void)
   468	{
   469		int i = 0, ret = 0;
   470		bool registered = false;
   471	
   472		for (i = 0; i < ARRAY_SIZE(driver_algs); i++) {
   473			struct tee_crypt_skcipher_alg *t_alg = driver_algs + i;
   474	
   475			tee_crypt_skcipher_alg_init(t_alg);
   476	
   477			ret = crypto_register_skcipher(&t_alg->skcipher);
   478			if (ret) {
   479				pr_warn("%s alg registration failed\n",
   480					t_alg->skcipher.base.cra_driver_name);
   481				continue;
   482			}
   483	
   484			t_alg->registered = true;
   485			registered = true;
   486		}
   487	
   488		if (registered)
   489			pr_info("tee_crypt algorithms registered in /proc/crypto\n");
   490	
   491		return ret;
   492	}
   493	
 > 494	void tee_crypt_algapi_exit(void)
   495	{
   496		int i;
   497	
   498		for (i = 0; i < ARRAY_SIZE(driver_algs); i++) {
   499			struct tee_crypt_skcipher_alg *t_alg = driver_algs + i;
   500	
   501			if (t_alg->registered)
   502				crypto_unregister_skcipher(&t_alg->skcipher);
   503		}
   504	}
   505	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-28 15:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28 15:04 [freescale-fslc:6.6-1.0.x-imx 4777/11728] drivers/tee/crypto/tee_skcipher.c:467:5: warning: no previous prototype for function 'tee_crypt_algapi_init' kernel test robot

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.