All of lore.kernel.org
 help / color / mirror / Atom feed
* [l1k:spdm-future 22/46] lib/spdm/req-sysfs.c:176:55: warning: omitting the parameter name in a function definition is a C2x extension
@ 2024-04-12 10:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-12 10:56 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: oe-kbuild-all

tree:   https://github.com/l1k/linux spdm-future
head:   04f0af4bcc5b52f17682de7c27eb469f6f794197
commit: f94b1e338bc3a4fc1bdc262899734d0699b9a747 [22/46] PCI/CMA: Expose in sysfs a log of received signatures
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240412/202404121811.DTbeyf2a-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240412/202404121811.DTbeyf2a-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/202404121811.DTbeyf2a-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> lib/spdm/req-sysfs.c:176:55: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
     176 | static ssize_t spdm_read_combined_prefix(struct file *, struct kobject *,
         |                                                       ^
   lib/spdm/req-sysfs.c:176:73: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
     176 | static ssize_t spdm_read_combined_prefix(struct file *, struct kobject *,
         |                                                                         ^
   2 warnings generated.


vim +176 lib/spdm/req-sysfs.c

   175	
 > 176	static ssize_t spdm_read_combined_prefix(struct file *, struct kobject *,
   177						 struct bin_attribute *attr,
   178						 char *buf, loff_t off, size_t count)
   179	{
   180		struct spdm_log_entry *log = attr->private;
   181	
   182		/*
   183		 * SPDM 1.0 and 1.1 do not add a combined prefix to the hash
   184		 * before computing the signature, so return an empty file.
   185		 */
   186		if (log->version <= 0x11)
   187			return 0;
   188	
   189		void *tmp __free(kfree) = kmalloc(SPDM_COMBINED_PREFIX_SZ, GFP_KERNEL);
   190		if (!tmp)
   191			return -ENOMEM;
   192	
   193		spdm_create_combined_prefix(log->version, log->spdm_context.var, tmp);
   194		memcpy(buf, tmp + off, count);
   195		return count;
   196	}
   197	

-- 
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-12 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-12 10:56 [l1k:spdm-future 22/46] lib/spdm/req-sysfs.c:176:55: warning: omitting the parameter name in a function definition is a C2x extension 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.