From: kbuild test robot <fengguang.wu@intel.com>
To: Wolfram Sang <wsa-dev@sang-engineering.com>
Cc: kbuild-all@01.org, linux-i2c@vger.kernel.org
Subject: [wsa:i2c/core-refactor 2/8] drivers//i2c/i2c-core-base.c:1978:2: warning: 'attach_adapter' is deprecated
Date: Wed, 24 May 2017 22:44:26 +0800 [thread overview]
Message-ID: <201705242207.MDAL6Z5E%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4197 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/core-refactor
head: 4b14c21a1ad171ce9af12e6e3996b52837932d3a
commit: b922c0825dbb96b2a12e64a7768ae452c7bb79a6 [2/8] i2c: WIP refactor core
config: x86_64-randconfig-x014-201721 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout b922c0825dbb96b2a12e64a7768ae452c7bb79a6
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers//i2c/i2c-core-base.c: In function 'i2c_do_add_adapter':
>> drivers//i2c/i2c-core-base.c:1978:2: warning: 'attach_adapter' is deprecated [-Wdeprecated-declarations]
if (driver->attach_adapter) {
^~
In file included from drivers//i2c/i2c-core-base.c:42:0:
include/linux/i2c.h:181:8: note: declared here
int (*attach_adapter)(struct i2c_adapter *) __deprecated;
^~~~~~~~~~~~~~
drivers//i2c/i2c-core-base.c:1984:3: warning: 'attach_adapter' is deprecated [-Wdeprecated-declarations]
driver->attach_adapter(adap);
^~~~~~
In file included from drivers//i2c/i2c-core-base.c:42:0:
include/linux/i2c.h:181:8: note: declared here
int (*attach_adapter)(struct i2c_adapter *) __deprecated;
^~~~~~~~~~~~~~
vim +/attach_adapter +1978 drivers//i2c/i2c-core-base.c
298d4de1e drivers/i2c/i2c-core.c Lee Jones 2016-11-07 1962 return match;
298d4de1e drivers/i2c/i2c-core.c Lee Jones 2016-11-07 1963
298d4de1e drivers/i2c/i2c-core.c Lee Jones 2016-11-07 1964 return i2c_of_match_device_sysfs(matches, client);
298d4de1e drivers/i2c/i2c-core.c Lee Jones 2016-11-07 1965 }
298d4de1e drivers/i2c/i2c-core.c Lee Jones 2016-11-07 1966 EXPORT_SYMBOL_GPL(i2c_of_match_device);
687b81d08 drivers/i2c/i2c-core.c Wolfram Sang 2013-07-11 1967 #else
687b81d08 drivers/i2c/i2c-core.c Wolfram Sang 2013-07-11 1968 static void of_i2c_register_devices(struct i2c_adapter *adap) { }
687b81d08 drivers/i2c/i2c-core.c Wolfram Sang 2013-07-11 1969 #endif /* CONFIG_OF */
687b81d08 drivers/i2c/i2c-core.c Wolfram Sang 2013-07-11 1970
69b0089a6 drivers/i2c/i2c-core.c Jean Delvare 2009-12-06 1971 static int i2c_do_add_adapter(struct i2c_driver *driver,
69b0089a6 drivers/i2c/i2c-core.c Jean Delvare 2009-12-06 1972 struct i2c_adapter *adap)
026526f5a drivers/i2c/i2c-core.c Jean Delvare 2008-01-27 1973 {
4735c98f8 drivers/i2c/i2c-core.c Jean Delvare 2008-07-14 1974 /* Detect supported devices on that bus, and instantiate them */
4735c98f8 drivers/i2c/i2c-core.c Jean Delvare 2008-07-14 1975 i2c_detect(adap, driver);
4735c98f8 drivers/i2c/i2c-core.c Jean Delvare 2008-07-14 1976
4735c98f8 drivers/i2c/i2c-core.c Jean Delvare 2008-07-14 1977 /* Let legacy drivers scan this bus for matching devices */
026526f5a drivers/i2c/i2c-core.c Jean Delvare 2008-01-27 @1978 if (driver->attach_adapter) {
a920ff41c drivers/i2c/i2c-core.c Jean Delvare 2011-04-17 1979 dev_warn(&adap->dev, "%s: attach_adapter method is deprecated\n",
a920ff41c drivers/i2c/i2c-core.c Jean Delvare 2011-04-17 1980 driver->driver.name);
b93d3d373 drivers/i2c/i2c-core.c Andy Shevchenko 2016-08-25 1981 dev_warn(&adap->dev,
b93d3d373 drivers/i2c/i2c-core.c Andy Shevchenko 2016-08-25 1982 "Please use another way to instantiate your i2c_client\n");
026526f5a drivers/i2c/i2c-core.c Jean Delvare 2008-01-27 1983 /* We ignore the return code; if it fails, too bad */
026526f5a drivers/i2c/i2c-core.c Jean Delvare 2008-01-27 1984 driver->attach_adapter(adap);
026526f5a drivers/i2c/i2c-core.c Jean Delvare 2008-01-27 1985 }
026526f5a drivers/i2c/i2c-core.c Jean Delvare 2008-01-27 1986 return 0;
:::::: The code at line 1978 was first introduced by commit
:::::: 026526f5afcd421dce110f53e4c4e2b9e78753c2 i2c: Drop redundant i2c_driver.list
:::::: TO: Jean Delvare <khali@linux-fr.org>
:::::: CC: Jean Delvare <khali@hyperion.delvare>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30035 bytes --]
reply other threads:[~2017-05-24 14:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201705242207.MDAL6Z5E%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-i2c@vger.kernel.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).