summaryrefslogtreecommitdiff
path: root/include/linux/extable.h
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2016-07-28 06:11:47 +0300
committerRusty Russell <rusty@rustcorp.com.au>2016-08-04 03:46:56 +0300
commit49aadcf1b6f4240751921dad52e86c760d70a5f1 (patch)
treec7a29a82e63947b704b2a648dbdccc3cb240c7ef /include/linux/extable.h
parent444d13ff10fb13bc3e64859c3cf9ce43dcfeb075 (diff)
downloadlinux-49aadcf1b6f4240751921dad52e86c760d70a5f1.tar.xz
extable.h: add stddef.h so "NULL" definition is not implicit
While not an issue now, eventually we will have independent users of the extable.h file and we will stop sourcing it via module.h header. In testing that pending work, with very sparse builds, characteristic of an "allnoconfig" on various architectures, we can sometimes hit an instance where the very basic standard definitions aren't present, resulting in: include/linux/extable.h:26:9: error: 'NULL' undeclared (first use in this function) To be clear, this isn't a regression, since currently extable.h is only used by module.h -- however, we will need this addition present before we start migrating exception table users off module.h and onto extable.h during the next release cycle. Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/extable.h')
-rw-r--r--include/linux/extable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/extable.h b/include/linux/extable.h
index 2c71dccd1bc3..7effea4b257d 100644
--- a/include/linux/extable.h
+++ b/include/linux/extable.h
@@ -1,6 +1,8 @@
#ifndef _LINUX_EXTABLE_H
#define _LINUX_EXTABLE_H
+#include <linux/stddef.h> /* for NULL */
+
struct module;
struct exception_table_entry;