Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1731308 > unrolled thread

Re: [PATCH 1/1] clk: bulk: add of_clk_bulk_get()

Started bykbuild test robot <lkp@intel.com>
First post2017-09-13 02:40 +0200
Last post2017-09-20 09:20 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/1] clk: bulk: add of_clk_bulk_get() kbuild test robot <lkp@intel.com> - 2017-09-13 02:40 +0200
    Re: [PATCH 1/1] clk: bulk: add of_clk_bulk_get() Geert Uytterhoeven <geert@linux-m68k.org> - 2017-09-13 15:50 +0200
      Re: [PATCH 1/1] clk: bulk: add of_clk_bulk_get() Dong Aisheng <dongas86@gmail.com> - 2017-09-20 09:20 +0200

#1731308 — Re: [PATCH 1/1] clk: bulk: add of_clk_bulk_get()

Fromkbuild test robot <lkp@intel.com>
Date2017-09-13 02:40 +0200
SubjectRe: [PATCH 1/1] clk: bulk: add of_clk_bulk_get()
Message-ID<up3SF-8wp-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi Dong,

[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);
   693	}
   694	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [next] | [standalone]


#1731616

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2017-09-13 15:50 +0200
Message-ID<upgdc-834-7@gated-at.bofh.it>
In reply to#1731308
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;".

>    693  }
>    694

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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

[toc] | [prev] | [next] | [standalone]


#1735585

FromDong Aisheng <dongas86@gmail.com>
Date2017-09-20 09:20 +0200
Message-ID<urHsB-8f3-17@gated-at.bofh.it>
In reply to#1731616
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@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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web