diff mbox

efi: bgrt: add missing 'return 0' to acpi_parse_bgrt() non-ACPI stub

Message ID 1487266697-1551-1-git-send-email-ard.biesheuvel@linaro.org
State New
Headers show

Commit Message

Ard Biesheuvel Feb. 16, 2017, 5:38 p.m. UTC
The prototype of acpi_parse_bgrt() is to return an int, so this applies
equally to the stub that is emitted when CONFIG_ACPI is not set. So add
the missing return statement there.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 include/linux/efi-bgrt.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/efi-bgrt.h b/include/linux/efi-bgrt.h
index 33640cd0e440..e6f624b53c3d 100644
--- a/include/linux/efi-bgrt.h
+++ b/include/linux/efi-bgrt.h
@@ -15,7 +15,10 @@  extern struct acpi_table_bgrt bgrt_tab;
 #else /* !CONFIG_ACPI_BGRT */
 
 static inline void efi_bgrt_init(struct acpi_table_header *table) {}
-static inline int __init acpi_parse_bgrt(struct acpi_table_header *table) {}
+static inline int __init acpi_parse_bgrt(struct acpi_table_header *table)
+{
+	return 0;
+}
 
 #endif /* !CONFIG_ACPI_BGRT */