Re: [PATCH 11/11] Staging: rtl8192e: Implement BIT macro for bit shift ops

kernel test robot
2024-03-11T06:39:37Z

Hi Tree,

kernel test robot noticed the following build warnings:

[auto build test WARNING on staging/staging-testing]

url: https://github.com/intel-lab-lkp/linux/commits/Tree-Davies/Staging-rtl8192e-Rename-variable-ReturnPoint/20240311-075949
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20240310235552.4217-12-tdavies%40darkphysics.net
patch subject: [PATCH 11/11] Staging: rtl8192e: Implement BIT macro for bit shift ops
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20240311/202403111451.mwNy2vqG-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240311/202403111451.mwNy2vqG-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403111451.mwNy2vqG-lkp@intel.com/

All warnings (new ones prefixed by >>):

In file included from drivers/staging/rtl8192e/rtllib_module.c:35:
>> drivers/staging/rtl8192e/rtllib.h:422: warning: "WLAN_CAPABILITY_ESS" redefined
422 | #define WLAN_CAPABILITY_ESS BIT(0)
|
In file included from include/net/cfg80211.h:23,
from drivers/staging/rtl8192e/rtllib.h:40:
include/linux/ieee80211.h:3218: note: this is the location of the previous definition
3218 | #define WLAN_CAPABILITY_ESS (1<<0)
|
>> drivers/staging/rtl8192e/rtllib.h:423: warning: "WLAN_CAPABILITY_IBSS" redefined
423 | #define WLAN_CAPABILITY_IBSS BIT(1)
|
include/linux/ieee80211.h:3219: note: this is the location of the previous definition
3219 | #define WLAN_CAPABILITY_IBSS (1<<1)
|
>> drivers/staging/rtl8192e/rtllib.h:424: warning: "WLAN_CAPABILITY_PRIVACY" redefined
424 | #define WLAN_CAPABILITY_PRIVACY BIT(4)
|
include/linux/ieee80211.h:3231: note: this is the location of the previous definition
3231 | #define WLAN_CAPABILITY_PRIVACY (1<<4)
|
>> drivers/staging/rtl8192e/rtllib.h:425: warning: "WLAN_CAPABILITY_SHORT_PREAMBLE" redefined
425 | #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
|
include/linux/ieee80211.h:3232: note: this is the location of the previous definition
3232 | #define WLAN_CAPABILITY_SHORT_PREAMBLE (1<<5)
|
>> drivers/staging/rtl8192e/rtllib.h:426: warning: "WLAN_CAPABILITY_SHORT_SLOT_TIME" redefined
426 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
|
include/linux/ieee80211.h:3239: note: this is the location of the previous definition
3239 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME (1<<10)
|
--
In file included from drivers/staging/rtl8192e/rtllib_rx.c:36:
>> drivers/staging/rtl8192e/rtllib.h:422: warning: "WLAN_CAPABILITY_ESS" redefined
422 | #define WLAN_CAPABILITY_ESS BIT(0)
|
In file included from include/net/cfg80211.h:23,
from drivers/staging/rtl8192e/rtllib.h:40:
include/linux/ieee80211.h:3218: note: this is the location of the previous definition
3218 | #define WLAN_CAPABILITY_ESS (1<<0)
|
>> drivers/staging/rtl8192e/rtllib.h:423: warning: "WLAN_CAPABILITY_IBSS" redefined
423 | #define WLAN_CAPABILITY_IBSS BIT(1)
|
include/linux/ieee80211.h:3219: note: this is the location of the previous definition
3219 | #define WLAN_CAPABILITY_IBSS (1<<1)
|
>> drivers/staging/rtl8192e/rtllib.h:424: warning: "WLAN_CAPABILITY_PRIVACY" redefined
424 | #define WLAN_CAPABILITY_PRIVACY BIT(4)
|
include/linux/ieee80211.h:3231: note: this is the location of the previous definition
3231 | #define WLAN_CAPABILITY_PRIVACY (1<<4)
|
>> drivers/staging/rtl8192e/rtllib.h:425: warning: "WLAN_CAPABILITY_SHORT_PREAMBLE" redefined
425 | #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
|
include/linux/ieee80211.h:3232: note: this is the location of the previous definition
3232 | #define WLAN_CAPABILITY_SHORT_PREAMBLE (1<<5)
|
>> drivers/staging/rtl8192e/rtllib.h:426: warning: "WLAN_CAPABILITY_SHORT_SLOT_TIME" redefined
426 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
|
include/linux/ieee80211.h:3239: note: this is the location of the previous definition
3239 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME (1<<10)
|
during RTL pass: mach
drivers/staging/rtl8192e/rtllib_rx.c: In function 'rtllib_rx_decrypt':
drivers/staging/rtl8192e/rtllib_rx.c:1141:1: internal compiler error: in arc_ifcvt, at config/arc/arc.cc:9703
1141 | }
| ^
0x5b78c1 arc_ifcvt
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/config/arc/arc.cc:9703
0xe431b4 arc_reorg
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/config/arc/arc.cc:8552
0xaed299 execute
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/reorg.cc:3927
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
--
In file included from drivers/staging/rtl8192e/rtl819x_BAProc.c:10:
>> drivers/staging/rtl8192e/rtllib.h:422: warning: "WLAN_CAPABILITY_ESS" redefined
422 | #define WLAN_CAPABILITY_ESS BIT(0)
|
In file included from include/net/cfg80211.h:23,
from drivers/staging/rtl8192e/rtllib.h:40:
include/linux/ieee80211.h:3218: note: this is the location of the previous definition
3218 | #define WLAN_CAPABILITY_ESS (1<<0)
|
>> drivers/staging/rtl8192e/rtllib.h:423: warning: "WLAN_CAPABILITY_IBSS" redefined
423 | #define WLAN_CAPABILITY_IBSS BIT(1)
|
include/linux/ieee80211.h:3219: note: this is the location of the previous definition
3219 | #define WLAN_CAPABILITY_IBSS (1<<1)
|
>> drivers/staging/rtl8192e/rtllib.h:424: warning: "WLAN_CAPABILITY_PRIVACY" redefined
424 | #define WLAN_CAPABILITY_PRIVACY BIT(4)
|
include/linux/ieee80211.h:3231: note: this is the location of the previous definition
3231 | #define WLAN_CAPABILITY_PRIVACY (1<<4)
|
>> drivers/staging/rtl8192e/rtllib.h:425: warning: "WLAN_CAPABILITY_SHORT_PREAMBLE" redefined
425 | #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
|
include/linux/ieee80211.h:3232: note: this is the location of the previous definition
3232 | #define WLAN_CAPABILITY_SHORT_PREAMBLE (1<<5)
|
>> drivers/staging/rtl8192e/rtllib.h:426: warning: "WLAN_CAPABILITY_SHORT_SLOT_TIME" redefined
426 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
|
include/linux/ieee80211.h:3239: note: this is the location of the previous definition
3239 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME (1<<10)
|
during RTL pass: mach
drivers/staging/rtl8192e/rtl819x_BAProc.c: In function 'rtllib_send_DELBA':
drivers/staging/rtl8192e/rtl819x_BAProc.c:212:1: internal compiler error: in arc_ifcvt, at config/arc/arc.cc:9703
212 | }
| ^
0x5b78c1 arc_ifcvt
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/config/arc/arc.cc:9703
0xe431b4 arc_reorg
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/config/arc/arc.cc:8552
0xaed299 execute
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/reorg.cc:3927
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
--
In file included from drivers/staging/rtl8192e/rtllib_crypt_ccmp.c:17:
>> drivers/staging/rtl8192e/rtllib.h:422: warning: "WLAN_CAPABILITY_ESS" redefined
422 | #define WLAN_CAPABILITY_ESS BIT(0)
|
In file included from include/net/cfg80211.h:23,
from drivers/staging/rtl8192e/rtllib.h:40:
include/linux/ieee80211.h:3218: note: this is the location of the previous definition
3218 | #define WLAN_CAPABILITY_ESS (1<<0)
|
>> drivers/staging/rtl8192e/rtllib.h:423: warning: "WLAN_CAPABILITY_IBSS" redefined
423 | #define WLAN_CAPABILITY_IBSS BIT(1)
|
include/linux/ieee80211.h:3219: note: this is the location of the previous definition
3219 | #define WLAN_CAPABILITY_IBSS (1<<1)
|
>> drivers/staging/rtl8192e/rtllib.h:424: warning: "WLAN_CAPABILITY_PRIVACY" redefined
424 | #define WLAN_CAPABILITY_PRIVACY BIT(4)
|
include/linux/ieee80211.h:3231: note: this is the location of the previous definition
3231 | #define WLAN_CAPABILITY_PRIVACY (1<<4)
|
>> drivers/staging/rtl8192e/rtllib.h:425: warning: "WLAN_CAPABILITY_SHORT_PREAMBLE" redefined
425 | #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
|
include/linux/ieee80211.h:3232: note: this is the location of the previous definition
3232 | #define WLAN_CAPABILITY_SHORT_PREAMBLE (1<<5)
|
>> drivers/staging/rtl8192e/rtllib.h:426: warning: "WLAN_CAPABILITY_SHORT_SLOT_TIME" redefined
426 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
|
include/linux/ieee80211.h:3239: note: this is the location of the previous definition
3239 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME (1<<10)
|
during RTL pass: mach
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c: In function 'rtllib_ccmp_decrypt':
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c:310:1: internal compiler error: in arc_ifcvt, at config/arc/arc.cc:9703
310 | }
| ^
0x5b78c1 arc_ifcvt
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/config/arc/arc.cc:9703
0xe431b4 arc_reorg
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/config/arc/arc.cc:8552
0xaed299 execute
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/reorg.cc:3927
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
--
In file included from drivers/staging/rtl8192e/rtllib_crypt_tkip.c:23:
>> drivers/staging/rtl8192e/rtllib.h:422: warning: "WLAN_CAPABILITY_ESS" redefined
422 | #define WLAN_CAPABILITY_ESS BIT(0)
|
In file included from include/net/cfg80211.h:23,
from drivers/staging/rtl8192e/rtllib.h:40:
include/linux/ieee80211.h:3218: note: this is the location of the previous definition
3218 | #define WLAN_CAPABILITY_ESS (1<<0)
|
>> drivers/staging/rtl8192e/rtllib.h:423: warning: "WLAN_CAPABILITY_IBSS" redefined
423 | #define WLAN_CAPABILITY_IBSS BIT(1)
|
include/linux/ieee80211.h:3219: note: this is the location of the previous definition
3219 | #define WLAN_CAPABILITY_IBSS (1<<1)
|
>> drivers/staging/rtl8192e/rtllib.h:424: warning: "WLAN_CAPABILITY_PRIVACY" redefined
424 | #define WLAN_CAPABILITY_PRIVACY BIT(4)
|
include/linux/ieee80211.h:3231: note: this is the location of the previous definition
3231 | #define WLAN_CAPABILITY_PRIVACY (1<<4)
|
>> drivers/staging/rtl8192e/rtllib.h:425: warning: "WLAN_CAPABILITY_SHORT_PREAMBLE" redefined
425 | #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
|
include/linux/ieee80211.h:3232: note: this is the location of the previous definition
3232 | #define WLAN_CAPABILITY_SHORT_PREAMBLE (1<<5)
|
>> drivers/staging/rtl8192e/rtllib.h:426: warning: "WLAN_CAPABILITY_SHORT_SLOT_TIME" redefined
426 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
|
include/linux/ieee80211.h:3239: note: this is the location of the previous definition
3239 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME (1<<10)
|
during RTL pass: mach
drivers/staging/rtl8192e/rtllib_crypt_tkip.c: In function 'rtllib_tkip_decrypt':
drivers/staging/rtl8192e/rtllib_crypt_tkip.c:437:1: internal compiler error: in arc_ifcvt, at config/arc/arc.cc:9703
437 | }
| ^
0x5b78c1 arc_ifcvt
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/config/arc/arc.cc:9703
0xe431b4 arc_reorg
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/config/arc/arc.cc:8552
0xaed299 execute
/tmp/build-crosstools-gcc-13.2.0-binutils-2.41/gcc/gcc-13.2.0/gcc/reorg.cc:3927
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
--
In file included from drivers/staging/rtl8192e/rtl8192e/rtl_core.h:35,
from drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:10:
>> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:422: warning: "WLAN_CAPABILITY_ESS" redefined
422 | #define WLAN_CAPABILITY_ESS BIT(0)
|
In file included from include/net/cfg80211.h:23,
from drivers/staging/rtl8192e/rtl8192e/../rtllib.h:40:
include/linux/ieee80211.h:3218: note: this is the location of the previous definition
3218 | #define WLAN_CAPABILITY_ESS (1<<0)
|
>> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:423: warning: "WLAN_CAPABILITY_IBSS" redefined
423 | #define WLAN_CAPABILITY_IBSS BIT(1)
|
include/linux/ieee80211.h:3219: note: this is the location of the previous definition
3219 | #define WLAN_CAPABILITY_IBSS (1<<1)
|
>> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:424: warning: "WLAN_CAPABILITY_PRIVACY" redefined
424 | #define WLAN_CAPABILITY_PRIVACY BIT(4)
|
include/linux/ieee80211.h:3231: note: this is the location of the previous definition
3231 | #define WLAN_CAPABILITY_PRIVACY (1<<4)
|
>> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:425: warning: "WLAN_CAPABILITY_SHORT_PREAMBLE" redefined
425 | #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
|
include/linux/ieee80211.h:3232: note: this is the location of the previous definition
3232 | #define WLAN_CAPABILITY_SHORT_PREAMBLE (1<<5)
|
>> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:426: warning: "WLAN_CAPABILITY_SHORT_SLOT_TIME" redefined
426 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
|
include/linux/ieee80211.h:3239: note: this is the location of the previous definition
3239 | #define WLAN_CAPABILITY_SHORT_SLOT_TIME (1<<10)
|

vim +/WLAN_CAPABILITY_ESS +422 drivers/staging/rtl8192e/rtllib.h

421
> 422 #define WLAN_CAPABILITY_ESS BIT(0)
> 423 #define WLAN_CAPABILITY_IBSS BIT(1)
> 424 #define WLAN_CAPABILITY_PRIVACY BIT(4)
> 425 #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
> 426 #define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
427

--
0-DAY CI Kernel Test Service