From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, daniel.lezcano@linaro.org, tglx@linutronix.de,
robh+dt@kernel.org, mark.rutland@arm.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
broonie@kernel.org, baolin.wang@linaro.org,
baolin.wang@spreadtrum.com
Subject: Re: [PATCH 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform
Date: Sat, 25 Nov 2017 13:00:45 +0800 [thread overview]
Message-ID: <201711251226.MKE0Bxdd%fengguang.wu@intel.com> (raw)
In-Reply-To: <58d686b831e2509d6fc29fbe61dc610902c250c3.1511501514.git.baolin.wang@spreadtrum.com>
[-- Attachment #1: Type: text/plain, Size: 3096 bytes --]
Hi Baolin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/timers/core]
[also build test WARNING on v4.14 next-20171124]
[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/Baolin-Wang/dt-bindings-clocksource-Add-Spreadtrum-SC9860-timer/20171125-090749
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/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=arm
All warnings (new ones prefixed by >>):
In file included from include/linux/swab.h:4:0,
from include/uapi/linux/byteorder/big_endian.h:12,
from include/linux/byteorder/big_endian.h:4,
from arch/arm/include/uapi/asm/byteorder.h:19,
from include/asm-generic/bitops/le.h:5,
from arch/arm/include/asm/bitops.h:340,
from include/linux/bitops.h:37,
from include/linux/kernel.h:10,
from include/linux/list.h:8,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:12,
from drivers/clocksource/sprd-timer.c:7:
drivers/clocksource/sprd-timer.c: In function 'sprd_timer_update_counter':
drivers/clocksource/sprd-timer.c:85:24: warning: right shift count >= width of type [-Wshift-count-overflow]
writel_relaxed(cycles >> TIMER_VALUE_HI_SHIFT,
^
include/uapi/linux/swab.h:113:54: note: in definition of macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
#define cpu_to_le32 __cpu_to_le32
^~~~~~~~~~~~~
>> drivers/clocksource/sprd-timer.c:85:2: note: in expansion of macro 'writel_relaxed'
writel_relaxed(cycles >> TIMER_VALUE_HI_SHIFT,
^~~~~~~~~~~~~~
vim +/writel_relaxed +85 drivers/clocksource/sprd-timer.c
79
80 static void sprd_timer_update_counter(struct sprd_timer_device *timer,
81 unsigned long cycles)
82 {
83 writel_relaxed(cycles & TIMER_VALUE_LO_MASK,
84 timer->base + TIMER_LOAD_LO);
> 85 writel_relaxed(cycles >> TIMER_VALUE_HI_SHIFT,
86 timer->base + TIMER_LOAD_HI);
87 }
88
---
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: 64025 bytes --]
next prev parent reply other threads:[~2017-11-25 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-24 5:37 [PATCH 1/2] dt-bindings: clocksource: Add Spreadtrum SC9860 timer Baolin Wang
2017-11-24 5:37 ` [PATCH 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform Baolin Wang
2017-11-25 4:49 ` kbuild test robot
2017-11-25 5:00 ` kbuild test robot [this message]
[not found] ` <201711251226.MKE0Bxdd%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-11-27 5:15 ` Baolin Wang
[not found] ` <2aaad500b5faf51c55fc6f0ad361d9078a521db8.1511501514.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
2017-11-26 22:17 ` [PATCH 1/2] dt-bindings: clocksource: Add Spreadtrum SC9860 timer Rob Herring
2017-11-27 5:14 ` Baolin Wang
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=201711251226.MKE0Bxdd%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=baolin.wang@linaro.org \
--cc=baolin.wang@spreadtrum.com \
--cc=broonie@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
/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