mfd/DA9055: Remove Unicode Byte Order Marks
Subsystems (2)
PATCH 1/1 mfd/DA9055: Remove Unicode Byte Order Marks
Older gcc (< 4.4) doesn't like files starting with Unicode BOMs:
include/linux/mfd/da9055/core.h:1: error: stray ‘\357’ in program include/linux/mfd/da9055/core.h:1: error: stray ‘\273’ in program include/linux/mfd/da9055/core.h:1: error: stray ‘\277’ in program include/linux/mfd/da9055/pdata.h:1: error: stray ‘\357’ in program include/linux/mfd/da9055/pdata.h:1: error: stray ‘\273’ in program include/linux/mfd/da9055/pdata.h:1: error: stray ‘\277’ in program include/linux/mfd/da9055/reg.h:1: error: stray ‘\357’ in program include/linux/mfd/da9055/reg.h:1: error: stray ‘\273’ in program include/linux/mfd/da9055/reg.h:1: error: stray ‘\277’ in program
Remove the BOMs, the rest of the files is plain ASCII anyway.
Output of "file" before:
include/linux/mfd/da9055/core.h: UTF-8 Unicode (with BOM) C program text include/linux/mfd/da9055/pdata.h: UTF-8 Unicode (with BOM) C program text include/linux/mfd/da9055/reg.h: UTF-8 Unicode (with BOM) C program text
Output of "file" after:
include/linux/mfd/da9055/core.h: ASCII C program text include/linux/mfd/da9055/pdata.h: ASCII C program text include/linux/mfd/da9055/reg.h: ASCII C program text
--- include/linux/mfd/da9055/core.h | 2 +- include/linux/mfd/da9055/pdata.h | 2 +- include/linux/mfd/da9055/reg.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
include/linux/mfd/da9055/core.h +1 -1
@@ -1,4 +1,4 @@ -/* +/* * da9055 declarations for DA9055 PMICs. * * Copyright(c) 2012 Dialog Semiconductor Ltd.
include/linux/mfd/da9055/pdata.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2012 Dialog Semiconductor Ltd. +/* Copyright (C) 2012 Dialog Semiconductor Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by
include/linux/mfd/da9055/reg.h +1 -1
@@ -1,4 +1,4 @@ -/* +/* * DA9055 declarations for DA9055 PMICs. * * Copyright(c) 2012 Dialog Semiconductor Ltd.
Signature · 1 line
1.7.0.4
Ping? (akpm added to CC)
Quoted 64 lines · Geert Uytterhoeven
Older gcc (< 4.4) doesn't like files starting with Unicode BOMs:
include/linux/mfd/da9055/core.h:1: error: stray ‘\357’ in programinclude/linux/mfd/da9055/core.h:1: error: stray ‘\273’ in programinclude/linux/mfd/da9055/core.h:1: error: stray ‘\277’ in programinclude/linux/mfd/da9055/pdata.h:1: error: stray ‘\357’ in programinclude/linux/mfd/da9055/pdata.h:1: error: stray ‘\273’ in programinclude/linux/mfd/da9055/pdata.h:1: error: stray ‘\277’ in programinclude/linux/mfd/da9055/reg.h:1: error: stray ‘\357’ in programinclude/linux/mfd/da9055/reg.h:1: error: stray ‘\273’ in programinclude/linux/mfd/da9055/reg.h:1: error: stray ‘\277’ in programRemove the BOMs, the rest of the files is plain ASCII anyway.
Output of "file" before:
include/linux/mfd/da9055/core.h: UTF-8 Unicode (with BOM) C program text include/linux/mfd/da9055/pdata.h: UTF-8 Unicode (with BOM) C program text include/linux/mfd/da9055/reg.h: UTF-8 Unicode (with BOM) C program textOutput of "file" after:
include/linux/mfd/da9055/core.h: ASCII C program text include/linux/mfd/da9055/pdata.h: ASCII C program text include/linux/mfd/da9055/reg.h: ASCII C program textSigned-off-by Geert Uytterhoeven <[email protected]>--- include/linux/mfd/da9055/core.h | 2 +- include/linux/mfd/da9055/pdata.h | 2 +- include/linux/mfd/da9055/reg.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)include/linux/mfd/da9055/core.h +1
-1@@ -1,4 +1,4 @@ -/* +/* * da9055 declarations for DA9055 PMICs. * * Copyright(c) 2012 Dialog Semiconductor Ltd. include/linux/mfd/da9055/pdata.h +1
-1@@ -1,4 +1,4 @@ -/* Copyright (C) 2012 Dialog Semiconductor Ltd. +/* Copyright (C) 2012 Dialog Semiconductor Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by include/linux/mfd/da9055/reg.h +1
-2@@ -1,4 +1,4 @@ -/* +/* * DA9055 declarations for DA9055 PMICs. * * Copyright(c) 2012 Dialog Semiconductor Ltd. --
Quoted 1 line
1.7.0.4
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Samuel Ortiz
AppliedHi Geert,
Quoted 26 lines · Geert Uytterhoeven
Older gcc (< 4.4) doesn't like files starting with Unicode BOMs:
include/linux/mfd/da9055/core.h:1: error: stray ‘\357’ in programinclude/linux/mfd/da9055/core.h:1: error: stray ‘\273’ in programinclude/linux/mfd/da9055/core.h:1: error: stray ‘\277’ in programinclude/linux/mfd/da9055/pdata.h:1: error: stray ‘\357’ in programinclude/linux/mfd/da9055/pdata.h:1: error: stray ‘\273’ in programinclude/linux/mfd/da9055/pdata.h:1: error: stray ‘\277’ in programinclude/linux/mfd/da9055/reg.h:1: error: stray ‘\357’ in programinclude/linux/mfd/da9055/reg.h:1: error: stray ‘\273’ in programinclude/linux/mfd/da9055/reg.h:1: error: stray ‘\277’ in programRemove the BOMs, the rest of the files is plain ASCII anyway.
Output of "file" before:
include/linux/mfd/da9055/core.h: UTF-8 Unicode (with BOM) C program text include/linux/mfd/da9055/pdata.h: UTF-8 Unicode (with BOM) C program text include/linux/mfd/da9055/reg.h: UTF-8 Unicode (with BOM) C program textOutput of "file" after:
include/linux/mfd/da9055/core.h: ASCII C program text include/linux/mfd/da9055/pdata.h: ASCII C program text include/linux/mfd/da9055/reg.h: ASCII C program text
Quoted 6 lines
Signed-off-by Geert Uytterhoeven <[email protected]>--- include/linux/mfd/da9055/core.h | 2 +- include/linux/mfd/da9055/pdata.h | 2 +- include/linux/mfd/da9055/reg.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Applied to my for-next branch, thanks.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/