lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMz4ku+5zAt40Vzdiv4NZuXUb3Utex5f_-HWHtASM9abBx9Fxw@mail.gmail.com>
Date:   Mon, 27 Nov 2017 13:15:40 +0800
From:   Baolin Wang <baolin.wang@...aro.org>
To:     kbuild test robot <lkp@...el.com>
Cc:     Baolin Wang <baolin.wang@...eadtrum.com>, kbuild-all@...org,
        Daniel Lezcano <daniel.lezcano@...aro.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Rob Herring <robh+dt@...nel.org>,
        Mark Rutland <mark.rutland@....com>,
        devicetree@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
        Mark Brown <broonie@...nel.org>
Subject: Re: [PATCH 2/2] clocksource: sprd: Add timer driver for Spreadtrum
 SC9860 platform

On 25 November 2017 at 13:00, kbuild test robot <lkp@...el.com> wrote:
> 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,

OK. I will fix this warning in next version. Thanks.

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



-- 
Baolin.wang
Best Regards

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ