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


Groups > linux.kernel > #1481129

Re: [PATCH] arm-cci: add cci_enable_port_for_self() declaration in arm-cci.h

From Suzuki K Poulose <Suzuki.Poulose@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm-cci: add cci_enable_port_for_self() declaration in arm-cci.h
Date 2016-09-12 12:40 +0200
Message-ID <sgwOC-22G-29@gated-at.bofh.it> (permalink)
References <sgwOC-22G-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/09/16 11:33, Baoyou Xie wrote:
> We get 1 warning when building kernel with W=1:
> drivers/bus/arm-cci.c:2027:25: warning: no previous prototype for 'cci_enable_port_for_self' [-Wmissing-prototypes]
>
> In fact, this function is used in a few files,
> but should be declared in a header file.
>
> So this patch adds the declaration in arm-cci.h.
>
> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
> ---
>  include/linux/arm-cci.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/arm-cci.h b/include/linux/arm-cci.h
> index 521ec1f..b88f6fb 100644
> --- a/include/linux/arm-cci.h
> +++ b/include/linux/arm-cci.h
> @@ -30,8 +30,10 @@ struct device_node;
>
>  #ifdef CONFIG_ARM_CCI
>  extern bool cci_probed(void);
> +extern asmlinkage void __naked cci_enable_port_for_self(void);
>  #else
>  static inline bool cci_probed(void) { return false; }
> +static inline void ci_enable_port_for_self(void) { return; }
>  #endif
>

Don't you think the above definitions should depend on

ARM_CCI400_PORT_CTRL than ARM_CCI ?


Suzuki

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] arm-cci: add cci_enable_port_for_self() declaration in arm-cci.h Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-12 12:40 +0200
  Re: [PATCH] arm-cci: add cci_enable_port_for_self() declaration in  arm-cci.h Suzuki K Poulose <Suzuki.Poulose@arm.com> - 2016-09-12 12:40 +0200

csiph-web