* [PATCH] extable.h: add stddef.h so "NULL" definition is not implicit
@ 2016-07-28 3:11 Paul Gortmaker
2016-07-28 5:54 ` Rusty Russell
0 siblings, 1 reply; 2+ messages in thread
From: Paul Gortmaker @ 2016-07-28 3:11 UTC (permalink / raw)
To: linux-kernel; +Cc: Paul Gortmaker, Rusty Russell
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>
---
[Was not expecting extable.h to be in 4.8 content, but since it is, it
might as well have this one line fixup to make it ready for 4.9 ; feel
free to squash this into the original extable.h creation if rebasing.]
include/linux/extable.h | 2 ++
1 file changed, 2 insertions(+)
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;
--
2.8.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] extable.h: add stddef.h so "NULL" definition is not implicit
2016-07-28 3:11 [PATCH] extable.h: add stddef.h so "NULL" definition is not implicit Paul Gortmaker
@ 2016-07-28 5:54 ` Rusty Russell
0 siblings, 0 replies; 2+ messages in thread
From: Rusty Russell @ 2016-07-28 5:54 UTC (permalink / raw)
To: Paul Gortmaker, linux-kernel; +Cc: Paul Gortmaker
Paul Gortmaker <paul.gortmaker@windriver.com> writes:
> 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>
> ---
>
> [Was not expecting extable.h to be in 4.8 content, but since it is, it
> might as well have this one line fixup to make it ready for 4.9 ; feel
> free to squash this into the original extable.h creation if rebasing.]
Applied. I prefer not to rebase published trees, and it's not like it's
going to break anyone's bisect.
Thanks,
Rusty.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-28 6:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 3:11 [PATCH] extable.h: add stddef.h so "NULL" definition is not implicit Paul Gortmaker
2016-07-28 5:54 ` Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox