linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>
Cc: kbuild-all@lists.01.org, linux-clk@vger.kernel.org,
	punit1.agrawal@toshiba.co.jp, yuji2.ishikawa@toshiba.co.jp,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Subject: Re: [PATCH 1/4] clk: visconti: Add support common clock driver and reset driver
Date: Tue, 25 May 2021 18:36:04 +0800	[thread overview]
Message-ID: <202105251857.VuPk5UVc-lkp@intel.com> (raw)
In-Reply-To: <20210525084655.138465-2-nobuhiro1.iwamatsu@toshiba.co.jp>

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

Hi Nobuhiro,

I love your patch! Perhaps something to improve:

[auto build test WARNING on clk/clk-next]
[also build test WARNING on robh/for-next pza/reset/next linus/master v5.13-rc3 next-20210525]
[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]

url:    https://github.com/0day-ci/linux/commits/Nobuhiro-Iwamatsu/clk-visconti-Add-support-common-clock-driver-and-reset-driver/20210525-165001
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arm64-randconfig-r014-20210525 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
        # https://github.com/0day-ci/linux/commit/33e59a6bce486f3cb2bd6f9f4ed2f73a94769196
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Nobuhiro-Iwamatsu/clk-visconti-Add-support-common-clock-driver-and-reset-driver/20210525-165001
        git checkout 33e59a6bce486f3cb2bd6f9f4ed2f73a94769196
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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/clk/visconti/clkc.c: In function 'visconti_clk_register_gates':
>> drivers/clk/visconti/clkc.c:147:14: warning: variable 'clk' set but not used [-Wunused-but-set-variable]
     147 |  struct clk *clk;
         |              ^~~
--
>> drivers/clk/visconti/pll.c:260:13: warning: no previous prototype for 'visconti_register_pll' [-Wmissing-prototypes]
     260 | struct clk *visconti_register_pll(struct visconti_pll_provider *ctx,
         |             ^~~~~~~~~~~~~~~~~~~~~
--
   drivers/clk/visconti/pll-tmpv770x.c: In function 'tmpv7708_setup_plls':
>> drivers/clk/visconti/pll-tmpv770x.c:63:14: warning: variable 'clk' set but not used [-Wunused-but-set-variable]
      63 |  struct clk *clk;
         |              ^~~
--
   drivers/clk/visconti/clkc-tmpv770x.c: In function 'tmpv7708_clkc_setup_clks':
>> drivers/clk/visconti/clkc-tmpv770x.c:185:14: warning: variable 'clk' set but not used [-Wunused-but-set-variable]
     185 |  struct clk *clk;
         |              ^~~


vim +/clk +147 drivers/clk/visconti/clkc.c

   139	
   140	void visconti_clk_register_gates(struct visconti_clk_provider *data,
   141					 const struct visconti_clk_gate_table *clks,
   142					 int num_gate, const struct visconti_reset_data *reset,
   143					 spinlock_t *lock)
   144	{
   145		u32 rson_offset, rsoff_offset;
   146		struct clk_hw *hw_clk;
 > 147		struct clk *clk;
   148		char *div_name;
   149		u8 rs_idx;
   150		int i;
   151	
   152		for (i = 0; i < num_gate; i++) {
   153			div_name = kasprintf(GFP_KERNEL, "%s_div", clks[i].name);
   154			if (!div_name)
   155				continue;
   156	
   157			if (clks[i].rs_id >= 0) {
   158				rson_offset = reset[clks[i].rs_id].rson_offset;
   159				rsoff_offset = reset[clks[i].rs_id].rsoff_offset;
   160				rs_idx = reset[clks[i].rs_id].rs_idx;
   161			} else {
   162				rson_offset = rsoff_offset = rs_idx = -1;
   163			}
   164	
   165			clk = clk_register_fixed_factor(NULL, div_name, clks[i].parent,
   166							0, 1, clks[i].div);
   167	
   168			hw_clk = visconti_clk_register_gate(NULL,
   169							clks[i].name,
   170							div_name,
   171							data->regmap,
   172							&clks[i],
   173							rson_offset,
   174							rsoff_offset,
   175							rs_idx,
   176							lock);
   177			kfree(div_name);
   178			if (IS_ERR(hw_clk)) {
   179				pr_err("%s: failed to register clock %s\n",
   180				       __func__, clks[i].name);
   181				continue;
   182			}
   183	
   184			data->clk_data.clks[clks[i].id] = hw_clk->clk;
   185		}
   186	}
   187	

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

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-05-25 10:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25  8:46 [PATCH 0/4] clk: visconti: Add support common clock driver and reset driver Nobuhiro Iwamatsu
2021-05-25  8:46 ` [PATCH 1/4] " Nobuhiro Iwamatsu
2021-05-25 10:36   ` kernel test robot [this message]
2021-05-25 13:04   ` kernel test robot
2021-05-25  8:46 ` [PATCH 2/4] dt-bindings: clock: Add DT bindings for PLL of Toshiba Visconti TMPV7700 SoC Nobuhiro Iwamatsu
2021-05-25  8:46 ` [PATCH 3/4] dt-bindings: clock: Add DT bindings for SMU " Nobuhiro Iwamatsu
2021-05-25  8:46 ` [PATCH 4/4] MAINTAINERS: Add entries for Toshiba Visconti PLL and clock controller Nobuhiro Iwamatsu

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=202105251857.VuPk5UVc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=punit1.agrawal@toshiba.co.jp \
    --cc=sboyd@kernel.org \
    --cc=yuji2.ishikawa@toshiba.co.jp \
    /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).