All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC Patch Resend 1/2] i2c debug counters as sysfs attributes
Date: Thu, 11 Nov 2021 17:39:50 +0800	[thread overview]
Message-ID: <202111111727.UxBDNeeD-lkp@intel.com> (raw)
In-Reply-To: <20211109225321.618688-2-suichen@google.com>

[-- Attachment #1: Type: text/plain, Size: 6739 bytes --]

Hi Sui,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on linux/master linus/master v5.15 next-20211111]
[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]

url:    https://github.com/0day-ci/linux/commits/Sui-Chen/I2C-statistics-as-sysfs-attributes/20211110-065938
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: openrisc-buildonly-randconfig-r003-20211111 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/769ea06c7d8b5744deba5e6cfe2df6d9079b41df
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Sui-Chen/I2C-statistics-as-sysfs-attributes/20211110-065938
        git checkout 769ea06c7d8b5744deba5e6cfe2df6d9079b41df
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=openrisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/i2c/i2c-dev.c: In function 'ber_cnt_show':
>> drivers/i2c/i2c-dev.c:779:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
     779 |         ssize_t ret = sprintf(buf, "%llu\n", *ber_cnt);
         |         ^~~~~~~
   drivers/i2c/i2c-dev.c: At top level:
>> drivers/i2c/i2c-dev.c:784:9: error: no previous prototype for 'nack_cnt_show' [-Werror=missing-prototypes]
     784 | ssize_t nack_cnt_show(struct device* pdev,
         |         ^~~~~~~~~~~~~
   drivers/i2c/i2c-dev.c: In function 'nack_cnt_show':
   drivers/i2c/i2c-dev.c:788:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
     788 |         ssize_t ret = sprintf(buf, "%llu\n", *nack_cnt);
         |         ^~~~~~~
   drivers/i2c/i2c-dev.c: At top level:
>> drivers/i2c/i2c-dev.c:793:9: error: no previous prototype for 'rec_succ_cnt_show' [-Werror=missing-prototypes]
     793 | ssize_t rec_succ_cnt_show(struct device* pdev,
         |         ^~~~~~~~~~~~~~~~~
   drivers/i2c/i2c-dev.c: In function 'rec_succ_cnt_show':
   drivers/i2c/i2c-dev.c:797:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
     797 |         ssize_t ret = sprintf(buf, "%llu\n", *rec_succ_cnt);
         |         ^~~~~~~
   drivers/i2c/i2c-dev.c: At top level:
>> drivers/i2c/i2c-dev.c:802:9: error: no previous prototype for 'rec_fail_cnt_show' [-Werror=missing-prototypes]
     802 | ssize_t rec_fail_cnt_show(struct device* pdev,
         |         ^~~~~~~~~~~~~~~~~
   drivers/i2c/i2c-dev.c: In function 'rec_fail_cnt_show':
   drivers/i2c/i2c-dev.c:806:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
     806 |         ssize_t ret = sprintf(buf, "%llu\n", *rec_fail_cnt);
         |         ^~~~~~~
   drivers/i2c/i2c-dev.c: At top level:
>> drivers/i2c/i2c-dev.c:811:9: error: no previous prototype for 'timeout_cnt_show' [-Werror=missing-prototypes]
     811 | ssize_t timeout_cnt_show(struct device* pdev,
         |         ^~~~~~~~~~~~~~~~
   drivers/i2c/i2c-dev.c: In function 'timeout_cnt_show':
   drivers/i2c/i2c-dev.c:815:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
     815 |         ssize_t ret = sprintf(buf, "%llu\n", *timeout_cnt);
         |         ^~~~~~~
   drivers/i2c/i2c-dev.c: At top level:
>> drivers/i2c/i2c-dev.c:820:9: error: no previous prototype for 'i2c_speed_show' [-Werror=missing-prototypes]
     820 | ssize_t i2c_speed_show(struct device* pdev,
         |         ^~~~~~~~~~~~~~
   drivers/i2c/i2c-dev.c: In function 'i2c_speed_show':
   drivers/i2c/i2c-dev.c:824:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
     824 |         ssize_t ret = sprintf(buf, "%llu\n", *i2c_speed);
         |         ^~~~~~~
   cc1: all warnings being treated as errors


vim +779 drivers/i2c/i2c-dev.c

   774	
   775	static ssize_t ber_cnt_show(struct device* pdev,
   776		struct device_attribute* attr, char* buf) {
   777		u64* ber_cnt = kobj_to_adapter(pdev)->stats->ber_cnt;
   778		if (ber_cnt == NULL) return 0;
 > 779		ssize_t ret = sprintf(buf, "%llu\n", *ber_cnt);
   780		return ret;
   781	}
   782	DEVICE_ATTR_RO(ber_cnt);
   783	
 > 784	ssize_t nack_cnt_show(struct device* pdev,
   785		struct device_attribute* attr, char* buf) {
   786		u64* nack_cnt = kobj_to_adapter(pdev)->stats->nack_cnt;
   787		if (nack_cnt == NULL) return 0;
   788		ssize_t ret = sprintf(buf, "%llu\n", *nack_cnt);
   789		return ret;
   790	}
   791	DEVICE_ATTR_RO(nack_cnt);
   792	
 > 793	ssize_t rec_succ_cnt_show(struct device* pdev,
   794		struct device_attribute* attr, char* buf) {
   795		u64* rec_succ_cnt = kobj_to_adapter(pdev)->stats->rec_succ_cnt;
   796		if (rec_succ_cnt == NULL) return 0;
   797		ssize_t ret = sprintf(buf, "%llu\n", *rec_succ_cnt);
   798		return ret;
   799	}
   800	DEVICE_ATTR_RO(rec_succ_cnt);
   801	
 > 802	ssize_t rec_fail_cnt_show(struct device* pdev,
   803		struct device_attribute* attr, char* buf) {
   804		u64* rec_fail_cnt = kobj_to_adapter(pdev)->stats->rec_fail_cnt;
   805		if (rec_fail_cnt == NULL) return 0;
   806		ssize_t ret = sprintf(buf, "%llu\n", *rec_fail_cnt);
   807		return ret;
   808	}
   809	DEVICE_ATTR_RO(rec_fail_cnt);
   810	
 > 811	ssize_t timeout_cnt_show(struct device* pdev,
   812		struct device_attribute* attr, char* buf) {
   813		u64* timeout_cnt = kobj_to_adapter(pdev)->stats->timeout_cnt;
   814		if (timeout_cnt == NULL) return 0;
   815		ssize_t ret = sprintf(buf, "%llu\n", *timeout_cnt);
   816		return ret;
   817	}
   818	DEVICE_ATTR_RO(timeout_cnt);
   819	
 > 820	ssize_t i2c_speed_show(struct device* pdev,
   821		struct device_attribute* attr, char* buf) {
   822		u64* i2c_speed = kobj_to_adapter(pdev)->stats->i2c_speed;
   823		if (i2c_speed == NULL) return 0;
   824		ssize_t ret = sprintf(buf, "%llu\n", *i2c_speed);
   825		return ret;
   826	}
   827	DEVICE_ATTR_RO(i2c_speed);
   828	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 22999 bytes --]

  parent reply	other threads:[~2021-11-11  9:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-09 22:53 [RFC Patch Resend 0/2] I2C statistics as sysfs attributes Sui Chen
2021-11-09 22:53 ` Sui Chen
2021-11-09 22:53 ` [RFC Patch Resend 1/2] i2c debug counters " Sui Chen
2021-11-09 23:13   ` Joe Perches
2021-11-11  9:39   ` kernel test robot
2021-11-11  9:39   ` kernel test robot [this message]
2021-11-09 22:53 ` [RFC Patch Resend 2/2] add npcm7xx " Sui Chen

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=202111111727.UxBDNeeD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.