[linux-next:master 1798/4965] arch/powerpc/platforms/pseries/plpks_sed_ops.c:42:6: warning: 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:   e143016b56ecb0fcda5bb6026b0a25fe55274f56
commit: 9f2c7411ada98f9e062bcd493be7d6b694048505 [1798/4965] powerpc/pseries: PLPKS SED Opal keystore support
config: powerpc64-randconfig-r013-20230913 (https://download.01.org/0day-ci/archive/20230913/202309131502.S7bZJiaV-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230913/202309131502.S7bZJiaV-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/202309131502.S7bZJiaV-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> arch/powerpc/platforms/pseries/plpks_sed_ops.c:42:6: warning: no previous prototype for function 'plpks_init_var' [-Wmissing-prototypes]
      42 | 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
      42 | void plpks_init_var(struct plpks_var *var, char *keyname)
         | ^
         | static 
   1 warning 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