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


Groups > linux.kernel > #1623076

Re: [RFC PATCH 1/3] clk: add clk_bulk_get accessories

From Dong Aisheng <dongas86@gmail.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 1/3] clk: add clk_bulk_get accessories
Date 2017-04-13 16:30 +0200
Message-ID <tvNV0-4bx-3@gated-at.bofh.it> (permalink)
References <tv7sK-1pf-33@gated-at.bofh.it> <tvNBE-43N-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Apr 12, 2017 at 12:03:27PM +0800, Dong Aisheng wrote:
...
> @@ -445,6 +543,12 @@ static inline struct clk *clk_get(struct device *dev, const char *id)
>  	return NULL;
>  }
>  
> +static inline int clk_bulk_get(struct device *dev, int num_clks,
> +			       struct clk_bulk_data *clks)
> +{
> +	return NULL;

Here needs to be changed to 'return 0'.

It's catched by 0day robot.

include/linux/clk.h: In function 'clk_bulk_get':
include/linux/stddef.h:7:14: warning: return makes integer from pointer without a cast [-Wint-conversion]
#define NULL ((void *)0)

Good job! Robot!

Regards
Dong Aisheng

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [RFC PATCH 1/3] clk: add clk_bulk_get accessories Dong Aisheng <dongas86@gmail.com> - 2017-04-13 16:30 +0200

csiph-web