Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yunus Bas <y.bas@phytec.de>
Cc: kbuild-all@lists.01.org, linux-hwmon@vger.kernel.org,
	Guenter Roeck <linux@roeck-us.net>,
	Andrej Picej <andrej.picej@norik.com>,
	Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Subject: [groeck-staging:watchdog-next 25/28] drivers/watchdog/da9063_wdt.c:177:15: error: implicit declaration of function 'i2c_smbus_write_byte_data'
Date: Mon, 29 Nov 2021 20:24:04 +0800	[thread overview]
Message-ID: <202111292050.cwhXdxtQ-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git watchdog-next
head:   293903b9dfe43520f01374dc1661be11d6838c49
commit: 5ea29919c29413c984f4ba3e04a6679d306e7a6e [25/28] watchdog: da9063: use atomic safe i2c transfer in reset handler
config: csky-randconfig-r032-20211128 (https://download.01.org/0day-ci/archive/20211129/202111292050.cwhXdxtQ-lkp@intel.com/config)
compiler: csky-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://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/commit/?id=5ea29919c29413c984f4ba3e04a6679d306e7a6e
        git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
        git fetch --no-tags groeck-staging watchdog-next
        git checkout 5ea29919c29413c984f4ba3e04a6679d306e7a6e
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash drivers/

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/watchdog/da9063_wdt.c: In function 'da9063_wdt_restart':
>> drivers/watchdog/da9063_wdt.c:177:15: error: implicit declaration of function 'i2c_smbus_write_byte_data' [-Werror=implicit-function-declaration]
     177 |         ret = i2c_smbus_write_byte_data(client, DA9063_REG_CONTROL_F,
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/i2c_smbus_write_byte_data +177 drivers/watchdog/da9063_wdt.c

   168	
   169	static int da9063_wdt_restart(struct watchdog_device *wdd, unsigned long action,
   170				      void *data)
   171	{
   172		struct da9063 *da9063 = watchdog_get_drvdata(wdd);
   173		struct i2c_client *client = to_i2c_client(da9063->dev);
   174		int ret;
   175	
   176		/* Don't use regmap because it is not atomic safe */
 > 177		ret = i2c_smbus_write_byte_data(client, DA9063_REG_CONTROL_F,
   178						DA9063_SHUTDOWN);
   179		if (ret < 0)
   180			dev_alert(da9063->dev, "Failed to shutdown (err = %d)\n",
   181				  ret);
   182	
   183		/* wait for reset to assert... */
   184		mdelay(500);
   185	
   186		return ret;
   187	}
   188	

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

             reply	other threads:[~2021-11-29 12:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-29 12:24 kernel test robot [this message]
2021-11-29 13:20 ` [groeck-staging:watchdog-next 25/28] drivers/watchdog/da9063_wdt.c:177:15: error: implicit declaration of function 'i2c_smbus_write_byte_data' Andrej Picej

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=202111292050.cwhXdxtQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Adam.Thomson.Opensource@diasemi.com \
    --cc=andrej.picej@norik.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=y.bas@phytec.de \
    /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