public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: dongas86@gmail.com (Dong Aisheng)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] clk: bulk: add of_clk_bulk_get()
Date: Wed, 20 Sep 2017 15:11:17 +0800	[thread overview]
Message-ID: <20170920071117.GC32187@b29396-OptiPlex-7040> (raw)
In-Reply-To: <CAMuHMdWQtKPbSUmyKQdMzuRuk2GZ2AD-XAosCo-of+_+x6pU5A@mail.gmail.com>

Hi Geert,

On Wed, Sep 13, 2017 at 03:40:32PM +0200, Geert Uytterhoeven wrote:
> On Wed, Sep 13, 2017 at 2:34 AM, kbuild test robot <lkp@intel.com> wrote:
> > [auto build test WARNING on clk/clk-next]
> > [also build test WARNING on v4.13 next-20170912]
> > [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/Dong-Aisheng/clk-bulk-add-of_clk_bulk_get/20170913-075645
> > base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
> > config: x86_64-randconfig-x001-201737 (attached as .config)
> > compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
> > reproduce:
> >         # save the attached .config to linux build tree
> >         make ARCH=x86_64
> >
> > All warnings (new ones prefixed by >>):
> >
> >    In file included from include/linux/dma/dw.h:15:0,
> >                     from drivers//tty/serial/8250/8250_lpss.c:18:
> >    include/linux/clk.h: In function 'of_clk_bulk_get':
> >>> include/linux/clk.h:692:9: warning: return makes integer from pointer without a cast [-Wint-conversion]
> >      return ERR_PTR(-ENOENT);
> >             ^~~~~~~~~~~~~~~~
> >    At top level:
> >    include/linux/clk.h:689:12: warning: 'of_clk_bulk_get' defined but not used [-Wunused-function]
> >     static int of_clk_bulk_get(struct device_node *np, int num_clks,
> >                ^~~~~~~~~~~~~~~
> >
> > vim +692 include/linux/clk.h
> >
> >    681
> >    682  #if defined(CONFIG_OF) && defined(CONFIG_COMMON_CLK)
> >    683  int __must_check of_clk_bulk_get(struct device_node *np, int num_clks,
> >    684                                   struct clk_bulk_data *clks);
> >    685  struct clk *of_clk_get(struct device_node *np, int index);
> >    686  struct clk *of_clk_get_by_name(struct device_node *np, const char *name);
> >    687  struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
> >    688  #else
> >    689  static int of_clk_bulk_get(struct device_node *np, int num_clks,
> >    690                             struct clk_bulk_data *clks)
> >    691  {
> >  > 692          return ERR_PTR(-ENOENT);
> 
> That should be plain "return -ENOENT;".
> 

Sorry for the careless and thank you for the pointing out.

Will update it.

Regards
Dong Aisheng

> >    693  }
> >    694
> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
> --
> To unsubscribe from this list: send the line "unsubscribe linux-clk" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2017-09-20  7:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170911074100epcas2p15480963b2119f8954784f9b37ed8d26d@epcas2p1.samsung.com>
2017-09-11  7:36 ` [PATCH 1/1] clk: bulk: add of_clk_bulk_get() Dong Aisheng
2017-09-11  8:58   ` Sylwester Nawrocki
2017-09-11  9:13     ` Dong Aisheng
2017-09-13  0:34   ` kbuild test robot
2017-09-13 13:40     ` Geert Uytterhoeven
2017-09-20  7:11       ` Dong Aisheng [this message]
2017-09-13  4:06   ` kbuild test robot

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=20170920071117.GC32187@b29396-OptiPlex-7040 \
    --to=dongas86@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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