Re: wcn36xx: Remove Unicode Byte Order Mark from testcode
From: Kalle Valo
Date: Thu Jun 28 2018 - 05:29:10 EST
Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
> Older gcc (< 4.4) doesn't like files starting with a Unicode BOM:
>
> drivers/net/wireless/ath/wcn36xx/testmode.c:1: error: stray â\357â in program
> drivers/net/wireless/ath/wcn36xx/testmode.c:1: error: stray â\273â in program
> drivers/net/wireless/ath/wcn36xx/testmode.c:1: error: stray â\277â in program
>
> Remove the BOM, the rest of the file is plain ASCII anyway.
>
> Output of "file drivers/net/wireless/ath/wcn36xx/testmode.c" before:
>
> drivers/net/wireless/ath/wcn36xx/testmode.c: C source, UTF-8 Unicode (with BOM) text
>
> and after:
>
> drivers/net/wireless/ath/wcn36xx/testmode.c: C source, ASCII text
>
> Fixes: 87f825e6e246cee0 ("wcn36xx: Add support for Factory Test Mode (FTM)")
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Acked-by: Ramon Fried <ramon.fried@xxxxxxxxx>
> Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxxxxxx>
Patch applied to ath-current branch of ath.git, thanks.
371d5e9d99e1 wcn36xx: Remove Unicode Byte Order Mark from testcode
--
https://patchwork.kernel.org/patch/10451875/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches