Re: [PATCH] scripts/kernel-doc: ignore __aligned attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/08/13 00:41, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
> 
> Otherwise, something like
> 
>   /**
>    * struct foo - foo struct
>    * @address: bla bla bla
>    */
>   struct foo {
>           u8 address[ETH_ALEN] __aligned(sizeof(u16));
>   };
> 
> causes a warning:
> 
>   Excess struct/union/enum/typedef member 'address' description in 'foo'
> 
> Cc: Fengguang Wu <fengguang.wu@xxxxxxxxx>
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>

Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Thanks.


> ---
>  scripts/kernel-doc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/scripts/kernel-doc b/scripts/kernel-doc
> index 28b7615..f208ca5 100755
> --- a/scripts/kernel-doc
> +++ b/scripts/kernel-doc
> @@ -2007,6 +2007,7 @@ sub check_sections($$$$$$) {
>  			$prm_clean = $prms[$px];
>  			$prm_clean =~ s/\[.*\]//;
>  			$prm_clean =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i;
> +			$prm_clean =~ s/__aligned\s*\([A-Za-z0-9,_\*\s\(\)]*\)//i;
>  			# ignore array size in a parameter string;
>  			# however, the original param string may contain
>  			# spaces, e.g.:  addr[6 + 2]
> 


-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux