]> git.baikalelectronics.ru Git - kernel.git/commit
x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI
authorBehan Webster <behanw@converseincode.com>
Wed, 13 Feb 2013 03:25:57 +0000 (22:25 -0500)
committerBehan Webster <behanw@converseincode.com>
Wed, 9 Apr 2014 20:44:35 +0000 (13:44 -0700)
commit2f954429e509a8366bd6979b6d708ca14e1beea1
tree4fc3e3475e6ed9c701f7db457fd27c8b55e03736
parent278934e4a65ea88fc3b9fbe497393e1f1e79f9cc
x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

The only real change is passing in event_mask to the formerly nested functions.
Otherwise it's just moving around function and macro code.

This is the only place in the Linux kernel where nested functions are still in
use. Nested functions aren't part of the C standards, and complicate the
generated code. Although the Linux Kernel has never set out to be entirely C
standard compliant, it is increasingly compliant to the standard which is
supported by other compilers such as Clang. The LLVMLinux project is working on
being able to compile the Linux kernel with Clang. The use of nested functions
blocks this effort.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/platform/x86/thinkpad_acpi.c