public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "周琰杰 (Zhou Yanjie)" <zhouyanjie@wanyeetech.com>,
	linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, devicetree@vger.kernel.org,
	daniel.lezcano@linaro.org, tglx@linutronix.de,
	robh+dt@kernel.org, paul@crapouillou.net,
	dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com,
	rick.tyliu@ingenic.com, yanfei.li@ingenic.com
Subject: Re: [PATCH 2/2] clocksource: Ingenic: Add support for the Ingenic X1000 OST.
Date: Thu, 25 Jun 2020 16:47:32 +0800	[thread overview]
Message-ID: <202006251643.SRUBcr00%lkp@intel.com> (raw)
In-Reply-To: <20200624165113.30873-3-zhouyanjie@wanyeetech.com>

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

Hi "周琰杰,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tip/timers/core]
[cannot apply to daniel.lezcano/clockevents/next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Zhou-Yanjie/Add-support-for-the-OST-in-Ingenic-X1000/20200625-005621
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 809eb4e9bf9d84eb5b703358afd0d564d514f6d2
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/clocksource/ingenic-sysost.c: In function 'ingenic_ost_cevt_set_next':
>> drivers/clocksource/ingenic-sysost.c:221:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551614' to '4294967294' [-Woverflow]
     221 |  writel(~OSTFR_FFLAG, ost->base + OST_REG_OSTFR);
   drivers/clocksource/ingenic-sysost.c:225:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551614' to '4294967294' [-Woverflow]
     225 |  writel(~OSTMR_FMASK, ost->base + OST_REG_OSTMR);
   drivers/clocksource/ingenic-sysost.c: In function 'ingenic_ost_init':
   drivers/clocksource/ingenic-sysost.c:477:5: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
     477 |  if (ret)
         |     ^

vim +221 drivers/clocksource/ingenic-sysost.c

   215	
   216	static int ingenic_ost_cevt_set_next(unsigned long next,
   217					     struct clock_event_device *evt)
   218	{
   219		struct ingenic_ost *ost = to_ingenic_ost(evt);
   220	
 > 221		writel(~OSTFR_FFLAG, ost->base + OST_REG_OSTFR);
   222		writel(next, ost->base + OST_REG_OST1DFR);
   223		writel(OSTCR_OST1CLR, ost->base + OST_REG_OSTCR);
   224		writel(OSTESR_OST1ENS, ost->base + OST_REG_OSTESR);
   225		writel(~OSTMR_FMASK, ost->base + OST_REG_OSTMR);
   226	
   227		return 0;
   228	}
   229	

---
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: 73937 bytes --]

  reply	other threads:[~2020-06-25  9:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-24 16:51 [PATCH 0/2] Add support for the OST in Ingenic X1000 周琰杰 (Zhou Yanjie)
2020-06-24 16:51 ` [PATCH 1/2] dt-bindings: timer: Add Ingenic X1000 OST bindings 周琰杰 (Zhou Yanjie)
2020-06-24 16:51 ` [PATCH 2/2] clocksource: Ingenic: Add support for the Ingenic X1000 OST 周琰杰 (Zhou Yanjie)
2020-06-25  8:47   ` kernel test robot [this message]
2020-06-25 11:00   ` kernel test robot

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=202006251643.SRUBcr00%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aric.pzqi@ingenic.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dongsheng.qiu@ingenic.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul@crapouillou.net \
    --cc=rick.tyliu@ingenic.com \
    --cc=robh+dt@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=yanfei.li@ingenic.com \
    --cc=zhouyanjie@wanyeetech.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