lkml.org 
[lkml]   [2015]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] rtc: sunxi: fix signedness issues
    On 19/11/2015 at 11:50:08 +0100, LABBE Corentin wrote :
    > The variable year must be set as unsigned since it is used with
    > sunxi_rtc_data_year{.min|.max} and as parameter of is_leap_year() which
    > wait for unsigned int.
    > Only tm_year is not unsigned, but it is long.
    > This patch fix also the format of printing of min/max. (must use %u since
    > they are unsigned)
    >
    > The parameter to of sunxi_rtc_setaie() must be set to uint since callers
    > give always uint data.
    >
    > Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
    > ---
    > drivers/rtc/rtc-sunxi.c | 8 ++++----
    > 1 file changed, 4 insertions(+), 4 deletions(-)
    >
    Applied, thanks.

    --
    Alexandre Belloni, Free Electrons
    Embedded Linux, Kernel and Android engineering
    http://free-electrons.com


    \
     
     \ /
      Last update: 2015-11-30 20:21    [W:3.913 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site