]> git.baikalelectronics.ru Git - kernel.git/commit
extable.h: add stddef.h so "NULL" definition is not implicit
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 28 Jul 2016 03:11:47 +0000 (23:11 -0400)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 4 Aug 2016 00:46:56 +0000 (10:16 +0930)
commit96decbcc969cd6818a4821de79009b920080630f
treec7a29a82e63947b704b2a648dbdccc3cb240c7ef
parent41d7d72d397e58f5bf777891555ea3b636168fbf
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>
include/linux/extable.h