Re: [PATCH] x86: Fix mkcapflags.sh bash-ism again

From: sylvain . bertrand
Date: Sat May 09 2015 - 19:42:02 EST


On Mon, Apr 27, 2015 at 03:21:02PM +0000, sylvain.bertrand@xxxxxxxxx wrote:
> While compiling linux, dash shell reports a bash-ism:
>
> /src/linux-4.0/arch/x86/kernel/cpu/mkcapflags.sh: 9: /src/linux-4.0/arch/x86/kernel/cpu/mkcapflags.sh: Syntax error: "(" unexpected
>
> See:
> http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_05
>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Signed-off-by: Sylvain BERTRAND <sylvain.bertrand@xxxxxxxxx>
> ---
> Forgot that fix:
> --- a/arch/x86/kernel/cpu/mkcapflags.sh
> +++ b/arch/x86/kernel/cpu/mkcapflags.sh
> @@ -6,7 +6,7 @@
> IN=$1
> OUT=$2
>
> -function dump_array()
> +dump_array()
> {
> ARRAY=$1
> SIZE=$2

What's up with this patch?

regards,

--
Sylvain
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/