Reduce warnings/errors in libpayload when using picky compiler options
[coreboot.git] / payloads / libpayload / arch / i386 / multiboot.c
index 82736b14fea866d2aabe40f259c32924d19cabe0..fa0c576dc91a0719c2ff209180cc82bad2e97234 100644 (file)
@@ -45,7 +45,7 @@ static void mb_parse_mmap(struct multiboot_header *table,
        while(ptr < (start + table->mmap_length)) {
                struct multiboot_mmap *mmap = (struct multiboot_mmap *) ptr;
 
-#if MEMMAP_RAM_ONLY
+#ifdef CONFIG_MEMMAP_RAM_ONLY
                /* 1 == normal RAM.  Ignore everything else for now */
 
                if (mmap->type == 1) {
@@ -56,7 +56,7 @@ static void mb_parse_mmap(struct multiboot_header *table,
 
                        if (++info->n_memranges == SYSINFO_MAX_MEM_RANGES)
                                return;
-#if MEMMAP_RAM_ONLY
+#ifdef CONFIG_MEMMAP_RAM_ONLY
                }
 #endif