tree: git://github.com/linux-chenxing/linux.git rperier-rtc head: c3937f8420a5b44e0a7779c71519bb957a978ad5 commit: 2a634e5f7844b41d99f96989a044b2b183b42ecc [5/9] rtc: Add support for the MSTAR MSC313 RTC config: sparc-allyesconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 11.2.0 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 # https://github.com/linux-chenxing/linux/commit/2a634e5f7844b41d99f96989a044b2b183b42ecc git remote add linux-chenxing git://github.com/linux-chenxing/linux.git git fetch --no-tags linux-chenxing rperier-rtc git checkout 2a634e5f7844b41d99f96989a044b2b183b42ecc # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sparc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/rtc/rtc-msc313.c: In function 'msc313_rtc_read_alarm': >> drivers/rtc/rtc-msc313.c:55:19: error: implicit declaration of function 'readw' [-Werror=implicit-function-declaration] 55 | seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L) | ^~~~~ drivers/rtc/rtc-msc313.c: In function 'msc313_rtc_alarm_irq_enable': >> drivers/rtc/rtc-msc313.c:76:9: error: implicit declaration of function 'writew' [-Werror=implicit-function-declaration] 76 | writew(reg, priv->rtc_base + REG_RTC_CTRL); | ^~~~~~ cc1: some warnings being treated as errors vim +/readw +55 drivers/rtc/rtc-msc313.c 49 50 static int msc313_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) 51 { 52 struct msc313_rtc *priv = dev_get_drvdata(dev); 53 unsigned long seconds; 54 > 55 seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L) 56 | (readw(priv->rtc_base + REG_RTC_MATCH_VAL_H) << 16); 57 58 rtc_time64_to_tm(seconds, &alarm->time); 59 60 if (!(readw(priv->rtc_base + REG_RTC_CTRL) & INT_MASK_BIT)) 61 alarm->enabled = 1; 62 63 return 0; 64 } 65 66 static int msc313_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) 67 { 68 struct msc313_rtc *priv = dev_get_drvdata(dev); 69 u16 reg; 70 71 reg = readw(priv->rtc_base + REG_RTC_CTRL); 72 if (enabled) 73 reg &= ~INT_MASK_BIT; 74 else 75 reg |= INT_MASK_BIT; > 76 writew(reg, priv->rtc_base + REG_RTC_CTRL); 77 return 0; 78 } 79 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org