public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jovin Basil <jovin555@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, jovin555@gmail.com,
	Wolfram Sang <wsa-dev@sang-engineering.com>,
	Andi Shyti <andi.shyti@kernel.org>,
	linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i2c: gpio: replace printk with dev_err in probe
Date: Sun, 22 Mar 2026 06:22:45 +0800	[thread overview]
Message-ID: <202603220644.6OGhQIXH-lkp@intel.com> (raw)
In-Reply-To: <20260320150144.432345-1-jovin555@gmail.com>

Hi Jovin,

kernel test robot noticed the following build errors:

[auto build test ERROR on andi-shyti/i2c/i2c-host]
[also build test ERROR on wsa/i2c/for-next linus/master v7.0-rc4 next-20260320]
[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/Jovin-Basil/i2c-gpio-replace-printk-with-dev_err-in-probe/20260322-012109
base:   https://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git i2c/i2c-host
patch link:    https://lore.kernel.org/r/20260320150144.432345-1-jovin555%40gmail.com
patch subject: [PATCH] i2c: gpio: replace printk with dev_err in probe
config: csky-randconfig-r073-20260322 (https://download.01.org/0day-ci/archive/20260322/202603220644.6OGhQIXH-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 15.2.0
smatch: v0.5.0-9004-gb810ac53
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260322/202603220644.6OGhQIXH-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603220644.6OGhQIXH-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/acpi.h:15,
                    from include/linux/i2c.h:13,
                    from include/linux/i2c-algo-bit.h:13,
                    from drivers/i2c/busses/i2c-gpio.c:11:
   drivers/i2c/busses/i2c-gpio.c: In function 'i2c_gpio_init':
>> drivers/i2c/busses/i2c-gpio.c:493:26: error: 'pdev' undeclared (first use in this function); did you mean 'cdev'?
     493 |                 dev_err(&pdev->dev, "i2c-gpio: probe failed: %d\n",ret);
         |                          ^~~~
   include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                         ^~~
   drivers/i2c/busses/i2c-gpio.c:493:17: note: in expansion of macro 'dev_err'
     493 |                 dev_err(&pdev->dev, "i2c-gpio: probe failed: %d\n",ret);
         |                 ^~~~~~~
   drivers/i2c/busses/i2c-gpio.c:493:26: note: each undeclared identifier is reported only once for each function it appears in
     493 |                 dev_err(&pdev->dev, "i2c-gpio: probe failed: %d\n",ret);
         |                          ^~~~
   include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                         ^~~
   drivers/i2c/busses/i2c-gpio.c:493:17: note: in expansion of macro 'dev_err'
     493 |                 dev_err(&pdev->dev, "i2c-gpio: probe failed: %d\n",ret);
         |                 ^~~~~~~


vim +493 drivers/i2c/busses/i2c-gpio.c

   486	
   487	static int __init i2c_gpio_init(void)
   488	{
   489		int ret;
   490	
   491		ret = platform_driver_register(&i2c_gpio_driver);
   492		if (ret)
 > 493			dev_err(&pdev->dev, "i2c-gpio: probe failed: %d\n",ret);
   494	
   495		return ret;
   496	}
   497	subsys_initcall(i2c_gpio_init);
   498	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2026-03-21 22:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-20 12:26 [PATCH] i2c: gpio: replace printk with dev_err in probe Jovin Basil
2026-03-20 15:01 ` Jovin Basil
2026-03-20 21:16   ` Wolfram Sang
2026-03-21 22:22   ` kernel test robot [this message]
2026-03-21 23:05   ` kernel test robot

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=202603220644.6OGhQIXH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andi.shyti@kernel.org \
    --cc=jovin555@gmail.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --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