linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: sparc64 build failure
@ 2008-07-09 11:15 Stephen Rothwell
  2008-07-09 21:23 ` Sam Ravnborg
  0 siblings, 1 reply; 15+ messages in thread
From: Stephen Rothwell @ 2008-07-09 11:15 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-next, David Miller

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

Hi Sam,

Today's linux-next build (sparc64 allmodconfig) failed like this:

usr/include/asm/auxvec.h:1: included file 'asm-sparc/auxvec.h' is not exported
usr/include/asm/bpp.h:1: included file 'asm-sparc/bpp.h' is not exported
usr/include/asm/byteorder.h:1: included file 'asm-sparc/byteorder.h' is not exported
usr/include/asm/errno.h:1: included file 'asm-sparc/errno.h' is not exported
usr/include/asm/openpromio.h:1: included file 'asm-sparc/openpromio.h' is not exported
usr/include/asm/perfctr.h:1: included file 'asm-sparc/perfctr.h' is not exported

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* linux-next: sparc64 build failure
@ 2008-07-08  9:08 Stephen Rothwell
  2008-07-08  9:13 ` David Miller
  0 siblings, 1 reply; 15+ messages in thread
From: Stephen Rothwell @ 2008-07-08  9:08 UTC (permalink / raw)
  To: David Miller; +Cc: linux-next, Andi Kleen, Greg KH

Hi David,

Today's linux-next build (sparc64 defconfig) failed like this:

arch/sparc64/kernel/sysfs.c:160: warning: initialization from incompatible pointer type
arch/sparc64/kernel/sysfs.c:160: warning: initialization from incompatible pointer type
arch/sparc64/kernel/sysfs.c:205: warning: initialization from incompatible pointer type
arch/sparc64/kernel/sysfs.c:206: warning: initialization from incompatible pointer type
arch/sparc64/kernel/sysfs.c:207: warning: initialization from incompatible pointer type
arch/sparc64/kernel/sysfs.c:208: warning: initialization from incompatible pointer type
arch/sparc64/kernel/sysfs.c:209: warning: initialization from incompatible pointer type
arch/sparc64/kernel/sysfs.c:210: warning: initialization from incompatible pointer type
arch/sparc64/kernel/sysfs.c:211: warning: initialization from incompatible pointer type
make[2]: *** [arch/sparc64/kernel/sysfs.o] Error 1

Caused by commit 5b01a6a61c48d8e6ab4679d6e6208f5962d07b85 ("sysdev: Pass
the attribute to the low level sysdev show/store function") from the
driver-core tree.  I have applied the patch below.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

>From 2b3ba8b78163527dade51c5c92ce52526abbb198 Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 8 Jul 2008 19:03:49 +1000
Subject: [PATCH] sparc64: sysdev API change fallout

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/sparc64/kernel/sysfs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/sparc64/kernel/sysfs.c b/arch/sparc64/kernel/sysfs.c
index b057bc1..47478ce 100644
--- a/arch/sparc64/kernel/sysfs.c
+++ b/arch/sparc64/kernel/sysfs.c
@@ -136,13 +136,13 @@ static unsigned long write_mmustat_enable(unsigned long val)
 	return sun4v_mmustat_conf(ra, &orig_ra);
 }
 
-static ssize_t show_mmustat_enable(struct sys_device *s, char *buf)
+static ssize_t show_mmustat_enable(struct sys_device *s, struct sysdev_attribute *attr, char *buf)
 {
 	unsigned long val = run_on_cpu(s->id, read_mmustat_enable, 0);
 	return sprintf(buf, "%lx\n", val);
 }
 
-static ssize_t store_mmustat_enable(struct sys_device *s, const char *buf, size_t count)
+static ssize_t store_mmustat_enable(struct sys_device *s, struct sysdev_attribute *attr, const char *buf, size_t count)
 {
 	unsigned long val, err;
 	int ret = sscanf(buf, "%ld", &val);
@@ -180,14 +180,14 @@ static void unregister_mmu_stats(struct sys_device *s)
 #endif
 
 #define SHOW_CPUDATA_ULONG_NAME(NAME, MEMBER) \
-static ssize_t show_##NAME(struct sys_device *dev, char *buf) \
+static ssize_t show_##NAME(struct sys_device *dev, struct sysdev_attribute *attr, char *buf) \
 { \
 	cpuinfo_sparc *c = &cpu_data(dev->id); \
 	return sprintf(buf, "%lu\n", c->MEMBER); \
 }
 
 #define SHOW_CPUDATA_UINT_NAME(NAME, MEMBER) \
-static ssize_t show_##NAME(struct sys_device *dev, char *buf) \
+static ssize_t show_##NAME(struct sys_device *dev, struct sysdev_attribute *attr, char *buf) \
 { \
 	cpuinfo_sparc *c = &cpu_data(dev->id); \
 	return sprintf(buf, "%u\n", c->MEMBER); \
-- 
1.5.6.2

^ permalink raw reply related	[flat|nested] 15+ messages in thread
* linux-next: sparc64 build failure
@ 2008-06-20  0:43 Stephen Rothwell
  2008-06-20  0:55 ` David Miller
  0 siblings, 1 reply; 15+ messages in thread
From: Stephen Rothwell @ 2008-06-20  0:43 UTC (permalink / raw)
  To: David Miller; +Cc: linux-next, Sam Ravnborg

[-- Attachment #1: Type: text/plain, Size: 2789 bytes --]

Hi Dave,

Yesterday's linux-next build (sparc64 allmodconfig) failed like this:

usr/include/asm/asi.h:1: included file 'asm-sparc/asi.h' is not exported
usr/include/asm/auxvec.h:1: included file 'asm-sparc/auxvec.h' is not exported
usr/include/asm/bpp.h:1: included file 'asm-sparc/bpp.h' is not exported
usr/include/asm/byteorder.h:1: included file 'asm-sparc/byteorder.h' is not exported
usr/include/asm/display7seg.h:1: included file 'asm-sparc/display7seg.h' is not exported
usr/include/asm/envctrl.h:1: included file 'asm-sparc/envctrl.h' is not exported
usr/include/asm/errno.h:1: included file 'asm-sparc/errno.h' is not exported
usr/include/asm/fbio.h:1: included file 'asm-sparc/fbio.h' is not exported
usr/include/asm/fcntl.h:1: included file 'asm-sparc/fcntl.h' is not exported
usr/include/asm/ioctl.h:1: included file 'asm-sparc/ioctl.h' is not exported
usr/include/asm/ioctls.h:1: included file 'asm-sparc/ioctls.h' is not exported
usr/include/asm/mman.h:1: included file 'asm-sparc/mman.h' is not exported
usr/include/asm/msgbuf.h:1: included file 'asm-sparc/msgbuf.h' is not exported
usr/include/asm/openpromio.h:1: included file 'asm-sparc/openpromio.h' is not exported
usr/include/asm/param.h:1: included file 'asm-sparc/param.h' is not exported
usr/include/asm/perfctr.h:1: included file 'asm-sparc/perfctr.h' is not exported
usr/include/asm/poll.h:1: included file 'asm-sparc/poll.h' is not exported
usr/include/asm/psrcompat.h:1: included file 'asm-sparc/psrcompat.h' is not exported
usr/include/asm/pstate.h:1: included file 'asm-sparc/pstate.h' is not exported
usr/include/asm/resource.h:1: included file 'asm-sparc/resource.h' is not exported
usr/include/asm/sembuf.h:1: included file 'asm-sparc/sembuf.h' is not exported
usr/include/asm/setup.h:1: included file 'asm-sparc/setup.h' is not exported
usr/include/asm/shmbuf.h:1: included file 'asm-sparc/shmbuf.h' is not exported
usr/include/asm/socket.h:1: included file 'asm-sparc/socket.h' is not exported
usr/include/asm/sockios.h:1: included file 'asm-sparc/sockios.h' is not exported
usr/include/asm/termbits.h:1: included file 'asm-sparc/termbits.h' is not exported
usr/include/asm/termios.h:1: included file 'asm-sparc/termios.h' is not exported
usr/include/asm/types.h:1: included file 'asm-sparc/types.h' is not exported
usr/include/asm/uctx.h:1: included file 'asm-sparc/uctx.h' is not exported
usr/include/asm/utrap.h:1: included file 'asm-sparc/utrap.h' is not exported
usr/include/asm/watchdog.h:1: included file 'asm-sparc/watchdog.h' is not exported
make[3]: *** [usr/include/asm/.check] Error 1

See http://kisskb.ellerman.id.au/kisskb/buildresult/32521/
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* linux-next: sparc64 build failure
@ 2008-05-29  7:53 Stephen Rothwell
  2008-05-29 22:01 ` Greg KH
  0 siblings, 1 reply; 15+ messages in thread
From: Stephen Rothwell @ 2008-05-29  7:53 UTC (permalink / raw)
  To: David Miller, Greg KH; +Cc: linux-next, Kay Sievers

[-- Attachment #1: Type: text/plain, Size: 1705 bytes --]

Hi Dave, Greg,

Today's build of linux-next (sparc64 defconfig) failed like this:

arch/sparc64/kernel/pci.c: In function `of_create_pci_dev':
arch/sparc64/kernel/pci.c:412: warning: passing arg 1 of `sprintf' discards qualifiers from pointer target type
make[2]: *** [arch/sparc64/kernel/pci.o] Error 1

This was caused by commit bd24b944eb93549b1ca5becbf27c7373504f7eed
("driver-core: prepare for removal of 20 char limit from struct device")
from the driver-core tree which made pci_name() return a "const char *".

I have applied the following patch.

Greg, it would really help if a version of dev_set_name() was created
early ... like in Linus' tree now?

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

>From eee5cd99ea3b4e93f41e7f6486d799d198c87750 Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 29 May 2008 17:51:05 +1000
Subject: [PATCH] sparc: fallout from pci_name() constifying

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/sparc64/kernel/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c
index 112b09f..5509619 100644
--- a/arch/sparc64/kernel/pci.c
+++ b/arch/sparc64/kernel/pci.c
@@ -408,7 +408,7 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
 	dev->class = class >> 8;
 	dev->revision = class & 0xff;
 
-	sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus),
+	dev_set_name(&dev->dev, "%04x:%02x:%02x.%d", pci_domain_nr(bus),
 		dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn));
 
 	if (ofpci_verbose)
-- 
1.5.5.2


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-07-09 21:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-09 11:15 linux-next: sparc64 build failure Stephen Rothwell
2008-07-09 21:23 ` Sam Ravnborg
  -- strict thread matches above, loose matches on Subject: below --
2008-07-08  9:08 Stephen Rothwell
2008-07-08  9:13 ` David Miller
2008-06-20  0:43 Stephen Rothwell
2008-06-20  0:55 ` David Miller
2008-06-20  1:11   ` Stephen Rothwell
2008-06-20  7:34   ` Sam Ravnborg
2008-06-20  7:53     ` Stephen Rothwell
2008-06-20  8:34       ` Sam Ravnborg
2008-06-21  0:02         ` Stephen Rothwell
2008-05-29  7:53 Stephen Rothwell
2008-05-29 22:01 ` Greg KH
2008-05-30  5:38   ` Stephen Rothwell
2008-05-30 14:10     ` Greg KH

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).