From: kbuild test robot <lkp@intel.com>
To: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>
Cc: kbuild-all@01.org, linux-mips@linux-mips.org,
Miodrag Dinic <miodrag.dinic@imgtec.com>,
Goran Ferenc <goran.ferenc@imgtec.com>,
Aleksandar Markovic <aleksandar.markovic@imgtec.com>,
Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Bo Hu <bohu@google.com>, "David S. Miller" <davem@davemloft.net>,
Douglas Leung <douglas.leung@imgtec.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
James Hogan <james.hogan@imgtec.com>,
Jin Qian <jinqian@google.com>,
linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Paul Burton <paul.burton@imgtec.com>,
Petar Jovanovic <petar.jovanovic@imgtec.com>,
Raghu Gandham <raghu.gandham@imgtec.com>
Subject: Re: [PATCH v3 2/8] MIPS: ranchu: Add Goldfish RTC driver
Date: Mon, 24 Jul 2017 07:50:39 +0800 [thread overview]
Message-ID: <201707240723.Hq0yRk3w%fengguang.wu@intel.com> (raw)
In-Reply-To: <1500656111-9520-3-git-send-email-aleksandar.markovic@rt-rk.com>
[-- Attachment #1: Type: text/plain, Size: 2448 bytes --]
Hi Miodrag,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.13-rc1 next-20170721]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Aleksandar-Markovic/MIPS-Add-virtual-Ranchu-board-as-a-generic-based-board/20170724-062318
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=blackfin
All warnings (new ones prefixed by >>):
drivers/rtc/rtc-goldfish.c: In function 'goldfish_rtc_set_alarm':
>> drivers/rtc/rtc-goldfish.c:86:21: warning: right shift count >= width of type [-Wshift-count-overflow]
writel((rtc_alarm >> 32), base + TIMER_ALARM_HIGH);
^~
drivers/rtc/rtc-goldfish.c: In function 'goldfish_rtc_set_time':
drivers/rtc/rtc-goldfish.c:167:15: warning: right shift count >= width of type [-Wshift-count-overflow]
writel((now >> 32), base + TIMER_TIME_HIGH);
^~
vim +86 drivers/rtc/rtc-goldfish.c
67
68 static int goldfish_rtc_set_alarm(struct device *dev,
69 struct rtc_wkalrm *alrm)
70 {
71 struct goldfish_rtc *rtcdrv;
72 unsigned long rtc_alarm;
73 u64 rtc_status_reg;
74 void __iomem *base;
75 int ret = 0;
76
77 rtcdrv = dev_get_drvdata(dev);
78 base = rtcdrv->base;
79
80 if (alrm->enabled) {
81 ret = rtc_tm_to_time(&(alrm->time), &rtc_alarm);
82 if (ret != 0)
83 return ret;
84
85 rtc_alarm *= NSEC_PER_SEC;
> 86 writel((rtc_alarm >> 32), base + TIMER_ALARM_HIGH);
87 writel(rtc_alarm, base + TIMER_ALARM_LOW);
88 } else {
89 /*
90 * if this function was called with enabled=0
91 * then it could mean that the application is
92 * trying to cancel an ongoing alarm
93 */
94 rtc_status_reg = readl(base + TIMER_ALARM_STATUS);
95 if (rtc_status_reg)
96 writel(1, base + TIMER_CLEAR_ALARM);
97 }
98
99 return ret;
100 }
101
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 45669 bytes --]
next prev parent reply other threads:[~2017-07-23 23:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 16:53 [PATCH v3 0/8] MIPS: Add virtual Ranchu board as a generic-based board Aleksandar Markovic
2017-07-21 16:53 ` [PATCH v3 1/8] Documentation: Add device tree binding for Goldfish RTC driver Aleksandar Markovic
2017-07-21 16:53 ` [PATCH v3 2/8] MIPS: ranchu: Add " Aleksandar Markovic
2017-07-23 23:50 ` kbuild test robot [this message]
2017-07-24 2:14 ` kbuild test robot
2017-08-10 20:34 ` Alexandre Belloni
2017-08-11 16:46 ` Miodrag Dinic
2017-08-14 12:45 ` Aleksandar Markovic
2017-08-14 13:13 ` Alexandre Belloni
2017-07-21 16:53 ` [PATCH v3 3/8] Documentation: Add device tree binding for Goldfish PIC driver Aleksandar Markovic
2017-07-21 16:53 ` [PATCH v3 4/8] MIPS: ranchu: Add " Aleksandar Markovic
2017-07-21 16:53 ` [PATCH v3 5/8] MIPS: ranchu: Add Ranchu as a new generic-based board Aleksandar Markovic
2017-07-21 16:53 ` [PATCH v3 6/8] Documentation: Add device tree binding for Goldfish FB driver Aleksandar Markovic
2017-07-21 16:53 ` [PATCH v3 7/8] video: goldfishfb: Add support for device tree bindings Aleksandar Markovic
2017-07-21 16:53 ` [PATCH v3 8/8] MIPS: Unselect ARCH_MIGHT_HAVE_PC_SERIO if MIPS_GENERIC Aleksandar Markovic
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=201707240723.Hq0yRk3w%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=a.zummo@towertech.it \
--cc=aleksandar.markovic@imgtec.com \
--cc=aleksandar.markovic@rt-rk.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=bohu@google.com \
--cc=davem@davemloft.net \
--cc=douglas.leung@imgtec.com \
--cc=goran.ferenc@imgtec.com \
--cc=gregkh@linuxfoundation.org \
--cc=james.hogan@imgtec.com \
--cc=jinqian@google.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux-rtc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=miodrag.dinic@imgtec.com \
--cc=paul.burton@imgtec.com \
--cc=petar.jovanovic@imgtec.com \
--cc=raghu.gandham@imgtec.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;
as well as URLs for NNTP newsgroup(s).