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-x012-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: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; ^~~~~~~~~~~~~~ In file included from arch/x86/include/asm/current.h:4:0, from include/linux/sched.h:11, from include/linux/uaccess.h:4, from drivers//i2c/i2c-core-base.c:33: >> include/linux/compiler.h:163:17: warning: 'attach_adapter' is deprecated [-Wdeprecated-declarations] static struct ftrace_branch_data \ ^ include/linux/compiler.h:158:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ >> drivers//i2c/i2c-core-base.c:1978:2: note: in expansion of macro 'if' 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; ^~~~~~~~~~~~~~ -- 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: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; ^~~~~~~~~~~~~~ In file included from arch/x86/include/asm/current.h:4:0, from include/linux/sched.h:11, from include/linux/uaccess.h:4, from drivers/i2c/i2c-core-base.c:33: >> include/linux/compiler.h:163:17: warning: 'attach_adapter' is deprecated [-Wdeprecated-declarations] static struct ftrace_branch_data \ ^ include/linux/compiler.h:158:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ drivers/i2c/i2c-core-base.c:1978:2: note: in expansion of macro 'if' 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 +163 include/linux/compiler.h d45ae1f7 Steven Rostedt (VMware 2017-01-17 147) # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) 1f0d69a9 Steven Rostedt 2008-11-12 148 # endif 1f0d69a9 Steven Rostedt 2008-11-12 149 # ifndef unlikely d45ae1f7 Steven Rostedt (VMware 2017-01-17 150) # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) 1f0d69a9 Steven Rostedt 2008-11-12 151 # endif 2bcd521a Steven Rostedt 2008-11-21 152 2bcd521a Steven Rostedt 2008-11-21 153 #ifdef CONFIG_PROFILE_ALL_BRANCHES 2bcd521a Steven Rostedt 2008-11-21 154 /* 2bcd521a Steven Rostedt 2008-11-21 155 * "Define 'is'", Bill Clinton 2bcd521a Steven Rostedt 2008-11-21 156 * "Define 'if'", Steven Rostedt 2bcd521a Steven Rostedt 2008-11-21 157 */ ab3c9c68 Linus Torvalds 2009-04-07 158 #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ab3c9c68 Linus Torvalds 2009-04-07 159 #define __trace_if(cond) \ b33c8ff4 Arnd Bergmann 2016-02-12 160 if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ 2bcd521a Steven Rostedt 2008-11-21 161 ({ \ 2bcd521a Steven Rostedt 2008-11-21 162 int ______r; \ 2bcd521a Steven Rostedt 2008-11-21 @163 static struct ftrace_branch_data \ 2bcd521a Steven Rostedt 2008-11-21 164 __attribute__((__aligned__(4))) \ 2bcd521a Steven Rostedt 2008-11-21 165 __attribute__((section("_ftrace_branch"))) \ 2bcd521a Steven Rostedt 2008-11-21 166 ______f = { \ 2bcd521a Steven Rostedt 2008-11-21 167 .func = __func__, \ 2bcd521a Steven Rostedt 2008-11-21 168 .file = __FILE__, \ 2bcd521a Steven Rostedt 2008-11-21 169 .line = __LINE__, \ 2bcd521a Steven Rostedt 2008-11-21 170 }; \ 2bcd521a Steven Rostedt 2008-11-21 171 ______r = !!(cond); \ :::::: The code at line 163 was first introduced by commit :::::: 2bcd521a684cc94befbe2ce7d5b613c841b0d304 trace: profile all if conditionals :::::: TO: Steven Rostedt <srostedt@xxxxxxxxxx> :::::: CC: Ingo Molnar <mingo@xxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip