From: kernel test robot <lkp@intel.com>
To: Binbin Zhou <zhoubinbin@loongson.cn>,
Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
Huacai Chen <chenhuacai@loongson.cn>,
WANG Xuerui <kernel@xen0n.name>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-rtc@vger.kernel.org, linux-mips@vger.kernel.org,
loongarch@lists.linux.dev, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
devicetree@vger.kernel.org, Qing Zhang <zhangqing@loongson.cn>,
zhaoxiao <zhaoxiao@uniontech.com>,
keguang.zhang@gmail.com, Binbin Zhou <zhoubinbin@loongson.cn>
Subject: Re: [PATCH V3 2/7] rtc: Add support for the Loongson-2K/LS7A RTC
Date: Fri, 14 Apr 2023 02:35:39 +0800 [thread overview]
Message-ID: <202304140202.URh2nrLx-lkp@intel.com> (raw)
In-Reply-To: <09f381f445cfbcf857845f61d10238452037b2e8.1681370153.git.zhoubinbin@loongson.cn>
Hi Binbin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on abelloni/rtc-next]
[also build test WARNING on robh/for-next linus/master v6.3-rc6 next-20230412]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Binbin-Zhou/dt-bindings-rtc-Subdivision-of-LS2X-RTC-compatible/20230413-155906
base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
patch link: https://lore.kernel.org/r/09f381f445cfbcf857845f61d10238452037b2e8.1681370153.git.zhoubinbin%40loongson.cn
patch subject: [PATCH V3 2/7] rtc: Add support for the Loongson-2K/LS7A RTC
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230414/202304140202.URh2nrLx-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 9638da200e00bd069e6dd63604e14cbafede9324)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/intel-lab-lkp/linux/commit/30ef4691d0ab95241315bf9ba7cf20b7d549b071
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Binbin-Zhou/dt-bindings-rtc-Subdivision-of-LS2X-RTC-compatible/20230413-155906
git checkout 30ef4691d0ab95241315bf9ba7cf20b7d549b071
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/rtc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304140202.URh2nrLx-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/rtc/rtc-ls2x.c:276:25: warning: cast to smaller integer type 'enum ls2x_pm_offset' from 'const void *' [-Wvoid-pointer-to-enum-cast]
priv->pm_base = regs - (enum ls2x_pm_offset)device_get_match_data(dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +276 drivers/rtc/rtc-ls2x.c
249
250 static int ls2x_rtc_probe(struct platform_device *pdev)
251 {
252 int ret;
253 void __iomem *regs;
254 struct ls2x_rtc_priv *priv;
255 struct device *dev = &pdev->dev;
256
257 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
258 if (!priv)
259 return -ENOMEM;
260
261 regs = devm_platform_ioremap_resource(pdev, 0);
262 if (IS_ERR(regs))
263 return dev_err_probe(dev, PTR_ERR(regs),
264 "devm_platform_ioremap_resource failed\n");
265
266 priv->regmap = devm_regmap_init_mmio(dev, regs,
267 &ls2x_rtc_regmap_config);
268 if (IS_ERR(priv->regmap))
269 return dev_err_probe(dev, PTR_ERR(priv->regmap),
270 "devm_regmap_init_mmio failed\n");
271
272 device_init_wakeup(dev, 1);
273 spin_lock_init(&priv->lock);
274 platform_set_drvdata(pdev, priv);
275
> 276 priv->pm_base = regs - (enum ls2x_pm_offset)device_get_match_data(dev);
277
278 if (has_acpi_companion(dev))
279 acpi_install_fixed_event_handler(ACPI_EVENT_RTC,
280 ls2x_rtc_handler, priv);
281
282 priv->rtcdev = devm_rtc_allocate_device(dev);
283 if (IS_ERR(priv->rtcdev))
284 return dev_err_probe(dev, PTR_ERR(priv->rtcdev),
285 "devm_rtc_allocate_device failed\n");
286
287 priv->rtcdev->ops = &ls2x_rtc_ops;
288 priv->rtcdev->range_min = RTC_TIMESTAMP_BEGIN_2000;
289 priv->rtcdev->range_max = RTC_TIMESTAMP_END_2099;
290
291 priv->irq = platform_get_irq(pdev, 0);
292 if (priv->irq < 0)
293 return dev_err_probe(dev, priv->irq, "platform_get_irq failed\n");
294
295 ret = devm_request_irq(dev, priv->irq, ls2x_rtc_isr,
296 IRQF_TRIGGER_RISING, "ls2x-alarm", priv);
297 if (ret < 0)
298 return dev_err_probe(dev, ret, "Unable to request irq %d\n",
299 priv->irq);
300
301 return devm_rtc_register_device(priv->rtcdev);
302 }
303
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-04-13 18:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 7:57 [PATCH V3 0/7] rtc: ls2x: Add support for the Loongson-2K/LS7A RTC Binbin Zhou
2023-04-13 7:57 ` [PATCH V3 1/7] dt-bindings: rtc: Subdivision of LS2X RTC compatible Binbin Zhou
2023-04-16 17:31 ` Krzysztof Kozlowski
2023-04-19 7:12 ` Binbin Zhou
2023-04-19 8:52 ` Krzysztof Kozlowski
2023-04-19 9:38 ` Binbin Zhou
2023-04-13 7:57 ` [PATCH V3 2/7] rtc: Add support for the Loongson-2K/LS7A RTC Binbin Zhou
2023-04-13 18:35 ` kernel test robot [this message]
2023-04-16 19:49 ` Alexandre Belloni
2023-05-05 2:28 ` Binbin Zhou
2023-04-13 7:57 ` [PATCH V3 3/7] LoongArch: Enable LS2X RTC in loongson3_defconfig Binbin Zhou
2023-04-13 7:57 ` [PATCH V3 4/7] MIPS: Loongson64: DTS: Add RTC support to LS7A Binbin Zhou
2023-04-13 7:57 ` [PATCH V3 5/7] MIPS: Loongson: Enable LS2X RTC in loongson3_defconfig Binbin Zhou
2023-04-13 7:58 ` [PATCH V3 6/7] MIPS: Loongson64: DTS: Add RTC support to Loongson-2K Binbin Zhou
2023-04-13 7:58 ` [PATCH V3 7/7] MIPS: Loongson: Enable LS2X RTC in loongson2k_defconfig Binbin Zhou
2023-04-16 17:33 ` Krzysztof Kozlowski
2023-04-16 19:51 ` [PATCH V3 0/7] rtc: ls2x: Add support for the Loongson-2K/LS7A RTC Alexandre Belloni
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=202304140202.URh2nrLx-lkp@intel.com \
--to=lkp@intel.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=chenhuacai@loongson.cn \
--cc=devicetree@vger.kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=keguang.zhang@gmail.com \
--cc=kernel@xen0n.name \
--cc=krzk@kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=loongarch@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh+dt@kernel.org \
--cc=tsbogend@alpha.franken.de \
--cc=zhangqing@loongson.cn \
--cc=zhaoxiao@uniontech.com \
--cc=zhoubinbin@loongson.cn \
/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).