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 <[email protected]>
:::::: CC: Johannes Berg <[email protected]>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to