Re: [PATCH v3] platform/chrome: wilco_ec: Add debugfs test_event file

From: kbuild test robot
Date: Wed Sep 18 2019 - 16:11:39 EST


Hi Daniel,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3 next-20190917]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url: https://github.com/0day-ci/linux/commits/Daniel-Campello/platform-chrome-wilco_ec-Add-debugfs-test_event-file/20190919-014111
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

In file included from drivers/platform/chrome/wilco_ec/debugfs.c:11:0:
drivers/platform/chrome/wilco_ec/debugfs.c: In function 'fops_test_event_open':
>> drivers/platform/chrome/wilco_ec/debugfs.c:230:65: warning: zero-length gnu_printf format string [-Wformat-zero-length]
DEFINE_DEBUGFS_ATTRIBUTE(fops_test_event, NULL, test_event_set, "");
^
include/linux/debugfs.h:45:29: note: in definition of macro 'DEFINE_DEBUGFS_ATTRIBUTE'
__simple_attr_check_format(__fmt, 0ull); \
^~~~~

vim +230 drivers/platform/chrome/wilco_ec/debugfs.c

226
227 /* Format is empty since it is only used on read operations which are
228 * forbidden by file permissions.
229 */
> 230 DEFINE_DEBUGFS_ATTRIBUTE(fops_test_event, NULL, test_event_set, "");
231

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip