[PATCH 3/3] staging: most: core.c: move static static specifier into MOST_CHNL_ATTR

Greg KH gregkh at linuxfoundation.org
Mon Jul 27 14:41:04 UTC 2015


On Mon, Jul 27, 2015 at 10:31:10AM +0900, Chaehyun Lim wrote:
> Move static specifier into MOST_CHNL_ATTR to fix checkpatch error.
> ERROR: Macros with complex values should be enclosed in parentheses
> 
> Signed-off-by: Chaehyun Lim <chaehyun.lim at gmail.com>
> ---
>  drivers/staging/most/mostcore/core.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most/mostcore/core.c
> index 261cb62..2c998a2 100644
> --- a/drivers/staging/most/mostcore/core.c
> +++ b/drivers/staging/most/mostcore/core.c
> @@ -111,7 +111,7 @@ struct most_c_attr {
>  #define to_channel_attr(a) container_of(a, struct most_c_attr, attr)
>  
>  #define MOST_CHNL_ATTR(_name, _mode, _show, _store) \
> -		struct most_c_attr most_chnl_attr_##_name = \
> +		static struct most_c_attr most_chnl_attr_##_name = \
>  		__ATTR(_name, _mode, _show, _store)

Again, not a real issue.


More information about the devel mailing list