* [PATCH] efi: bgrt: add missing 'return 0' to acpi_parse_bgrt() non-ACPI stub
@ 2017-02-16 17:38 Ard Biesheuvel
0 siblings, 0 replies; only message in thread
From: Ard Biesheuvel @ 2017-02-16 17:38 UTC (permalink / raw)
To: linux-efi-u79uwXL29TY76Z2rM5mHXA
Cc: matt-mF/unelCI9GS6iBeEJttW/XRex20P6io,
bhsharma-H+wXaHxf7aLQT0dZR+AlfA, Ard Biesheuvel
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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
include/linux/efi-bgrt.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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 */
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-16 17:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-16 17:38 [PATCH] efi: bgrt: add missing 'return 0' to acpi_parse_bgrt() non-ACPI stub Ard Biesheuvel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).