lkml.org 
[lkml]   [2021]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/rtc/rtc-pcf8523.c:35:9: warning: 'REG_OFFSET' macro redefined
Hi Thomas,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2a1d7946fa53cea2083e5981ff55a8176ab2be6b
commit: 7fd70c65faacd39628ba5f670be6490010c8132f ARM: irqstat: Get rid of duplicated declaration
date: 5 months ago
config: arm-randconfig-r005-20210425 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6fca189532511da1b48e8c0d9aad8ff2edca382d)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7fd70c65faacd39628ba5f670be6490010c8132f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7fd70c65faacd39628ba5f670be6490010c8132f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm

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

All warnings (new ones prefixed by >>):

>> drivers/rtc/rtc-pcf8523.c:35:9: warning: 'REG_OFFSET' macro redefined [-Wmacro-redefined]
#define REG_OFFSET 0x0e
^
arch/arm/mach-ixp4xx/include/mach/platform.h:23:9: note: previous definition is here
#define REG_OFFSET 0
^
1 warning generated.


vim +/REG_OFFSET +35 drivers/rtc/rtc-pcf8523.c

f803f0d079ded4 Thierry Reding 2012-12-17 34
bc3bee02527252 Russell King 2017-09-29 @35 #define REG_OFFSET 0x0e
bc3bee02527252 Russell King 2017-09-29 36 #define REG_OFFSET_MODE BIT(7)
bc3bee02527252 Russell King 2017-09-29 37

:::::: The code at line 35 was first introduced by commit
:::::: bc3bee0252725240ffa62180d387cc245179c549 rtc: pcf8523: add support for trimming the RTC oscillator

:::::: TO: Russell King <rmk+kernel@armlinux.org.uk>
:::::: CC: Alexandre Belloni <alexandre.belloni@free-electrons.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-04-25 14:32    [W:0.105 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site