Messages in this thread | | | Date | Tue, 26 Oct 2021 03:24:39 +0800 | From | kernel test robot <> | Subject | [chenxing:msc313_mainlining 53/62] drivers/rtc/rtc-msc313.c:54:19: error: implicit declaration of function 'readw' |
| |
tree: git://github.com/linux-chenxing/linux.git msc313_mainlining head: 00ca14821cbd3f21593b24fb75d0c1a1a4ad9a26 commit: fab8dc2356bfc1a76d65a839a3b3fb9173b497a8 [53/62] rtc: Add support for the MSTAR MSC313 RTC config: sparc-randconfig-c004-20211025 (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/fab8dc2356bfc1a76d65a839a3b3fb9173b497a8 git remote add chenxing git://github.com/linux-chenxing/linux.git git fetch --no-tags chenxing msc313_mainlining git checkout fab8dc2356bfc1a76d65a839a3b3fb9173b497a8 # 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 <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/rtc/rtc-msc313.c: In function 'msc313_rtc_read_alarm': >> drivers/rtc/rtc-msc313.c:54:19: error: implicit declaration of function 'readw' [-Werror=implicit-function-declaration] 54 | 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:75:9: error: implicit declaration of function 'writew' [-Werror=implicit-function-declaration] 75 | writew(reg, priv->rtc_base + REG_RTC_CTRL); | ^~~~~~ cc1: some warnings being treated as errors
vim +/readw +54 drivers/rtc/rtc-msc313.c
48 49 static int msc313_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) 50 { 51 struct msc313_rtc *priv = dev_get_drvdata(dev); 52 unsigned long seconds; 53 > 54 seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L) 55 | (readw(priv->rtc_base + REG_RTC_MATCH_VAL_H) << 16); 56 57 rtc_time64_to_tm(seconds, &alarm->time); 58 59 if (!(readw(priv->rtc_base + REG_RTC_CTRL) & INT_MASK_BIT)) 60 alarm->enabled = 1; 61 62 return 0; 63 } 64 65 static int msc313_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) 66 { 67 struct msc313_rtc *priv = dev_get_drvdata(dev); 68 u16 reg; 69 70 reg = readw(priv->rtc_base + REG_RTC_CTRL); 71 if (enabled) 72 reg &= ~INT_MASK_BIT; 73 else 74 reg |= INT_MASK_BIT; > 75 writew(reg, priv->rtc_base + REG_RTC_CTRL); 76 return 0; 77 } 78
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |