[ammarfaizi2-block:google/android/kernel/common/deprecated/android-4.4-p-release 9213/9922] drivers/platform/goldfish/goldfish_pipe_v2.c:1161:15: warning: right shift count >= width of type

From: kernel test robot
Date: Wed Mar 02 2022 - 12:25:36 EST


Hi Roman,

FYI, the error/warning still remains.

tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/deprecated/android-4.4-p-release
head: c159ade87311501e4e4b40eb2f35aa5607732957
commit: 7e3a6fc483350235bf3446492133d60c292d487c [9213/9922] goldfish: pipe: ANDROID: address must be written as __pa(x), not x
config: i386-randconfig-r005-20211118 (https://download.01.org/0day-ci/archive/20220303/202203030136.g7Nn5d2S-lkp@xxxxxxxxx/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/7e3a6fc483350235bf3446492133d60c292d487c
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/deprecated/android-4.4-p-release
git checkout 7e3a6fc483350235bf3446492133d60c292d487c
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/platform/goldfish/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

drivers/platform/goldfish/goldfish_pipe_v2.c: In function 'write_pa_addr':
>> drivers/platform/goldfish/goldfish_pipe_v2.c:1161:15: warning: right shift count >= width of type [-Wshift-count-overflow]
writel(paddr >> 32, porth);
^~
arch/x86/include/asm/bitops.h: Assembler messages:
arch/x86/include/asm/bitops.h:206: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'


vim +1161 drivers/platform/goldfish/goldfish_pipe_v2.c

1155
1156
1157 static void write_pa_addr(void *addr, void __iomem *portl, void __iomem *porth)
1158 {
1159 const unsigned long paddr = __pa(addr);
1160
> 1161 writel(paddr >> 32, porth);
1162 writel((u32)paddr, portl);
1163 }
1164

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx