All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chenxing:msc313_mainlining 53/62] drivers/rtc/rtc-msc313.c:54:19: error: implicit declaration of function 'readw'
Date: Tue, 26 Oct 2021 03:24:39 +0800	[thread overview]
Message-ID: <202110260330.7jcIbkLP-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2867 bytes --]

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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35853 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Romain Perier <romain.perier@gmail.com>,
	Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Subject: [chenxing:msc313_mainlining 53/62] drivers/rtc/rtc-msc313.c:54:19: error: implicit declaration of function 'readw'
Date: Tue, 26 Oct 2021 03:24:39 +0800	[thread overview]
Message-ID: <202110260330.7jcIbkLP-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2797 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35853 bytes --]

             reply	other threads:[~2021-10-25 19:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-25 19:24 kernel test robot [this message]
2021-10-25 19:24 ` [chenxing:msc313_mainlining 53/62] drivers/rtc/rtc-msc313.c:54:19: error: implicit declaration of function 'readw' kernel test robot

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=202110260330.7jcIbkLP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.