[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202507011805.BSIqVlhe-lkp@intel.com>
Date: Tue, 1 Jul 2025 19:02:28 +0800
From: kernel test robot <lkp@...el.com>
To: Ryan Chung <seokwoo.chung130@...il.com>, hao.wu@...el.com,
trix@...hat.com, mdf@...nel.org, yilun.xu@...el.com
Cc: oe-kbuild-all@...ts.linux.dev, linux-fpga@...r.kernel.org,
linux-kernel-mentees@...ts.linux.dev, linux-kernel@...r.kernel.org,
Ryan Chung <seokwoo.chung130@...il.com>
Subject: Re: [PATCH] fpga: dfl: Replace scnprintf() with sysfs_emit()
Hi Ryan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on v6.16-rc4 next-20250630]
[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/Ryan-Chung/fpga-dfl-Replace-scnprintf-with-sysfs_emit/20250630-205221
base: linus/master
patch link: https://lore.kernel.org/r/20250630125018.48417-1-seokwoo.chung130%40gmail.com
patch subject: [PATCH] fpga: dfl: Replace scnprintf() with sysfs_emit()
config: sparc-randconfig-r112-20250701 (https://download.01.org/0day-ci/archive/20250701/202507011805.BSIqVlhe-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 8.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250701/202507011805.BSIqVlhe-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507011805.BSIqVlhe-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/fpga/dfl-afu-main.c:159:32: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char const *fmt @@ got unsigned long @@
drivers/fpga/dfl-afu-main.c:159:32: sparse: expected char const *fmt
drivers/fpga/dfl-afu-main.c:159:32: sparse: got unsigned long
drivers/fpga/dfl-afu-main.c:478:32: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char const *fmt @@ got unsigned long @@
drivers/fpga/dfl-afu-main.c:478:32: sparse: expected char const *fmt
drivers/fpga/dfl-afu-main.c:478:32: sparse: got unsigned long
vim +159 drivers/fpga/dfl-afu-main.c
152
153 static ssize_t
154 id_show(struct device *dev, struct device_attribute *attr, char *buf)
155 {
156 struct dfl_feature_dev_data *fdata = to_dfl_feature_dev_data(dev);
157 int id = port_get_id(fdata);
158
> 159 return sysfs_emit(buf, PAGE_SIZE, "%d\n", id);
160 }
161 static DEVICE_ATTR_RO(id);
162
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists