linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Stephen Boyd <sboyd@kernel.org>
Cc: kbuild-all@01.org, linux-arm-kernel@lists.infradead.org,
	linux-clk@vger.kernel.org
Subject: [clk:clk-parent-rewrite 70/78] drivers/clk/sunxi-ng/ccu_mux.c:271:23: warning: assignment makes integer from pointer without a cast
Date: Fri, 3 May 2019 06:56:40 +0800	[thread overview]
Message-ID: <201905030638.OjbMHrOn%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-parent-rewrite
head:   f5e93ab2421d0dd27acac9159d9c4834cd5705e7
commit: c4e54e4bc72df9c60801981f828a62de2f5707f0 [70/78] clk: sunxi-ng: Migrate to .get_parent_hw clk op
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout c4e54e4bc72df9c60801981f828a62de2f5707f0
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=mips 

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

All warnings (new ones prefixed by >>):

   drivers/clk/sunxi-ng/ccu_mux.c: In function 'ccu_mux_notifier_cb':
>> drivers/clk/sunxi-ng/ccu_mux.c:271:23: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
      mux->original_index = ccu_mux_helper_get_parent(mux->common,
                          ^

vim +271 drivers/clk/sunxi-ng/ccu_mux.c

8adfb086 Chen-Yu Tsai 2016-08-25  257  
8adfb086 Chen-Yu Tsai 2016-08-25  258  /*
8adfb086 Chen-Yu Tsai 2016-08-25  259   * This clock notifier is called when the frequency of the of the parent
8adfb086 Chen-Yu Tsai 2016-08-25  260   * PLL clock is to be changed. The idea is to switch the parent to a
8adfb086 Chen-Yu Tsai 2016-08-25  261   * stable clock, such as the main oscillator, while the PLL frequency
8adfb086 Chen-Yu Tsai 2016-08-25  262   * stabilizes.
8adfb086 Chen-Yu Tsai 2016-08-25  263   */
8adfb086 Chen-Yu Tsai 2016-08-25  264  static int ccu_mux_notifier_cb(struct notifier_block *nb,
8adfb086 Chen-Yu Tsai 2016-08-25  265  			       unsigned long event, void *data)
8adfb086 Chen-Yu Tsai 2016-08-25  266  {
8adfb086 Chen-Yu Tsai 2016-08-25  267  	struct ccu_mux_nb *mux = to_ccu_mux_nb(nb);
8adfb086 Chen-Yu Tsai 2016-08-25  268  	int ret = 0;
8adfb086 Chen-Yu Tsai 2016-08-25  269  
8adfb086 Chen-Yu Tsai 2016-08-25  270  	if (event == PRE_RATE_CHANGE) {
8adfb086 Chen-Yu Tsai 2016-08-25 @271  		mux->original_index = ccu_mux_helper_get_parent(mux->common,
8adfb086 Chen-Yu Tsai 2016-08-25  272  								mux->cm);
8adfb086 Chen-Yu Tsai 2016-08-25  273  		ret = ccu_mux_helper_set_parent(mux->common, mux->cm,
8adfb086 Chen-Yu Tsai 2016-08-25  274  						mux->bypass_index);
8adfb086 Chen-Yu Tsai 2016-08-25  275  	} else if (event == POST_RATE_CHANGE) {
8adfb086 Chen-Yu Tsai 2016-08-25  276  		ret = ccu_mux_helper_set_parent(mux->common, mux->cm,
8adfb086 Chen-Yu Tsai 2016-08-25  277  						mux->original_index);
8adfb086 Chen-Yu Tsai 2016-08-25  278  	}
8adfb086 Chen-Yu Tsai 2016-08-25  279  
8adfb086 Chen-Yu Tsai 2016-08-25  280  	udelay(mux->delay_us);
8adfb086 Chen-Yu Tsai 2016-08-25  281  
8adfb086 Chen-Yu Tsai 2016-08-25  282  	return notifier_from_errno(ret);
8adfb086 Chen-Yu Tsai 2016-08-25  283  }
8adfb086 Chen-Yu Tsai 2016-08-25  284  

:::::: The code at line 271 was first introduced by commit
:::::: 8adfb08605a99d742853ff8cf4da5bc68db2028a clk: sunxi-ng: mux: Add clk notifier functions

:::::: TO: Chen-Yu Tsai <wens@csie.org>
:::::: CC: Maxime Ripard <maxime.ripard@free-electrons.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: 58425 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:[~2019-05-02 22:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201905030638.OjbMHrOn%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=sboyd@kernel.org \
    /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).