[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202504011217.iRb2Bbls-lkp@intel.com>
Date: Tue, 1 Apr 2025 13:48:22 +0800
From: kernel test robot <lkp@...el.com>
To: gpittala <ganeshkpittala@...il.com>, johan@...nel.org, elder@...nel.org,
gregkh@...uxfoundation.org
Cc: oe-kbuild-all@...ts.linux.dev, hvaibhav.linux@...il.com,
vaibhav.sr@...il.com, mgreer@...malcreek.com, rmfrfs@...il.com,
pure.logic@...us-software.ie, greybus-dev@...ts.linaro.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
ganeshkpittala@...il.com
Subject: Re: [PATCH] staging: greybus: Multiple cleanups and refactors
Hi gpittala,
kernel test robot noticed the following build warnings:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/intel-lab-lkp/linux/commits/gpittala/staging-greybus-Multiple-cleanups-and-refactors/20250401-053719
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20250331213337.6171-1-ganeshkpittala%40gmail.com
patch subject: [PATCH] staging: greybus: Multiple cleanups and refactors
config: sparc-randconfig-002-20250401 (https://download.01.org/0day-ci/archive/20250401/202504011217.iRb2Bbls-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250401/202504011217.iRb2Bbls-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/202504011217.iRb2Bbls-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/staging/greybus/loopback.c: In function 'latency_min_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:272:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(latency);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:272:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(latency);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'latency_max_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:272:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(latency);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:272:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(latency);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'requests_per_second_min_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:274:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(requests_per_second);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:274:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(requests_per_second);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'requests_per_second_max_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:274:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(requests_per_second);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:274:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(requests_per_second);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'throughput_min_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:276:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(throughput);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:276:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(throughput);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'throughput_max_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:276:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(throughput);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:276:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(throughput);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'apbridge_unipro_latency_min_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:278:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(apbridge_unipro_latency);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:278:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(apbridge_unipro_latency);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'apbridge_unipro_latency_max_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:278:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(apbridge_unipro_latency);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:278:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(apbridge_unipro_latency);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'gbphy_firmware_latency_min_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:280:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(gbphy_firmware_latency);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:167:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, min, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:280:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(gbphy_firmware_latency);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'gbphy_firmware_latency_max_show':
>> drivers/staging/greybus/loopback.c:142:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:280:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(gbphy_firmware_latency);
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/greybus/loopback.c:142:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
^
drivers/staging/greybus/loopback.c:168:2: note: in expansion of macro 'gb_loopback_ro_stats_attr'
gb_loopback_ro_stats_attr(field, max, u); \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:280:1: note: in expansion of macro 'gb_loopback_stats_attrs'
gb_loopback_stats_attrs(gbphy_firmware_latency);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'type_show':
drivers/staging/greybus/loopback.c:213:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:301:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(type, d);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:213:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:301:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(type, d);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'size_show':
drivers/staging/greybus/loopback.c:213:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:303:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(size, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:213:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:303:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(size, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'us_wait_show':
drivers/staging/greybus/loopback.c:213:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:305:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(us_wait, d);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:213:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:305:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(us_wait, d);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'iteration_max_show':
drivers/staging/greybus/loopback.c:213:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:307:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(iteration_max, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:213:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:307:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(iteration_max, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'async_show':
drivers/staging/greybus/loopback.c:213:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:311:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(async, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:213:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:311:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(async, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'timeout_show':
drivers/staging/greybus/loopback.c:213:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:313:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(timeout, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:213:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:313:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(timeout, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c: In function 'outstanding_operations_max_show':
drivers/staging/greybus/loopback.c:213:25: warning: unknown conversion type character '\x0a' in format [-Wformat=]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:315:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(outstanding_operations_max, u);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/greybus/loopback.c:213:25: warning: too many arguments for format [-Wformat-extra-args]
return sysfs_emit(buf, "%\n" #type "\n", gb->field); \
^
drivers/staging/greybus/loopback.c:315:1: note: in expansion of macro 'gb_dev_loopback_rw_attr'
gb_dev_loopback_rw_attr(outstanding_operations_max, u);
^~~~~~~~~~~~~~~~~~~~~~~
vim +/x0a +142 drivers/staging/greybus/loopback.c
132
133 #define gb_loopback_ro_stats_attr(name, field, type) \
134 static ssize_t name##_##field##_show(struct device *dev, \
135 struct device_attribute *attr, \
136 char *buf) \
137 { \
138 struct gb_loopback *gb = dev_get_drvdata(dev); \
139 /* Report 0 for min and max if no transfer succeeded */ \
140 if (!gb->requests_completed) \
141 return sysfs_emit(buf, "0\n"); \
> 142 return sysfs_emit(buf, "%\n" #type "\n", gb->name.field); \
143 } \
144 static DEVICE_ATTR_RO(name##_##field)
145
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists