[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201512010119.fW408Kb6%fengguang.wu@intel.com>
Date: Tue, 1 Dec 2015 01:23:29 +0800
From: kbuild test robot <lkp@...el.com>
To: Andrey Ryabinin <aryabinin@...tuozzo.com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
Andrey Ryabinin <aryabinin@...tuozzo.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Peter Zijlstra <peterz@...radead.org>,
Sasha Levin <sasha.levin@...cle.com>,
Randy Dunlap <rdunlap@...radead.org>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Jonathan Corbet <corbet@....net>,
Michal Marek <mmarek@...e.cz>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>,
Yury Gribov <y.gribov@...sung.com>,
Dmitry Vyukov <dvyukov@...gle.com>,
Konstantin Khlebnikov <koct9i@...il.com>,
Kostya Serebryany <kcc@...gle.com>, x86@...nel.org,
linux-doc@...r.kernel.org, linux-kbuild@...r.kernel.org
Subject: Re: [PATCH v3 2/2] UBSAN: run-time undefined behavior sanity checker
Hi Andrey,
[auto build test ERROR on: v4.4-rc3]
[cannot apply to: tip/x86/core kbuild/for-next next-20151127]
url: https://github.com/0day-ci/linux/commits/Andrey-Ryabinin/kernel-printk-specify-alignment-for-struct-printk_log/20151201-000229
config: i386-allyesconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
net/mac80211/debugfs.c: In function 'hwflags_read':
>> net/mac80211/debugfs.c:150:240: error: call to '__compiletime_assert_150' declared with attribute error: BUILD_BUG_ON failed: hw_flag_names[NUM_IEEE80211_HW_FLAGS] != (void *)0x1
vim +/__compiletime_assert_150 +150 net/mac80211/debugfs.c
279daf64 Ben Greear 2011-03-23 134 static ssize_t hwflags_read(struct file *file, char __user *user_buf,
279daf64 Ben Greear 2011-03-23 135 size_t count, loff_t *ppos)
279daf64 Ben Greear 2011-03-23 136 {
279daf64 Ben Greear 2011-03-23 137 struct ieee80211_local *local = file->private_data;
30686bf7 Johannes Berg 2015-06-02 138 size_t bufsz = 30 * NUM_IEEE80211_HW_FLAGS;
30686bf7 Johannes Berg 2015-06-02 139 char *buf = kzalloc(bufsz, GFP_KERNEL);
30686bf7 Johannes Berg 2015-06-02 140 char *pos = buf, *end = buf + bufsz - 1;
279daf64 Ben Greear 2011-03-23 141 ssize_t rv;
30686bf7 Johannes Berg 2015-06-02 142 int i;
279daf64 Ben Greear 2011-03-23 143
d15b8459 Joe Perches 2011-08-29 144 if (!buf)
30686bf7 Johannes Berg 2015-06-02 145 return -ENOMEM;
30686bf7 Johannes Berg 2015-06-02 146
30686bf7 Johannes Berg 2015-06-02 147 /* fail compilation if somebody adds or removes
30686bf7 Johannes Berg 2015-06-02 148 * a flag without updating the name array above
30686bf7 Johannes Berg 2015-06-02 149 */
30686bf7 Johannes Berg 2015-06-02 @150 BUILD_BUG_ON(hw_flag_names[NUM_IEEE80211_HW_FLAGS] != (void *)0x1);
30686bf7 Johannes Berg 2015-06-02 151
30686bf7 Johannes Berg 2015-06-02 152 for (i = 0; i < NUM_IEEE80211_HW_FLAGS; i++) {
30686bf7 Johannes Berg 2015-06-02 153 if (test_bit(i, local->hw.flags))
4633dfc3 Mohammed Shafi Shajakhan 2015-10-08 154 pos += scnprintf(pos, end - pos, "%s\n",
30686bf7 Johannes Berg 2015-06-02 155 hw_flag_names[i]);
30686bf7 Johannes Berg 2015-06-02 156 }
279daf64 Ben Greear 2011-03-23 157
279daf64 Ben Greear 2011-03-23 158 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf));
:::::: The code at line 150 was first introduced by commit
:::::: 30686bf7f5b3c30831761e188a6e3cb33580fa48 mac80211: convert HW flags to unsigned long bitmap
:::::: TO: Johannes Berg <johannes.berg@...el.com>
:::::: CC: Johannes Berg <johannes.berg@...el.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/octet-stream" (51986 bytes)
Powered by blists - more mailing lists