]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: gcc-specific: Fix possible issue with the strchr function.
authorBob Moore <robert.moore@intel.com>
Fri, 4 Apr 2014 04:37:19 +0000 (12:37 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 20 Apr 2014 20:59:37 +0000 (22:59 +0200)
commitdc3e70d3b07f4d160427d59896af7ecdf65beb37
treeb587bc9dc38c2d0b152eb585e5abd9158836959b
parented98f55a1f7b98ddee7e4e3c4e800881c121cca2
ACPICA: gcc-specific: Fix possible issue with the strchr function.

Some versions of gcc implement strchr via a macro, which either
contains bugs or can provoke a bug in the compiler. This change
fixes a possible compile-time error when using this function.
The problem is usually seen when compiling the getopt.c module.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/platform/acgcc.h