From: kernel test robot <lkp@intel.com>
To: Maxime Ripard <maxime@cerno.tech>,
Mike Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
linux-clk@vger.kernel.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Yassine Oudjana <y.oudjana@protonmail.com>,
Tony Lindgren <tony@atomide.com>,
Alexander Stein <alexander.stein@ew.tq-group.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Naresh Kamboju <naresh.kamboju@linaro.org>,
Neil Armstrong <narmstrong@baylibre.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Maxime Ripard <maxime@cerno.tech>
Subject: Re: [PATCH v6 02/28] clk: bcm: rpi: Add a function to retrieve the maximum
Date: Fri, 15 Jul 2022 01:13:30 +0800 [thread overview]
Message-ID: <202207150118.KCuvlljp-lkp@intel.com> (raw)
In-Reply-To: <20220711152424.701311-3-maxime@cerno.tech>
Hi Maxime,
I love your patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on drm-misc/drm-misc-next linus/master]
[cannot apply to anholt/for-next]
[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/Maxime-Ripard/clk-More-clock-rate-fixes-and-tests/20220711-232652
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arm-randconfig-r013-20220714 (https://download.01.org/0day-ci/archive/20220715/202207150118.KCuvlljp-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e61b9c556267086ef9b743a0b57df302eef831b)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/intel-lab-lkp/linux/commit/461ea72e08a9200c6874414e709885d73fe0cfb9
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Maxime-Ripard/clk-More-clock-rate-fixes-and-tests/20220711-232652
git checkout 461ea72e08a9200c6874414e709885d73fe0cfb9
# 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=arm SHELL=/bin/bash drivers/clk/bcm/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/clk/bcm/clk-raspberrypi.c:257:15: warning: no previous prototype for function 'rpi_firmware_clk_get_max_rate' [-Wmissing-prototypes]
unsigned long rpi_firmware_clk_get_max_rate(struct clk *clk)
^
drivers/clk/bcm/clk-raspberrypi.c:257:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long rpi_firmware_clk_get_max_rate(struct clk *clk)
^
static
1 warning generated.
vim +/rpi_firmware_clk_get_max_rate +257 drivers/clk/bcm/clk-raspberrypi.c
256
> 257 unsigned long rpi_firmware_clk_get_max_rate(struct clk *clk)
258 {
259 const struct raspberrypi_clk_data *data;
260 struct raspberrypi_clk *rpi;
261 struct clk_hw *hw;
262 u32 max_rate;
263 int ret;
264
265 if (!clk)
266 return 0;
267
268 hw = __clk_get_hw(clk);
269 if (!hw)
270 return 0;
271
272 data = clk_hw_to_data(hw);
273 rpi = data->rpi;
274 ret = raspberrypi_clock_property(rpi->firmware, data,
275 RPI_FIRMWARE_GET_MAX_CLOCK_RATE,
276 &max_rate);
277 if (ret)
278 return 0;
279
280 return max_rate;
281 }
282 EXPORT_SYMBOL_GPL(rpi_firmware_clk_get_max_rate);
283
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-07-14 17:14 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 15:23 [PATCH v6 00/28] clk: More clock rate fixes and tests Maxime Ripard
2022-07-11 15:23 ` [PATCH v6 01/28] clk: bcm: rpi: Create helper to retrieve private data Maxime Ripard
2022-07-11 15:23 ` [PATCH v6 02/28] clk: bcm: rpi: Add a function to retrieve the maximum Maxime Ripard
2022-07-14 17:13 ` kernel test robot [this message]
2022-07-16 4:54 ` kernel test robot
2022-07-11 15:23 ` [PATCH v6 03/28] drm/vc4: hdmi: Rework hdmi_enable_4kp60 detection Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 04/28] clk: test: Switch to clk_hw_get_clk Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 05/28] clk: Drop the rate range on clk_put() Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 06/28] clk: Skip clamping when rounding if there's no boundaries Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 07/28] clk: Mention that .recalc_rate can return 0 on error Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 08/28] clk: Clarify clk_get_rate() expectations Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 09/28] clk: tests: Add test suites description Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 10/28] clk: tests: Add reference to the orphan mux bug report Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 11/28] clk: tests: Add tests for uncached clock Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 12/28] clk: tests: Add tests for single parent mux Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 13/28] clk: tests: Add tests for mux with multiple parents Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 14/28] clk: tests: Add some tests for orphan " Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 15/28] clk: Take into account uncached clocks in clk_set_rate_range() Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 16/28] clk: Set req_rate on reparenting Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 17/28] clk: Change clk_core_init_rate_req prototype Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 18/28] clk: Move clk_core_init_rate_req() from clk_core_round_rate_nolock() to its caller Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 19/28] clk: Introduce clk_hw_init_rate_request() Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 20/28] clk: Add our request boundaries in clk_core_init_rate_req Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 21/28] clk: Switch from __clk_determine_rate to clk_core_round_rate_nolock Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 22/28] clk: Introduce clk_core_has_parent() Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 23/28] clk: Constify clk_has_parent() Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 24/28] clk: Stop forwarding clk_rate_requests to the parent Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 25/28] clk: Zero the clk_rate_request structure Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 26/28] clk: Introduce the clk_hw_get_rate_range function Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 27/28] clk: qcom: clk-rcg2: Take clock boundaries into consideration for gfx3d Maxime Ripard
2022-07-11 15:24 ` [PATCH v6 28/28] clk: tests: Add missing test case for ranges Maxime Ripard
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=202207150118.KCuvlljp-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexander.stein@ew.tq-group.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=jbrunet@baylibre.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-clk@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=m.szyprowski@samsung.com \
--cc=maxime@cerno.tech \
--cc=mturquette@baylibre.com \
--cc=naresh.kamboju@linaro.org \
--cc=narmstrong@baylibre.com \
--cc=sboyd@kernel.org \
--cc=tony@atomide.com \
--cc=y.oudjana@protonmail.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