* fix another compilation error in 3.1-rc9
@ 2011-10-10 9:17 Marc Dietrich
2011-10-10 17:45 ` Olof Johansson
0 siblings, 1 reply; 4+ messages in thread
From: Marc Dietrich @ 2011-10-10 9:17 UTC (permalink / raw)
To: Olof Johansson; +Cc: Colin Cross, linux-tegra-u79uwXL29TY76Z2rM5mHXA
Hi Olof,
sorry for being so late, but here is another last minute patch.
Marc
-----
spi/tegra: fix compilation error in spi-tegra.c
This adds the missing #include <linux/module.h> to spi-tegra.c
Signed-off-by: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
diff --git a/drivers/spi/spi-tegra.c b/drivers/spi/spi-tegra.c
index a5a6302..e8cd58f 100644
--- a/drivers/spi/spi-tegra.c
+++ b/drivers/spi/spi-tegra.c
@@ -18,6 +18,7 @@
*/
#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: fix another compilation error in 3.1-rc9
2011-10-10 9:17 fix another compilation error in 3.1-rc9 Marc Dietrich
@ 2011-10-10 17:45 ` Olof Johansson
[not found] ` <CAOesGMgyYebNw1vphaKf8SPLBvtSvwPa0nCLxr81UJ-BtSRhzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Olof Johansson @ 2011-10-10 17:45 UTC (permalink / raw)
To: Marc Dietrich
Cc: Colin Cross, linux-tegra-u79uwXL29TY76Z2rM5mHXA, Grant Likely
[Adding Grant, SPI maintainer]
Hi,
I can't reproduce this problem. CONFIG_SPI doesn't seem to be on for
tegra_defconfig (I'll revisit the defconfig and turn on missing
options for 3.2), but even after I enable it (plus CONFIG_SPI_TEGRA),
I don't see any errors here. I tried static build as well as module.
Can you provide more detail to what you're seeing?
Also, for future patches:
* Please add your free-form comment below the "---" in the commit
message. That way git apply-mbox will just automatically do the right
thing and leave it out from the patch
* If you include the compiler error output it's easier for others to
find the error on the lists and avoid duplicate patch submissions.
Thanks!
-Olof
On Mon, Oct 10, 2011 at 2:17 AM, Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org> wrote:
> Hi Olof,
>
> sorry for being so late, but here is another last minute patch.
>
> Marc
>
> -----
>
> spi/tegra: fix compilation error in spi-tegra.c
>
> This adds the missing #include <linux/module.h> to spi-tegra.c
>
> Signed-off-by: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
>
> diff --git a/drivers/spi/spi-tegra.c b/drivers/spi/spi-tegra.c
> index a5a6302..e8cd58f 100644
> --- a/drivers/spi/spi-tegra.c
> +++ b/drivers/spi/spi-tegra.c
> @@ -18,6 +18,7 @@
> */
>
> #include <linux/kernel.h>
> +#include <linux/module.h>
> #include <linux/init.h>
> #include <linux/err.h>
> #include <linux/platform_device.h>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fix compilation error for linux 3.2
[not found] ` <CAOesGMgyYebNw1vphaKf8SPLBvtSvwPa0nCLxr81UJ-BtSRhzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-10-11 8:28 ` Marc Dietrich
2011-10-13 3:48 ` Olof Johansson
0 siblings, 1 reply; 4+ messages in thread
From: Marc Dietrich @ 2011-10-11 8:28 UTC (permalink / raw)
To: Olof Johansson
Cc: Colin Cross, linux-tegra-u79uwXL29TY76Z2rM5mHXA, Grant Likely
Hi Olof,
Am Montag, 10. Oktober 2011, 10:45:48 schrieb Olof Johansson:
> I can't reproduce this problem. CONFIG_SPI doesn't seem to be on for
> tegra_defconfig (I'll revisit the defconfig and turn on missing
> options for 3.2), but even after I enable it (plus CONFIG_SPI_TEGRA),
> I don't see any errors here. I tried static build as well as module.
> Can you provide more detail to what you're seeing?
ah, sorry, it is needed for linux-next (which also happens to have a 3.1-rc9
version). You can easily check if include/linux/device.h has module.h included or not
(if not, tegra-spi fails to compile). I updated the subject.
> Also, for future patches:
>
> * Please add your free-form comment below the "---" in the commit
> message. That way git apply-mbox will just automatically do the right
> thing and leave it out from the patch
ok, this wasn't obvious to me. I can send a new patch if needed.
> * If you include the compiler error output it's easier for others to
> find the error on the lists and avoid duplicate patch submissions.
here it goes:
CC drivers/spi/spi-tegra.o
drivers/spi/spi-tegra.c:597: error: expected declaration specifiers or ‘...’ before
string constant
drivers/spi/spi-tegra.c:597: warning: data definition has no type or storage class
drivers/spi/spi-tegra.c:597: warning: type defaults to ‘int’ in declaration of
‘MODULE_ALIAS’
drivers/spi/spi-tegra.c:597: warning: function declaration isn’t a prototype
drivers/spi/spi-tegra.c:604: warning: data definition has no type or storage class
drivers/spi/spi-tegra.c:604: warning: type defaults to ‘int’ in declaration of
‘MODULE_DEVICE_TABLE’
drivers/spi/spi-tegra.c:604: warning: parameter names (without types) in function
declaration
drivers/spi/spi-tegra.c:612: error: ‘THIS_MODULE’ undeclared here (not in a function)
drivers/spi/spi-tegra.c:630: error: expected declaration specifiers or ‘...’ before
string constant
drivers/spi/spi-tegra.c:630: warning: data definition has no type or storage class
drivers/spi/spi-tegra.c:630: warning: type defaults to ‘int’ in declaration of
‘MODULE_LICENSE’
drivers/spi/spi-tegra.c:630: warning: function declaration isn’t a prototype
make[2]: [drivers/spi/spi-tegra.o] Error 1
Marc
> On Mon, Oct 10, 2011 at 2:17 AM, Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org> wrote:
> > Hi Olof,
> >
> > sorry for being so late, but here is another last minute patch.
> >
> > Marc
> >
> > -----
> >
> > spi/tegra: fix compilation error in spi-tegra.c
> >
> > This adds the missing #include <linux/module.h> to spi-tegra.c
> >
> > Signed-off-by: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
> >
> > diff --git a/drivers/spi/spi-tegra.c b/drivers/spi/spi-tegra.c
> > index a5a6302..e8cd58f 100644
> > --- a/drivers/spi/spi-tegra.c
> > +++ b/drivers/spi/spi-tegra.c
> > @@ -18,6 +18,7 @@
> > */
> >
> > #include <linux/kernel.h>
> > +#include <linux/module.h>
> > #include <linux/init.h>
> > #include <linux/err.h>
> > #include <linux/platform_device.h>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fix compilation error for linux 3.2
2011-10-11 8:28 ` fix compilation error for linux 3.2 Marc Dietrich
@ 2011-10-13 3:48 ` Olof Johansson
0 siblings, 0 replies; 4+ messages in thread
From: Olof Johansson @ 2011-10-13 3:48 UTC (permalink / raw)
To: Marc Dietrich
Cc: Colin Cross, linux-tegra-u79uwXL29TY76Z2rM5mHXA, Grant Likely
On Tue, Oct 11, 2011 at 10:28:23AM +0200, Marc Dietrich wrote:
> Hi Olof,
>
> Am Montag, 10. Oktober 2011, 10:45:48 schrieb Olof Johansson:
> > I can't reproduce this problem. CONFIG_SPI doesn't seem to be on for
> > tegra_defconfig (I'll revisit the defconfig and turn on missing
> > options for 3.2), but even after I enable it (plus CONFIG_SPI_TEGRA),
> > I don't see any errors here. I tried static build as well as module.
> > Can you provide more detail to what you're seeing?
>
> ah, sorry, it is needed for linux-next (which also happens to have a 3.1-rc9
> version). You can easily check if include/linux/device.h has module.h included or not
> (if not, tegra-spi fails to compile). I updated the subject.
Ok, makes sense. I don't see any relevant direct changes to the driver; it
seems that some of the include files used to pull in module.h and no longer
does.
Grant Likely is SPI maintainer, so it should go to him. Based on the commit
message comments, please resend a new version (and cc linux-tegra please).
> > > Signed-off-by: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
Feel free to add:
Acked-by: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
-Olof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-13 3:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-10 9:17 fix another compilation error in 3.1-rc9 Marc Dietrich
2011-10-10 17:45 ` Olof Johansson
[not found] ` <CAOesGMgyYebNw1vphaKf8SPLBvtSvwPa0nCLxr81UJ-BtSRhzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-11 8:28 ` fix compilation error for linux 3.2 Marc Dietrich
2011-10-13 3:48 ` Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox