start: avoid generating GSINIT code for the kernel
authorAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 12:06:35 +0000 (13:06 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 12:06:35 +0000 (13:06 +0100)
Kernel/start.c

index 1f4d8bc..f54ee75 100644 (file)
@@ -301,10 +301,10 @@ uint16_t get_root_dev(void)
 }
 #else
 
+static uint8_t first = 1;
+
 inline uint16_t get_root_dev(void)
 {
-       static uint8_t first = 1;
-
        if (first) {
                first = 0;
                return BOOTDEVICE;