grub/include/grub/i386
Daniel Kiper acc726f812 x86/msr: Fix build with older GCC versions
Some older GCC versions produce following error when x86 MSR modules are build:

  In file included from commands/i386/rdmsr.c:29:0:
  ../include/grub/i386/rdmsr.h:27:29: error: no previous prototype for ‘grub_msr_read’ [-Werror=missing-prototypes]
   extern inline grub_uint64_t grub_msr_read (grub_uint32_t msr_id)
                               ^
  cc1: all warnings being treated as errors

This happens due to lack of support for a such usage of extern keyword
in older GCCs. Additionally, this usage is not consistent with the rest
of codebase. So, replace it with static keyword.

Additionally, fix incorrect coding style.

Reported-by: Eric Snowberg <eric.snowberg@oracle.com>
Reported-by: adrian15 <adrian15sgd@gmail.com>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Reviewed-by: Eric Snowberg <eric.snowberg@oracle.com>
Tested-by: adrian15 <adrian15sgd@gmail.com>
2019-04-23 11:04:07 +02:00
..
coreboot xen: Add basic hooks for PVH in current code 2018-12-12 12:03:27 +01:00
efi xen: Add basic hooks for PVH in current code 2018-12-12 12:03:27 +01:00
ieee1275 xen: Add basic hooks for PVH in current code 2018-12-12 12:03:27 +01:00
multiboot merge mainline into intwrap 2010-08-29 23:21:21 +02:00
pc xen: Prepare common code for Xen PVH support 2018-12-12 12:03:27 +01:00
qemu Move common BIOS/coreboot memory map declarations to 2013-11-23 12:39:21 +01:00
xen xen: Add basic hooks for PVH in current code 2018-12-12 12:03:27 +01:00
xen_pvh xen: Add basic hooks for PVH in current code 2018-12-12 12:03:27 +01:00
at_keyboard.h merge mainline into mips 2010-01-10 13:34:48 +01:00
bsd.h Add gcc_struct to all packed structures when compiling with mingw. 2013-12-15 14:14:30 +01:00
cmos.h Implement new command cmosdump. 2013-02-24 19:44:17 +01:00
cpuid.h Support cpuid --pae. 2013-12-17 23:40:49 +01:00
efiemu.h remove all trailing whitespace 2009-06-10 21:04:23 +00:00
floppy.h Inline grub_stop_floppy 2010-04-10 19:59:22 +02:00
freebsd_linker.h 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com> 2010-01-18 17:40:23 +01:00
freebsd_reboot.h 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com> 2010-01-18 17:40:23 +01:00
gdb.h Add gcc_struct to all packed structures when compiling with mingw. 2013-12-15 14:14:30 +01:00
io.h asm: Replace "__asm__ __volatile__" with "asm volatile" 2019-03-12 20:04:07 +01:00
linux.h loader/i386/linux: Calculate the setup_header length 2019-04-02 13:09:54 +02:00
macho.h * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
memory.h xen: Prepare common code for Xen PVH support 2018-12-12 12:03:27 +01:00
memory_raw.h Move common BIOS/coreboot memory map declarations to 2013-11-23 12:39:21 +01:00
multiboot.h Fix compilation for x86_64-efi. 2017-09-07 13:55:22 +02:00
netbsd_bootinfo.h * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to 2014-06-22 01:35:52 +02:00
netbsd_reboot.h 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com> 2010-01-18 17:40:23 +01:00
openbsd_bootarg.h * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields. 2014-02-28 10:50:05 +01:00
openbsd_reboot.h 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com> 2010-01-18 17:40:23 +01:00
pci.h On i386-ieee1275 we run in paged mode. So we need to explicitly map 2013-11-18 04:32:33 +01:00
pit.h Avoid costly 64-bit division in grub_get_time_ms on most platforms. 2013-03-10 17:45:38 +01:00
pmtimer.h Split pmtimer wait and tsc measurement from pmtimer tsc calibration. 2016-02-12 11:40:51 +01:00
rdmsr.h x86/msr: Fix build with older GCC versions 2019-04-23 11:04:07 +02:00
reboot.h Move grub_reboot out of the kernel. 2011-10-19 16:53:18 +02:00
relocator.h i386/relocator: Add grub_relocator64_efi relocator 2016-10-27 15:53:43 +02:00
relocator_private.h * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM 2012-02-07 22:31:14 +01:00
setjmp.h * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for 2013-10-18 16:38:36 +02:00
time.h asm: Replace "__asm__ __volatile__" with "asm volatile" 2019-03-12 20:04:07 +01:00
tsc.h asm: Replace "__asm__ __volatile__" with "asm volatile" 2019-03-12 20:04:07 +01:00
types.h Fix video on platforms where unaligned access is forbidden. 2011-12-13 20:07:33 +01:00
wrmsr.h x86/msr: Fix build with older GCC versions 2019-04-23 11:04:07 +02:00
xnu.h xnu: supply ramsize to the kernel. 2016-02-11 11:58:28 +01:00