* [PATCH] regmap: using module facilities requires module.h
@ 2011-08-15 23:36 Stephen Rothwell
2011-08-15 23:41 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2011-08-15 23:36 UTC (permalink / raw)
To: Mark Brown; +Cc: Linus, LKML, Stephen Warren
Commit b33f9cbd67ba ("regmap: Specify a module license") added a
MODULES_LICENSE to this file without adding an include of module.h.
module.h should ahve been included anyway, since this file has
EXPORT_SYMBOLs as well. With the pending module.h spliit up, this would
probably caused build problems.
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/base/regmap/regmap-spi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
I am sorry that I have not even build tested this patch, but it is pretty
obvious.
diff --git a/drivers/base/regmap/regmap-spi.c b/drivers/base/regmap/regmap-spi.c
index 2bbc659..f839694 100644
--- a/drivers/base/regmap/regmap-spi.c
+++ b/drivers/base/regmap/regmap-spi.c
@@ -13,6 +13,7 @@
#include <linux/regmap.h>
#include <linux/spi/spi.h>
#include <linux/init.h>
+#include <linux/module.h>
static int regmap_spi_write(struct device *dev, const void *data, size_t count)
{
--
1.7.5.4
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] regmap: using module facilities requires module.h
2011-08-15 23:36 [PATCH] regmap: using module facilities requires module.h Stephen Rothwell
@ 2011-08-15 23:41 ` Mark Brown
2011-08-16 8:06 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2011-08-15 23:41 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Linus, LKML, Stephen Warren
On Tue, Aug 16, 2011 at 09:36:06AM +1000, Stephen Rothwell wrote:
> Commit b33f9cbd67ba ("regmap: Specify a module license") added a
> MODULES_LICENSE to this file without adding an include of module.h.
> module.h should ahve been included anyway, since this file has
> EXPORT_SYMBOLs as well. With the pending module.h spliit up, this would
> probably caused build problems.
Applied with a few typo fixes to the commit log, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] regmap: using module facilities requires module.h
2011-08-15 23:41 ` Mark Brown
@ 2011-08-16 8:06 ` Mark Brown
0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2011-08-16 8:06 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Linus, LKML, Stephen Warren
On Tue, Aug 16, 2011 at 08:41:06AM +0900, Mark Brown wrote:
> On Tue, Aug 16, 2011 at 09:36:06AM +1000, Stephen Rothwell wrote:
> > Commit b33f9cbd67ba ("regmap: Specify a module license") added a
> > MODULES_LICENSE to this file without adding an include of module.h.
> > module.h should ahve been included anyway, since this file has
> > EXPORT_SYMBOLs as well. With the pending module.h spliit up, this would
> > probably caused build problems.
> Applied with a few typo fixes to the commit log, thanks.
...and backed out again as Linus applied directly anyway (with the same
typo fixes).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-16 8:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-15 23:36 [PATCH] regmap: using module facilities requires module.h Stephen Rothwell
2011-08-15 23:41 ` Mark Brown
2011-08-16 8:06 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox