Subject: Re: [PATCH 2/6] powerpc/pseries: move the PLPKS config inside its own sysfs directory

From: kernel test robot <[email-masked]>
Date: Sun, 14 Dec 2025 02:21:12 +0800

Hi Srish,

kernel test robot noticed the following build warnings:

[auto build test WARNING on powerpc/next]
[also build test WARNING on powerpc/fixes zohar-integrity/next-integrity linus/master v6.18 next-20251212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Srish-Srinivasan/pseries-plpks-fix-kernel-doc-comment-inconsistencies/20251213-132948
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
patch link:    https://lore.kernel.org/r/20251213052618.190691-3-ssrish%40linux.ibm.com
patch subject: [PATCH 2/6] powerpc/pseries: move the PLPKS config inside its own sysfs directory
config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20251214/[email-masked]/config)
compiler: powerpc-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/[email-masked]/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 <[email-masked]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email-masked]/

All warnings (new ones prefixed by >>):

   In file included from arch/powerpc/kernel/prom.c:59:
>> arch/powerpc/include/asm/plpks.h:118:12: warning: 'plpks_config_create_softlink' defined but not used [-Wunused-function]
     118 | static int plpks_config_create_softlink(struct kobject *from) { return 0; }
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/plpks_config_create_softlink +118 arch/powerpc/include/asm/plpks.h

   111	
   112	int plpks_config_create_softlink(struct kobject *from);
   113	#else // CONFIG_PSERIES_PLPKS
   114	static inline bool plpks_is_available(void) { return false; }
   115	static inline u16 plpks_get_passwordlen(void) { BUILD_BUG(); }
   116	static inline void plpks_early_init_devtree(void) { }
   117	static inline int plpks_populate_fdt(void *fdt) { BUILD_BUG(); }
 > 118	static int plpks_config_create_softlink(struct kobject *from) { return 0; }
   119	#endif // CONFIG_PSERIES_PLPKS
   120	

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