* [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build
@ 2010-08-20 15:38 Mark Brown
2010-08-20 15:39 ` [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices Mark Brown
2010-08-21 1:59 ` [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build Jassi Brar
0 siblings, 2 replies; 8+ messages in thread
From: Mark Brown @ 2010-08-20 15:38 UTC (permalink / raw)
To: linux-arm-kernel
The irqs.h usage here got missed in the Samsung platform reorganisation.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
arch/arm/mach-s3c64xx/dev-spi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-s3c64xx/dev-spi.c b/arch/arm/mach-s3c64xx/dev-spi.c
index a492b98..bfa3ef7 100644
--- a/arch/arm/mach-s3c64xx/dev-spi.c
+++ b/arch/arm/mach-s3c64xx/dev-spi.c
@@ -18,10 +18,10 @@
#include <mach/map.h>
#include <mach/gpio-bank-c.h>
#include <mach/spi-clocks.h>
+#include <mach/irqs.h>
#include <plat/s3c64xx-spi.h>
#include <plat/gpio-cfg.h>
-#include <plat/irqs.h>
static char *spi_src_clks[] = {
[S3C64XX_SPI_SRCCLK_PCLK] = "pclk",
--
1.7.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices
2010-08-20 15:38 [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build Mark Brown
@ 2010-08-20 15:39 ` Mark Brown
2010-08-21 1:59 ` [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build Jassi Brar
1 sibling, 0 replies; 8+ messages in thread
From: Mark Brown @ 2010-08-20 15:39 UTC (permalink / raw)
To: linux-arm-kernel
Avoids build warnings due to the undeclared non-statics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
arch/arm/mach-s3c64xx/dev-spi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-s3c64xx/dev-spi.c b/arch/arm/mach-s3c64xx/dev-spi.c
index bfa3ef7..405e621 100644
--- a/arch/arm/mach-s3c64xx/dev-spi.c
+++ b/arch/arm/mach-s3c64xx/dev-spi.c
@@ -22,6 +22,7 @@
#include <plat/s3c64xx-spi.h>
#include <plat/gpio-cfg.h>
+#include <plat/devs.h>
static char *spi_src_clks[] = {
[S3C64XX_SPI_SRCCLK_PCLK] = "pclk",
--
1.7.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build
2010-08-20 15:38 [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build Mark Brown
2010-08-20 15:39 ` [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices Mark Brown
@ 2010-08-21 1:59 ` Jassi Brar
1 sibling, 0 replies; 8+ messages in thread
From: Jassi Brar @ 2010-08-21 1:59 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, Aug 21, 2010 at 12:38 AM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> The irqs.h usage here got missed in the Samsung platform reorganisation.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> ?arch/arm/mach-s3c64xx/dev-spi.c | ? ?2 +-
> ?1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-s3c64xx/dev-spi.c b/arch/arm/mach-s3c64xx/dev-spi.c
> index a492b98..bfa3ef7 100644
> --- a/arch/arm/mach-s3c64xx/dev-spi.c
> +++ b/arch/arm/mach-s3c64xx/dev-spi.c
> @@ -18,10 +18,10 @@
> ?#include <mach/map.h>
> ?#include <mach/gpio-bank-c.h>
> ?#include <mach/spi-clocks.h>
> +#include <mach/irqs.h>
>
> ?#include <plat/s3c64xx-spi.h>
> ?#include <plat/gpio-cfg.h>
> -#include <plat/irqs.h>
>
> ?static char *spi_src_clks[] = {
> ? ? ? ?[S3C64XX_SPI_SRCCLK_PCLK] = "pclk",
If it's not already in some tree,
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build
@ 2010-09-08 10:25 Mark Brown
2010-09-08 10:25 ` [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices Mark Brown
0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2010-09-08 10:25 UTC (permalink / raw)
To: linux-arm-kernel
The irqs.h usage here got missed in the Samsung platform reorganisation.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
---
arch/arm/mach-s3c64xx/dev-spi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-s3c64xx/dev-spi.c b/arch/arm/mach-s3c64xx/dev-spi.c
index a492b98..bfa3ef7 100644
--- a/arch/arm/mach-s3c64xx/dev-spi.c
+++ b/arch/arm/mach-s3c64xx/dev-spi.c
@@ -18,10 +18,10 @@
#include <mach/map.h>
#include <mach/gpio-bank-c.h>
#include <mach/spi-clocks.h>
+#include <mach/irqs.h>
#include <plat/s3c64xx-spi.h>
#include <plat/gpio-cfg.h>
-#include <plat/irqs.h>
static char *spi_src_clks[] = {
[S3C64XX_SPI_SRCCLK_PCLK] = "pclk",
--
1.7.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices
2010-09-08 10:25 Mark Brown
@ 2010-09-08 10:25 ` Mark Brown
2010-09-08 12:39 ` Kukjin Kim
0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2010-09-08 10:25 UTC (permalink / raw)
To: linux-arm-kernel
Avoids build warnings due to the undeclared non-statics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
arch/arm/mach-s3c64xx/dev-spi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-s3c64xx/dev-spi.c b/arch/arm/mach-s3c64xx/dev-spi.c
index bfa3ef7..405e621 100644
--- a/arch/arm/mach-s3c64xx/dev-spi.c
+++ b/arch/arm/mach-s3c64xx/dev-spi.c
@@ -22,6 +22,7 @@
#include <plat/s3c64xx-spi.h>
#include <plat/gpio-cfg.h>
+#include <plat/devs.h>
static char *spi_src_clks[] = {
[S3C64XX_SPI_SRCCLK_PCLK] = "pclk",
--
1.7.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices
2010-09-08 10:25 ` [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices Mark Brown
@ 2010-09-08 12:39 ` Kukjin Kim
2010-09-08 12:46 ` Mark Brown
0 siblings, 1 reply; 8+ messages in thread
From: Kukjin Kim @ 2010-09-08 12:39 UTC (permalink / raw)
To: linux-arm-kernel
Mark Brown wrote:
>
> Avoids build warnings due to the undeclared non-statics.
>
Could you please let me know what's the build warning?
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> arch/arm/mach-s3c64xx/dev-spi.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-s3c64xx/dev-spi.c
b/arch/arm/mach-s3c64xx/dev-spi.c
> index bfa3ef7..405e621 100644
> --- a/arch/arm/mach-s3c64xx/dev-spi.c
> +++ b/arch/arm/mach-s3c64xx/dev-spi.c
> @@ -22,6 +22,7 @@
>
> #include <plat/s3c64xx-spi.h>
> #include <plat/gpio-cfg.h>
> +#include <plat/devs.h>
>
> static char *spi_src_clks[] = {
> [S3C64XX_SPI_SRCCLK_PCLK] = "pclk",
> --
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices
2010-09-08 12:39 ` Kukjin Kim
@ 2010-09-08 12:46 ` Mark Brown
2010-09-09 11:18 ` Kukjin Kim
0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2010-09-08 12:46 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Sep 08, 2010 at 09:39:21PM +0900, Kukjin Kim wrote:
> Mark Brown wrote:
> > Avoids build warnings due to the undeclared non-statics.
> Could you please let me know what's the build warning?
It'll have been something along the lines of:
's3c64xx_device_iis0' not declared; should it be static?
for each device. Possibly generated by sparse rather than GCC - I
always build with sparse as well.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices
2010-09-08 12:46 ` Mark Brown
@ 2010-09-09 11:18 ` Kukjin Kim
2010-09-09 11:33 ` Mark Brown
0 siblings, 1 reply; 8+ messages in thread
From: Kukjin Kim @ 2010-09-09 11:18 UTC (permalink / raw)
To: linux-arm-kernel
Mark Brown wrote:
>
> On Wed, Sep 08, 2010 at 09:39:21PM +0900, Kukjin Kim wrote:
> > Mark Brown wrote:
>
> > > Avoids build warnings due to the undeclared non-statics.
>
> > Could you please let me know what's the build warning?
>
> It'll have been something along the lines of:
>
> 's3c64xx_device_iis0' not declared; should it be static?
>
> for each device. Possibly generated by sparse rather than GCC - I
> always build with sparse as well.
Hi Mark,
Sorry...I can't understand your comment.
You mean the build warning is 's3c64xx_device_iis0' is not declared..right?
Hmm...the 's3c64xx_device_iis0' used only in a mach-s3c64xx/mach-smartq.c
file.
And defined it as extern struct in a plat-samsung/include/plat/devs.h file.
...So...why need to modify mach-s3c64xx/dev-spi.c for it?
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices
2010-09-09 11:18 ` Kukjin Kim
@ 2010-09-09 11:33 ` Mark Brown
0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2010-09-09 11:33 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Sep 09, 2010 at 08:18:10PM +0900, Kukjin Kim wrote:
> Mark Brown wrote:
> > It'll have been something along the lines of:
> > 's3c64xx_device_iis0' not declared; should it be static?
> > for each device. Possibly generated by sparse rather than GCC - I
> > always build with sparse as well.
> You mean the build warning is 's3c64xx_device_iis0' is not declared..right?
Yes, or words to that effect.
> Hmm...the 's3c64xx_device_iis0' used only in a mach-s3c64xx/mach-smartq.c
> file.
> And defined it as extern struct in a plat-samsung/include/plat/devs.h file.
> ...So...why need to modify mach-s3c64xx/dev-spi.c for it?
The complaint is that the symbol has been defined in the C file with
global scope but there's no declaration for it. This means that either
the symbol is not supposed to be global scope and should be static
instead (which isn't the case here, machines are supposed to be able to
reference it) or that there is nothing checking that the declaration
that other files use to talk about the symbol matches the defintion. If
the users are using a different declaration then the memory layout and
alignment may not be correct for them, causing errors at runtime.
In other words the file has:
struct platform_device s3c64xx_device_iis0 = {
...
};
and the compiler/sparse is expecting to see:
struct platform_device s3c64xx_device_iis0;
before that, which comes from devs.h.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-09-09 11:33 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 15:38 [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build Mark Brown
2010-08-20 15:39 ` [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices Mark Brown
2010-08-21 1:59 ` [PATCH 1/2] ARM: S3C64XX: Fix dev-spi build Jassi Brar
-- strict thread matches above, loose matches on Subject: below --
2010-09-08 10:25 Mark Brown
2010-09-08 10:25 ` [PATCH 2/2] ARM: S3C64XX: Prototype SPI devices Mark Brown
2010-09-08 12:39 ` Kukjin Kim
2010-09-08 12:46 ` Mark Brown
2010-09-09 11:18 ` Kukjin Kim
2010-09-09 11:33 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).