From: kbuild test robot <lkp@intel.com>
To: Matthew Blecker <matthewb@chromium.org>,
Wolfram Sang <wsa-dev@sang-engineering.com>,
linux-i2c@vger.kernel.org
Cc: kbuild-all@lists.01.org, Matthew Blecker <matthewb@chromium.org>,
Harry Cutts <hcutts@chromium.org>
Subject: Re: [PATCH v4] i2c: Add i2c-pseudo driver for userspace I2C adapters.
Date: Thu, 21 May 2020 14:30:49 +0800 [thread overview]
Message-ID: <202005211414.GsPDwTtp%lkp@intel.com> (raw)
In-Reply-To: <20200521002907.176922-1-matthewb@chromium.org>
[-- Attachment #1: Type: text/plain, Size: 4082 bytes --]
Hi Matthew,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on wsa/i2c/for-next]
[also build test WARNING on v5.7-rc6 next-20200519]
[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/Matthew-Blecker/i2c-Add-i2c-pseudo-driver-for-userspace-I2C-adapters/20200521-083201
base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/i2c/i2c-pseudo.c:104: warning: "STR" redefined
104 | #define STR(num) STR_HELPER(num)
|
In file included from arch/m68k/include/asm/irqflags.h:8,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/mutex.h:18,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cdev.h:5,
from drivers/i2c/i2c-pseudo.c:10:
arch/m68k/include/asm/entry.h:244: note: this is the location of the previous definition
244 | #define STR(X) STR1(X)
|
drivers/i2c/i2c-pseudo.c: In function 'vanprintf':
>> drivers/i2c/i2c-pseudo.c:767:2: warning: function 'vanprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
767 | ret = vsnprintf(NULL, 0, fmt, ap);
| ^~~
drivers/i2c/i2c-pseudo.c:782:2: warning: function 'vanprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
782 | ret = vsnprintf(buf, buf_size, fmt, args1);
| ^~~
drivers/i2c/i2c-pseudo.c: In function 'i2cp_cmd_set_timeout_cmd_completer':
>> drivers/i2c/i2c-pseudo.c:1838:27: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
1838 | if (cmd_data->timeout_ms < I2CP_TIMEOUT_MS_MIN ||
| ^
drivers/i2c/i2c-pseudo.c: In function 'i2cp_init':
drivers/i2c/i2c-pseudo.c:3130:17: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
3130 | if (i2cp_limit < I2CP_ADAPTERS_MIN || i2cp_limit > I2CP_ADAPTERS_MAX) {
| ^
vim +767 drivers/i2c/i2c-pseudo.c
756
757 /* vanprintf - See anprintf() documentation. */
758 static ssize_t vanprintf(char **out, ssize_t max_size, gfp_t gfp,
759 const char *fmt, va_list ap)
760 {
761 int ret;
762 ssize_t buf_size;
763 char *buf = NULL;
764 va_list args1;
765
766 va_copy(args1, ap);
> 767 ret = vsnprintf(NULL, 0, fmt, ap);
768 if (ret < 0)
769 goto fail_before_args1;
770 if (max_size >= 0 && ret > max_size) {
771 ret = -ERANGE;
772 goto fail_before_args1;
773 }
774
775 buf_size = ret + 1;
776 buf = kmalloc_track_caller(buf_size, gfp);
777 if (buf == NULL) {
778 ret = -ENOMEM;
779 goto fail_before_args1;
780 }
781
782 ret = vsnprintf(buf, buf_size, fmt, args1);
783 va_end(args1);
784 if (ret < 0)
785 goto fail_after_args1;
786 if (ret + 1 != buf_size) {
787 ret = -ENOTRECOVERABLE;
788 goto fail_after_args1;
789 }
790
791 *out = buf;
792 return ret;
793
794 fail_before_args1:
795 va_end(args1);
796 fail_after_args1:
797 kfree(buf);
798 if (ret >= 0)
799 ret = -ENOTRECOVERABLE;
800 return ret;
801 }
802
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 54041 bytes --]
next prev parent reply other threads:[~2020-05-21 6:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-21 0:29 [PATCH v4] i2c: Add i2c-pseudo driver for userspace I2C adapters Matthew Blecker
2020-05-21 6:30 ` kbuild test robot [this message]
2020-05-23 22:53 ` kbuild test robot
2020-05-25 0:15 ` Nicolas Boichat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202005211414.GsPDwTtp%lkp@intel.com \
--to=lkp@intel.com \
--cc=hcutts@chromium.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-i2c@vger.kernel.org \
--cc=matthewb@chromium.org \
--cc=wsa-dev@sang-engineering.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).