From: kbuild test robot <lkp@intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: kbuild-all@01.org, linux-media@vger.kernel.org
Subject: Re: [PATCH 3/4] smiapp: Get clock rate if it's not available through DT
Date: Thu, 16 Feb 2017 07:05:23 +0800 [thread overview]
Message-ID: <201702160703.l6B0nqL4%fengguang.wu@intel.com> (raw)
In-Reply-To: <1487002586-1480-4-git-send-email-sakari.ailus@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 3066 bytes --]
Hi Sakari,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.10-rc8]
[cannot apply to linuxtv-media/master next-20170215]
[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/Sakari-Ailus/smiapp-cleanups-clock-control-changes/20170214-010429
config: x86_64-randconfig-it0-02160426 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/media/i2c/smiapp/smiapp-core.c: In function 'smiapp_probe':
>> drivers/media/i2c/smiapp/smiapp-core.c:2909:6: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t' [-Wformat=]
sensor->hwcfg->ext_clk, rate);
^
vim +2909 drivers/media/i2c/smiapp/smiapp-core.c
88ea1579 Sakari Ailus 2017-02-13 2893 if (sensor->hwcfg->ext_clk) {
88ea1579 Sakari Ailus 2017-02-13 2894 unsigned long rate;
88ea1579 Sakari Ailus 2017-02-13 2895
88ea1579 Sakari Ailus 2017-02-13 2896 rval = clk_set_rate(sensor->ext_clk,
88ea1579 Sakari Ailus 2017-02-13 2897 sensor->hwcfg->ext_clk);
3ecb8664 Sakari Ailus 2016-09-12 2898 if (rval < 0) {
3ecb8664 Sakari Ailus 2016-09-12 2899 dev_err(&client->dev,
3ecb8664 Sakari Ailus 2016-09-12 2900 "unable to set clock freq to %u\n",
3ecb8664 Sakari Ailus 2016-09-12 2901 sensor->hwcfg->ext_clk);
3ecb8664 Sakari Ailus 2016-09-12 2902 return rval;
3ecb8664 Sakari Ailus 2016-09-12 2903 }
3ecb8664 Sakari Ailus 2016-09-12 2904
87cb6c6a Sakari Ailus 2017-02-13 2905 rate = clk_get_rate(sensor->ext_clk);
87cb6c6a Sakari Ailus 2017-02-13 2906 if (rate != sensor->hwcfg->ext_clk) {
87cb6c6a Sakari Ailus 2017-02-13 2907 dev_err(&client->dev,
88ea1579 Sakari Ailus 2017-02-13 2908 "can't set clock freq, asked for %lu but got %lu\n",
87cb6c6a Sakari Ailus 2017-02-13 @2909 sensor->hwcfg->ext_clk, rate);
87cb6c6a Sakari Ailus 2017-02-13 2910 return rval;
87cb6c6a Sakari Ailus 2017-02-13 2911 }
88ea1579 Sakari Ailus 2017-02-13 2912 } else {
88ea1579 Sakari Ailus 2017-02-13 2913 sensor->hwcfg->ext_clk = clk_get_rate(sensor->ext_clk);
88ea1579 Sakari Ailus 2017-02-13 2914 dev_dbg(&client->dev, "obtained clock freq %u\n",
88ea1579 Sakari Ailus 2017-02-13 2915 sensor->hwcfg->ext_clk);
88ea1579 Sakari Ailus 2017-02-13 2916 }
88ea1579 Sakari Ailus 2017-02-13 2917 } else if (sensor->hwcfg->ext_clk) {
:::::: The code at line 2909 was first introduced by commit
:::::: 87cb6c6a8fdcfc1d0327e6c826165f0ba1b5eff0 smiapp: Verify clock frequency after setting it, prevent changing it
:::::: TO: Sakari Ailus <sakari.ailus@linux.intel.com>
:::::: CC: 0day robot <fengguang.wu@intel.com>
---
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: 31202 bytes --]
next prev parent reply other threads:[~2017-02-15 23:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-13 16:16 [PATCH 0/4] smiapp cleanups, clock control changes Sakari Ailus
2017-02-13 16:16 ` [PATCH 1/4] smiapp: Remove smiapp.h header under include Sakari Ailus
2017-02-13 16:16 ` [PATCH 2/4] smiapp: Verify clock frequency after setting it, prevent changing it Sakari Ailus
2017-02-13 16:16 ` [PATCH 3/4] smiapp: Get clock rate if it's not available through DT Sakari Ailus
2017-02-13 18:27 ` kbuild test robot
2017-02-14 7:37 ` [PATCH v1.1 " Sakari Ailus
2017-02-15 23:05 ` kbuild test robot [this message]
2017-02-13 16:16 ` [PATCH 4/4] smiapp: Make clock control optional Sakari Ailus
2017-08-29 12:41 [PATCH 0/4] Better support for ACPI in smiapp Sakari Ailus
2017-08-29 12:41 ` [PATCH 3/4] smiapp: Get clock rate if it's not available through DT Sakari Ailus
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=201702160703.l6B0nqL4%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.