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

[microblaze-uclinux] Re: [PATCH] microblaze: Storage class should be before const qualifier



Tobias Klauser wrote:
> The C99 specification states in section 6.11.5:
> 
> The placement of a storage-class specifier other than at the
> beginning of the declaration specifiers in a declaration is an
> obsolescent feature.
> 
> Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx>
> ---
>  arch/microblaze/kernel/cpu/cpuinfo-static.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/microblaze/kernel/cpu/cpuinfo-static.c b/arch/microblaze/kernel/cpu/cpuinfo-static.c
> index cfe44ef..450ca6b 100644
> --- a/arch/microblaze/kernel/cpu/cpuinfo-static.c
> +++ b/arch/microblaze/kernel/cpu/cpuinfo-static.c
> @@ -14,8 +14,8 @@
>  #include <asm/cpuinfo.h>
>  #include <asm/pvr.h>
>  
> -const static char family_string[] = CONFIG_XILINX_MICROBLAZE0_FAMILY;
> -const static char cpu_ver_string[] = CONFIG_XILINX_MICROBLAZE0_HW_VER;
> +static const char family_string[] = CONFIG_XILINX_MICROBLAZE0_FAMILY;
> +static const char cpu_ver_string[] = CONFIG_XILINX_MICROBLAZE0_HW_VER;
>  
>  #define err_printk(x) \
>  	early_printk("ERROR: Microblaze " x "- different for kernel and DTS\n");

Added to fixes-for-linus branch.

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/