[linux-next:master 4291/4552] arch/powerpc/platforms/pseries/plpks_sed_ops.c:42:6: error: no previous prototype for function 'plpks_init_var'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3c13c772fc233a10342c8e1605ff0855dfdf0c89
commit: 9f2c7411ada98f9e062bcd493be7d6b694048505 [4291/4552] powerpc/pseries: PLPKS SED Opal keystore support
config: powerpc64-randconfig-r012-20230913 (https://download.01.org/0day-ci/archive/20230913/202309130714.uIQZSaf5-lkp@xxxxxxxxx/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/20230913/202309130714.uIQZSaf5-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309130714.uIQZSaf5-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> arch/powerpc/platforms/pseries/plpks_sed_ops.c:42:6: error: no previous prototype for function 'plpks_init_var' [-Werror,-Wmissing-prototypes]
   void plpks_init_var(struct plpks_var *var, char *keyname)
        ^
   arch/powerpc/platforms/pseries/plpks_sed_ops.c:42:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void plpks_init_var(struct plpks_var *var, char *keyname)
   ^
   static 
   1 error generated.


vim +/plpks_init_var +42 arch/powerpc/platforms/pseries/plpks_sed_ops.c

    41	
  > 42	void plpks_init_var(struct plpks_var *var, char *keyname)
    43	{
    44		var->name = keyname;
    45		var->namelen = strlen(keyname);
    46		if (strcmp(PLPKS_SED_KEY, keyname) == 0) {
    47			var->name = PLPKS_SED_MANGLED_LABEL;
    48			var->namelen = strlen(keyname);
    49		}
    50		var->policy = PLPKS_WORLDREADABLE;
    51		var->os = PLPKS_VAR_COMMON;
    52		var->data = NULL;
    53		var->datalen = 0;
    54		var->component = PLPKS_SED_COMPONENT;
    55	}
    56	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux