]> git.baikalelectronics.ru Git - kernel.git/commit
x86/power/64: Use char arrays for asm function names
authorKees Cook <keescook@chromium.org>
Tue, 9 May 2017 21:00:51 +0000 (14:00 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Jun 2017 01:10:12 +0000 (03:10 +0200)
commitb2b3ee7b2f814beb867c99edfbbdcbc82e8a91eb
treea417cfd4da063f8071650c3667b5e901942b37c9
parent9e5f96e5ce55869ecb96f5ab5970aed3080c8ae8
x86/power/64: Use char arrays for asm function names

This switches the hibernate_64.S function names into character arrays
to match other areas of the kernel where this is done (e.g., linker
scripts). Specifically this fixes a compile-time error noticed by the
future CONFIG_FORTIFY_SOURCE routines that complained about PAGE_SIZE
being copied out of the "single byte" core_restore_code variable.

Additionally drops the "acpi_save_state_mem" exern which does not
appear to be used anywhere else in the kernel.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/include/asm/suspend_64.h
arch/x86/power/hibernate_64.c