linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/powerpc/platforms/pseries/plpks.c:186: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
@ 2023-08-03 20:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-03 20:52 UTC (permalink / raw)
  To: Nayna Jain; +Cc: oe-kbuild-all, linux-kernel, Michael Ellerman, linux-doc

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7bafbd4027ae86572f308c4ddf93120c90126332
commit: 2454a7af0f2a42918aa972147a0bec38e6656cd8 powerpc/pseries: define driver for Platform KeyStore
date:   1 year ago
config: powerpc-ppc64_defconfig (https://download.01.org/0day-ci/archive/20230804/202308040430.GxmPAnwZ-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230804/202308040430.GxmPAnwZ-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/202308040430.GxmPAnwZ-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/powerpc/platforms/pseries/plpks.c:186: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
    * Label is combination of label attributes + name.


vim +186 arch/powerpc/platforms/pseries/plpks.c

   184	
   185	/**
 > 186	 * Label is combination of label attributes + name.
   187	 * Label attributes are used internally by kernel and not exposed to the user.
   188	 */
   189	static struct label *construct_label(char *component, u8 varos, u8 *name,
   190					     u16 namelen)
   191	{
   192		struct label *label;
   193		size_t slen;
   194	
   195		if (!name || namelen > MAX_NAME_SIZE)
   196			return ERR_PTR(-EINVAL);
   197	
   198		slen = strlen(component);
   199		if (component && slen > sizeof(label->attr.prefix))
   200			return ERR_PTR(-EINVAL);
   201	
   202		label = kzalloc(sizeof(*label), GFP_KERNEL);
   203		if (!label)
   204			return ERR_PTR(-ENOMEM);
   205	
   206		if (component)
   207			memcpy(&label->attr.prefix, component, slen);
   208	
   209		label->attr.version = LABEL_VERSION;
   210		label->attr.os = varos;
   211		label->attr.length = MAX_LABEL_ATTR_SIZE;
   212		memcpy(&label->name, name, namelen);
   213	
   214		label->size = sizeof(struct label_attr) + namelen;
   215	
   216		return label;
   217	}
   218	

-- 
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:[~2023-08-03 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03 20:52 arch/powerpc/platforms/pseries/plpks.c:186: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).