From: kernel test robot <lkp@intel.com>
To: Johannes Berg <johannes.berg@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Gregory Greenman <gregory.greenman@intel.com>
Subject: [linux-next:master 11985/14193] drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1093:9: warning: 'CAUSE' macro redefined
Date: Wed, 25 May 2022 17:05:58 +0800 [thread overview]
Message-ID: <202205251645.gusu3spL-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8cb8311e95e3bb58bd84d6350365f14a718faa6d
commit: c1918196427b917d1fbf064b07538410807f8b03 [11985/14193] iwlwifi: pcie: simplify MSI-X cause mapping
config: mips-randconfig-r022-20220524 (https://download.01.org/0day-ci/archive/20220525/202205251645.gusu3spL-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d52a6e75b0c402c7f3b42a2b1b2873f151220947)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c1918196427b917d1fbf064b07538410807f8b03
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout c1918196427b917d1fbf064b07538410807f8b03
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/net/wireless/intel/iwlwifi/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1093:9: warning: 'CAUSE' macro redefined [-Wmacro-redefined]
#define CAUSE(reg, mask) \
^
arch/mips/include/uapi/asm/ptrace.h:18:9: note: previous definition is here
#define CAUSE 65
^
1 warning generated.
vim +/CAUSE +1093 drivers/net/wireless/intel/iwlwifi/pcie/trans.c
1092
> 1093 #define CAUSE(reg, mask) \
1094 { \
1095 .mask_reg = reg, \
1096 .bit = ilog2(mask), \
1097 .addr = ilog2(mask) + \
1098 ((reg) == CSR_MSIX_FH_INT_MASK_AD ? -16 : \
1099 (reg) == CSR_MSIX_HW_INT_MASK_AD ? 16 : \
1100 0xffff), /* causes overflow warning */ \
1101 }
1102
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-05-25 9:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202205251645.gusu3spL-lkp@intel.com \
--to=lkp@intel.com \
--cc=gregory.greenman@intel.com \
--cc=johannes.berg@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox