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@xxxxxxxxxxxx> :::::: 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:
.config.gz
Description: application/gzip