mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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>
Subject: [linux-chenxing:msc313_mainlining 39/40] drivers/rtc/rtc-msc313.c:55:19: error: implicit declaration of function 'readw'
Date: Fri, 10 Sep 2021 14:05:44 +0800	[thread overview]
Message-ID: <202109101428.n2jg5afC-lkp@intel.com> (raw)

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

tree:   git://github.com/linux-chenxing/linux.git msc313_mainlining
head:   1eb5c788b7e316b727fe67f315366de000c57e97
commit: a7db737e79cff20b633ae2245416048978e55e19 [39/40] rtc: Add support for the MSTAR MSC313 RTC
config: sparc64-randconfig-r035-20210910 (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/a7db737e79cff20b633ae2245416048978e55e19
        git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
        git fetch --no-tags linux-chenxing msc313_mainlining
        git checkout a7db737e79cff20b633ae2245416048978e55e19
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sparc64 

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: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

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

                 reply	other threads:[~2021-09-10  6:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202109101428.n2jg5afC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel@0x0f.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=romain.perier@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®