linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 00/14] M68k patches for 2.6.25
@ 2008-01-27 12:32 Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 01/14] m68k: Use cc-cross-prefix Geert Uytterhoeven
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel

	Hi Linus, Andrew,

Here are the m68k patches I had queued up for 2.6.25:
  [1] m68k: Use cc-cross-prefix
  [2] m68k: ARRAY_SIZE() cleanup
  [3] dio: ARRAY_SIZE() cleanup
  [4] m68k: Balance ioremap and iounmap in m68k/atari/hades-pci.c
  [5] nubus: kill drivers/nubus/nubus_syms.c
  [6] m68k: kill arch/m68k/mac/mac_ksyms.c
  [7] m68k: kill arch/m68k/hp300/ksyms.c
  [8] m68k: kill arch/m68k/amiga/amiga_ksyms.c
  [9] m68k: kill arch/m68k/atari/atari_ksyms.c
  [10] m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c
  [11] mac68k: macii adb comment correction
  [12] mac68k: remove dead code
  [13] mac68k: add nubus card definitions and a typo fix
  [14] mac68k: remove dead MAC_ADBKEYCODES

Please apply, thanks!

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 01/14] m68k: Use cc-cross-prefix
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 02/14] m68k: ARRAY_SIZE() cleanup Geert Uytterhoeven
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Sam Ravnborg

[-- Attachment #1: m68k-cc-cross-prefix.diff --]
[-- Type: text/plain, Size: 1183 bytes --]

From: Geert Uytterhoeven <geert@linux-m68k.org>

m68k: Use cc-cross-prefix

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
---
 arch/m68k/Makefile |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

--- a/arch/m68k/Makefile
+++ b/arch/m68k/Makefile
@@ -13,16 +13,15 @@
 # Copyright (C) 1994 by Hamish Macdonald
 #
 
-# test for cross compiling
-COMPILE_ARCH = $(shell uname -m)
-
 # override top level makefile
 AS += -m68020
 LDFLAGS := -m m68kelf
 LDFLAGS_MODULE += -T $(srctree)/arch/m68k/kernel/module.lds
-ifneq ($(COMPILE_ARCH),$(ARCH))
-	# prefix for cross-compiling binaries
-	CROSS_COMPILE = m68k-linux-gnu-
+ifneq ($(SUBARCH),$(ARCH))
+	ifeq ($(CROSS_COMPILE),)
+		CROSS_COMPILE := $(call cc-cross-prefix, \
+			m68k-linux-gnu- m68k-linux- m68k-unknown-linux-gnu-)
+	endif
 endif
 
 ifdef CONFIG_SUN3

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 02/14] m68k: ARRAY_SIZE() cleanup
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 01/14] m68k: Use cc-cross-prefix Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 03/14] dio: " Geert Uytterhoeven
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton
  Cc: linux-m68k, linux-kernel, Alejandro Martinez Ruiz

[-- Attachment #1: m68k-ARRAY_SIZE-cleanup.diff --]
[-- Type: text/plain, Size: 970 bytes --]

From: Alejandro Martinez Ruiz <alex@flawedcode.org>

m68k: ARRAY_SIZE() cleanup

Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/amiga/amisound.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/m68k/amiga/amisound.c
+++ b/arch/m68k/amiga/amisound.c
@@ -21,7 +21,7 @@ static const signed char sine_data[] = {
 	0,  39,  75,  103,  121,  127,  121,  103,  75,  39,
 	0, -39, -75, -103, -121, -127, -121, -103, -75, -39
 };
-#define DATA_SIZE	(sizeof(sine_data)/sizeof(sine_data[0]))
+#define DATA_SIZE	ARRAY_SIZE(sine_data)
 
 #define custom amiga_custom
 

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 03/14] dio: ARRAY_SIZE() cleanup
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 01/14] m68k: Use cc-cross-prefix Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 02/14] m68k: ARRAY_SIZE() cleanup Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 04/14] m68k: Balance ioremap and iounmap in m68k/atari/hades-pci.c Geert Uytterhoeven
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton
  Cc: linux-m68k, linux-kernel, Alejandro Martinez Ruiz

[-- Attachment #1: dio-ARRAY_SIZE-cleanup.diff --]
[-- Type: text/plain, Size: 1315 bytes --]

From: Alejandro Martinez Ruiz <alex@flawedcode.org>

dio: ARRAY_SIZE() cleanup

[Geert: eliminate NUMNAMES, as suggested by Richard Knutsson ]

Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/dio/dio.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/drivers/dio/dio.c
+++ b/drivers/dio/dio.c
@@ -88,8 +88,6 @@ static struct dioname names[] = 
 #undef DIONAME
 #undef DIOFBNAME
 
-#define NUMNAMES (sizeof(names) / sizeof(struct dioname))
-
 static const char *unknowndioname 
         = "unknown DIO board -- please email <linux-m68k@lists.linux-m68k.org>!";
 
@@ -97,7 +95,7 @@ static const char *dio_getname(int id)
 {
         /* return pointer to a constant string describing the board with given ID */
 	unsigned int i;
-        for (i = 0; i < NUMNAMES; i++)
+        for (i = 0; i < ARRAY_SIZE(names); i++)
                 if (names[i].id == id) 
                         return names[i].name;
 

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 04/14] m68k: Balance ioremap and iounmap in m68k/atari/hades-pci.c
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (2 preceding siblings ...)
  2008-01-27 12:32 ` [patch 03/14] dio: " Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 05/14] nubus: kill drivers/nubus/nubus_syms.c Geert Uytterhoeven
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Roel Kluin

[-- Attachment #1: atari-hades-pci-balance-iomap-and-iounmap.diff --]
[-- Type: text/plain, Size: 2949 bytes --]

From: Roel Kluin <12o3l@tiscali.nl>

m68k: Balance ioremap and iounmap in m68k/atari/hades-pci.c

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/atari/hades-pci.c |   56 +++++++++++++++++++++-----------------------
 1 file changed, 27 insertions(+), 29 deletions(-)

--- a/arch/m68k/atari/hades-pci.c
+++ b/arch/m68k/atari/hades-pci.c
@@ -376,8 +376,8 @@ struct pci_bus_info * __init init_hades_
 	 */
 
 	bus = kzalloc(sizeof(struct pci_bus_info), GFP_KERNEL);
-	if (!bus)
-		return NULL;
+	if (unlikely(!bus))
+		goto iounmap_base_virt;
 
 	/*
 	 * Claim resources. The m68k has no separate I/O space, both
@@ -385,43 +385,25 @@ struct pci_bus_info * __init init_hades_
 	 * the I/O resources are requested in memory space as well.
 	 */
 
-	if (request_resource(&iomem_resource, &config_space) != 0)
-	{
-		kfree(bus);
-		return NULL;
-	}
-
-	if (request_resource(&iomem_resource, &io_space) != 0)
-	{
-		release_resource(&config_space);
-		kfree(bus);
-		return NULL;
-	}
+	if (unlikely(request_resource(&iomem_resource, &config_space) != 0))
+		goto free_bus;
+
+	if (unlikely(request_resource(&iomem_resource, &io_space) != 0))
+		goto release_config_space;
 
 	bus->mem_space.start = HADES_MEM_BASE;
 	bus->mem_space.end = HADES_MEM_BASE + HADES_MEM_SIZE - 1;
 	bus->mem_space.name = pci_mem_name;
 #if 1
-	if (request_resource(&iomem_resource, &bus->mem_space) != 0)
-	{
-		release_resource(&io_space);
-		release_resource(&config_space);
-		kfree(bus);
-		return NULL;
-	}
+	if (unlikely(request_resource(&iomem_resource, &bus->mem_space) != 0))
+		goto release_io_space;
 #endif
 	bus->io_space.start = pci_io_base_virt;
 	bus->io_space.end = pci_io_base_virt + HADES_VIRT_IO_SIZE - 1;
 	bus->io_space.name = pci_io_name;
 #if 1
-	if (request_resource(&ioport_resource, &bus->io_space) != 0)
-	{
-		release_resource(&bus->mem_space);
-		release_resource(&io_space);
-		release_resource(&config_space);
-		kfree(bus);
-		return NULL;
-	}
+	if (unlikely(request_resource(&ioport_resource, &bus->io_space) != 0))
+		goto release_bus_mem_space;
 #endif
 	/*
 	 * Set hardware dependent functions.
@@ -438,5 +420,21 @@ struct pci_bus_info * __init init_hades_
 	tt_mfp.active_edge &= ~0x27;
 
 	return bus;
+
+release_bus_mem_space:
+	release_resource(&bus->mem_space);
+release_io_space:
+	release_resource(&io_space);
+release_config_space:
+	release_resource(&config_space);
+free_bus:
+	kfree(bus);
+iounmap_base_virt:
+	iounmap((void *)pci_io_base_virt);
+
+	for (i = 0; i < N_SLOTS; i++)
+		iounmap((void *)pci_conf_base_virt[i]);
+
+	return NULL;
 }
 #endif

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 05/14] nubus: kill drivers/nubus/nubus_syms.c
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (3 preceding siblings ...)
  2008-01-27 12:32 ` [patch 04/14] m68k: Balance ioremap and iounmap in m68k/atari/hades-pci.c Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 06/14] m68k: kill arch/m68k/mac/mac_ksyms.c Geert Uytterhoeven
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Adrian Bunk

[-- Attachment #1: nubus-kill-drivers-nubus-nubus_syms-c.diff --]
[-- Type: text/plain, Size: 5044 bytes --]

From: Adrian Bunk <bunk@kernel.org>

nubus: kill drivers/nubus/nubus_syms.c

EXPORT_SYMBOL's belong to the actual code.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/nubus/Makefile     |    1 -
 drivers/nubus/nubus.c      |   13 +++++++++++++
 drivers/nubus/nubus_syms.c |   28 ----------------------------
 drivers/nubus/proc.c       |    4 ++++
 4 files changed, 17 insertions(+), 29 deletions(-)

--- a/drivers/nubus/Makefile
+++ b/drivers/nubus/Makefile
@@ -4,5 +4,4 @@
 
 obj-y   := nubus.o
 
-obj-$(CONFIG_MODULES) += nubus_syms.o 
 obj-$(CONFIG_PROC_FS) += proc.o
--- a/drivers/nubus/nubus.c
+++ b/drivers/nubus/nubus.c
@@ -14,6 +14,7 @@
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/module.h>
 #include <asm/setup.h>
 #include <asm/system.h>
 #include <asm/page.h>
@@ -186,6 +187,7 @@ void nubus_get_rsrc_mem(void *dest, cons
 		len--;
 	}
 }
+EXPORT_SYMBOL(nubus_get_rsrc_mem);
 
 void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent,
 			int len)
@@ -200,6 +202,7 @@ void nubus_get_rsrc_str(void *dest, cons
 		len--;
 	}
 }
+EXPORT_SYMBOL(nubus_get_rsrc_str);
 
 int nubus_get_root_dir(const struct nubus_board* board,
 		       struct nubus_dir* dir)
@@ -209,6 +212,7 @@ int nubus_get_root_dir(const struct nubu
 	dir->mask = board->lanes;
 	return 0;
 }
+EXPORT_SYMBOL(nubus_get_root_dir);
 
 /* This is a slyly renamed version of the above */
 int nubus_get_func_dir(const struct nubus_dev* dev,
@@ -219,6 +223,7 @@ int nubus_get_func_dir(const struct nubu
 	dir->mask = dev->board->lanes;
 	return 0;
 }
+EXPORT_SYMBOL(nubus_get_func_dir);
 
 int nubus_get_board_dir(const struct nubus_board* board,
 			struct nubus_dir* dir)
@@ -237,6 +242,7 @@ int nubus_get_board_dir(const struct nub
 		return -1;
 	return 0;
 }
+EXPORT_SYMBOL(nubus_get_board_dir);
 
 int nubus_get_subdir(const struct nubus_dirent *ent,
 		     struct nubus_dir *dir)
@@ -246,6 +252,7 @@ int nubus_get_subdir(const struct nubus_
 	dir->mask = ent->mask;
 	return 0;
 }
+EXPORT_SYMBOL(nubus_get_subdir);
 
 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent)
 {
@@ -274,12 +281,14 @@ int nubus_readdir(struct nubus_dir *nd, 
 	ent->mask  = nd->mask;
 	return 0;
 }
+EXPORT_SYMBOL(nubus_readdir);
 
 int nubus_rewinddir(struct nubus_dir* dir)
 {
 	dir->ptr = dir->base;
 	return 0;
 }
+EXPORT_SYMBOL(nubus_rewinddir);
 
 /* Driver interface functions, more or less like in pci.c */
 
@@ -303,6 +312,7 @@ nubus_find_device(unsigned short categor
 	}
 	return NULL;
 }
+EXPORT_SYMBOL(nubus_find_device);
 
 struct nubus_dev*
 nubus_find_type(unsigned short category,
@@ -320,6 +330,7 @@ nubus_find_type(unsigned short category,
 	}
 	return NULL;
 }
+EXPORT_SYMBOL(nubus_find_type);
 
 struct nubus_dev*
 nubus_find_slot(unsigned int slot,
@@ -335,6 +346,7 @@ nubus_find_slot(unsigned int slot,
 	}
 	return NULL;
 }
+EXPORT_SYMBOL(nubus_find_slot);
 
 int
 nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type,
@@ -346,6 +358,7 @@ nubus_find_rsrc(struct nubus_dir* dir, u
 	}	
 	return -1;
 }
+EXPORT_SYMBOL(nubus_find_rsrc);
 
 /* Initialization functions - decide which slots contain stuff worth
    looking at, and print out lots and lots of information from the
--- a/drivers/nubus/nubus_syms.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Exported symbols for NuBus services
-
-   (c) 1999 David Huggins-Daines <dhd@debian.org> */
-
-#include <linux/module.h>
-#include <linux/types.h>
-#include <linux/nubus.h>
-
-#ifdef CONFIG_PROC_FS
-EXPORT_SYMBOL(nubus_proc_attach_device);
-EXPORT_SYMBOL(nubus_proc_detach_device);
-#endif
-
-MODULE_LICENSE("GPL");
-
-EXPORT_SYMBOL(nubus_find_device);
-EXPORT_SYMBOL(nubus_find_type);
-EXPORT_SYMBOL(nubus_find_slot);
-EXPORT_SYMBOL(nubus_get_root_dir);
-EXPORT_SYMBOL(nubus_get_board_dir);
-EXPORT_SYMBOL(nubus_get_func_dir);
-EXPORT_SYMBOL(nubus_readdir);
-EXPORT_SYMBOL(nubus_find_rsrc);
-EXPORT_SYMBOL(nubus_rewinddir);
-EXPORT_SYMBOL(nubus_get_subdir);
-EXPORT_SYMBOL(nubus_get_rsrc_mem);
-EXPORT_SYMBOL(nubus_get_rsrc_str);
-
--- a/drivers/nubus/proc.c
+++ b/drivers/nubus/proc.c
@@ -22,6 +22,8 @@
 #include <linux/nubus.h>
 #include <linux/proc_fs.h>
 #include <linux/init.h>
+#include <linux/module.h>
+
 #include <asm/uaccess.h>
 #include <asm/byteorder.h>
 
@@ -140,6 +142,7 @@ int nubus_proc_attach_device(struct nubu
 
 	return 0;
 }
+EXPORT_SYMBOL(nubus_proc_attach_device);
 
 /* FIXME: this is certainly broken! */
 int nubus_proc_detach_device(struct nubus_dev *dev)
@@ -154,6 +157,7 @@ int nubus_proc_detach_device(struct nubu
 	}
 	return 0;
 }
+EXPORT_SYMBOL(nubus_proc_detach_device);
 
 void __init proc_bus_nubus_add_devices(void)
 {

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 06/14] m68k: kill arch/m68k/mac/mac_ksyms.c
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (4 preceding siblings ...)
  2008-01-27 12:32 ` [patch 05/14] nubus: kill drivers/nubus/nubus_syms.c Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 07/14] m68k: kill arch/m68k/hp300/ksyms.c Geert Uytterhoeven
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Adrian Bunk

[-- Attachment #1: m68k-kill-arch-m68k-mac-mac_ksyms-c.diff --]
[-- Type: text/plain, Size: 1743 bytes --]

From: Adrian Bunk <bunk@kernel.org>

m68k: kill arch/m68k/mac/mac_ksyms.c

EXPORT_SYMBOL's belong to the actual code.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/mac/Makefile    |    2 +-
 arch/m68k/mac/mac_ksyms.c |    8 --------
 arch/m68k/mac/via.c       |    5 ++++-
 3 files changed, 5 insertions(+), 10 deletions(-)

--- a/arch/m68k/mac/Makefile
+++ b/arch/m68k/mac/Makefile
@@ -3,4 +3,4 @@
 #
 
 obj-y		:= config.o bootparse.o macints.o iop.o via.o oss.o psc.o \
-			baboon.o macboing.o debug.o misc.o mac_ksyms.o
+			baboon.o macboing.o debug.o misc.o
--- a/arch/m68k/mac/mac_ksyms.c
+++ /dev/null
@@ -1,8 +0,0 @@
-#include <linux/module.h>
-#include <asm/ptrace.h>
-#include <asm/traps.h>
-
-/* Says whether we're using A/UX interrupts or not */
-extern int via_alt_mapping;
-
-EXPORT_SYMBOL(via_alt_mapping);
--- a/arch/m68k/mac/via.c
+++ b/arch/m68k/mac/via.c
@@ -28,6 +28,7 @@
 #include <linux/delay.h>
 #include <linux/init.h>
 #include <linux/ide.h>
+#include <linux/module.h>
 
 #include <asm/bootinfo.h>
 #include <asm/macintosh.h>
@@ -41,7 +42,9 @@ volatile __u8 *via1, *via2;
 /* See note in mac_via.h about how this is possibly not useful */
 volatile long *via_memory_bogon=(long *)&via_memory_bogon;
 #endif
-int rbv_present, via_alt_mapping;
+int rbv_present;
+int via_alt_mapping;
+EXPORT_SYMBOL(via_alt_mapping);
 __u8 rbv_clear;
 
 /*

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 07/14] m68k: kill arch/m68k/hp300/ksyms.c
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (5 preceding siblings ...)
  2008-01-27 12:32 ` [patch 06/14] m68k: kill arch/m68k/mac/mac_ksyms.c Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 08/14] m68k: kill arch/m68k/amiga/amiga_ksyms.c Geert Uytterhoeven
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Adrian Bunk

[-- Attachment #1: m68k-kill-arch-m68k-hp300-ksyms-c.diff --]
[-- Type: text/plain, Size: 1122 bytes --]

From: Adrian Bunk <bunk@kernel.org>

m68k: kill arch/m68k/hp300/ksyms.c

It was empty.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/hp300/Makefile |    2 +-
 arch/m68k/hp300/ksyms.c  |    9 ---------
 2 files changed, 1 insertion(+), 10 deletions(-)

--- a/arch/m68k/hp300/Makefile
+++ b/arch/m68k/hp300/Makefile
@@ -2,4 +2,4 @@
 # Makefile for Linux arch/m68k/hp300 source directory
 #
 
-obj-y		:= ksyms.o config.o time.o reboot.o
+obj-y		:= config.o time.o reboot.o
--- a/arch/m68k/hp300/ksyms.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- *  linux/arch/m68k/hp300/ksyms.c
- *
- *  Copyright (C) 1998 Philip Blundell <philb@gnu.org>
- *
- *  This file contains the HP300-specific kernel symbols.  None yet. :-)
- */
-
-#include <linux/module.h>

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 08/14] m68k: kill arch/m68k/amiga/amiga_ksyms.c
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (6 preceding siblings ...)
  2008-01-27 12:32 ` [patch 07/14] m68k: kill arch/m68k/hp300/ksyms.c Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 09/14] m68k: kill arch/m68k/atari/atari_ksyms.c Geert Uytterhoeven
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Adrian Bunk

[-- Attachment #1: m68k-kill-arch-m68k-amiga-amiga_ksyms-c.diff --]
[-- Type: text/plain, Size: 5764 bytes --]

From: Adrian Bunk <bunk@kernel.org>

m68k: kill arch/m68k/amiga/amiga_ksyms.c

EXPORT_SYMBOL's belong to the actual code.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/amiga/Makefile      |    2 +-
 arch/m68k/amiga/amiga_ksyms.c |   33 ---------------------------------
 arch/m68k/amiga/amisound.c    |    3 +++
 arch/m68k/amiga/chipram.c     |    7 +++++++
 arch/m68k/amiga/config.c      |   12 ++++++++++++
 arch/m68k/amiga/pcmcia.c      |    9 +++++++++
 6 files changed, 32 insertions(+), 34 deletions(-)

--- a/arch/m68k/amiga/Makefile
+++ b/arch/m68k/amiga/Makefile
@@ -2,6 +2,6 @@
 # Makefile for Linux arch/m68k/amiga source directory
 #
 
-obj-y		:= config.o amiints.o cia.o chipram.o amisound.o amiga_ksyms.o
+obj-y		:= config.o amiints.o cia.o chipram.o amisound.o
 
 obj-$(CONFIG_AMIGA_PCMCIA)	+= pcmcia.o
--- a/arch/m68k/amiga/amiga_ksyms.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <linux/module.h>
-#include <linux/types.h>
-#include <asm/ptrace.h>
-#include <asm/amigahw.h>
-#include <asm/amigaints.h>
-#include <asm/amipcmcia.h>
-
-extern volatile u_short amiga_audio_min_period;
-extern u_short amiga_audio_period;
-
-/*
- * Add things here when you find the need for it.
- */
-EXPORT_SYMBOL(amiga_model);
-EXPORT_SYMBOL(amiga_chipset);
-EXPORT_SYMBOL(amiga_hw_present);
-EXPORT_SYMBOL(amiga_eclock);
-EXPORT_SYMBOL(amiga_colorclock);
-EXPORT_SYMBOL(amiga_chip_alloc);
-EXPORT_SYMBOL(amiga_chip_free);
-EXPORT_SYMBOL(amiga_chip_avail);
-EXPORT_SYMBOL(amiga_chip_size);
-EXPORT_SYMBOL(amiga_audio_period);
-EXPORT_SYMBOL(amiga_audio_min_period);
-
-#ifdef CONFIG_AMIGA_PCMCIA
-  EXPORT_SYMBOL(pcmcia_reset);
-  EXPORT_SYMBOL(pcmcia_copy_tuple);
-  EXPORT_SYMBOL(pcmcia_program_voltage);
-  EXPORT_SYMBOL(pcmcia_access_speed);
-  EXPORT_SYMBOL(pcmcia_write_enable);
-  EXPORT_SYMBOL(pcmcia_write_disable);
-#endif
--- a/arch/m68k/amiga/amisound.c
+++ b/arch/m68k/amiga/amisound.c
@@ -12,6 +12,7 @@
 #include <linux/timer.h>
 #include <linux/init.h>
 #include <linux/string.h>
+#include <linux/module.h>
 
 #include <asm/system.h>
 #include <asm/amigahw.h>
@@ -31,6 +32,7 @@ static const signed char sine_data[] = {
      */
 
 volatile unsigned short amiga_audio_min_period = 124; /* Default for pre-OCS */
+EXPORT_SYMBOL(amiga_audio_min_period);
 
 #define MAX_PERIOD	(65535)
 
@@ -40,6 +42,7 @@ volatile unsigned short amiga_audio_min_
      */
 
 unsigned short amiga_audio_period = MAX_PERIOD;
+EXPORT_SYMBOL(amiga_audio_period);
 
 static unsigned long clock_constant;
 
--- a/arch/m68k/amiga/chipram.c
+++ b/arch/m68k/amiga/chipram.c
@@ -13,10 +13,13 @@
 #include <linux/ioport.h>
 #include <linux/slab.h>
 #include <linux/string.h>
+#include <linux/module.h>
+
 #include <asm/page.h>
 #include <asm/amigahw.h>
 
 unsigned long amiga_chip_size;
+EXPORT_SYMBOL(amiga_chip_size);
 
 static struct resource chipram_res = {
     .name = "Chip RAM", .start = CHIP_PHYSADDR
@@ -67,6 +70,7 @@ void *amiga_chip_alloc(unsigned long siz
 #endif
     return (void *)ZTWO_VADDR(res->start);
 }
+EXPORT_SYMBOL(amiga_chip_alloc);
 
 
     /*
@@ -120,6 +124,7 @@ void amiga_chip_free(void *ptr)
     }
     printk("amiga_chip_free: trying to free nonexistent region at %p\n", ptr);
 }
+EXPORT_SYMBOL(amiga_chip_free);
 
 
 unsigned long amiga_chip_avail(void)
@@ -129,3 +134,5 @@ unsigned long amiga_chip_avail(void)
 #endif
 	return chipavail;
 }
+EXPORT_SYMBOL(amiga_chip_avail);
+
--- a/arch/m68k/amiga/config.c
+++ b/arch/m68k/amiga/config.c
@@ -23,6 +23,7 @@
 #include <linux/delay.h>
 #include <linux/interrupt.h>
 #include <linux/zorro.h>
+#include <linux/module.h>
 
 #include <asm/bootinfo.h>
 #include <asm/setup.h>
@@ -36,13 +37,24 @@
 #include <asm/io.h>
 
 unsigned long amiga_model;
+EXPORT_SYMBOL(amiga_model);
+
 unsigned long amiga_eclock;
+EXPORT_SYMBOL(amiga_eclock);
+
 unsigned long amiga_masterclock;
+
 unsigned long amiga_colorclock;
+EXPORT_SYMBOL(amiga_colorclock);
+
 unsigned long amiga_chipset;
+EXPORT_SYMBOL(amiga_chipset);
+
 unsigned char amiga_vblank;
 unsigned char amiga_psfreq;
+
 struct amiga_hw_present amiga_hw_present;
+EXPORT_SYMBOL(amiga_hw_present);
 
 static char s_a500[] __initdata = "A500";
 static char s_a500p[] __initdata = "A500+";
--- a/arch/m68k/amiga/pcmcia.c
+++ b/arch/m68k/amiga/pcmcia.c
@@ -15,6 +15,8 @@
 #include <linux/types.h>
 #include <linux/jiffies.h>
 #include <linux/timer.h>
+#include <linux/module.h>
+
 #include <asm/amigayle.h>
 #include <asm/amipcmcia.h>
 
@@ -30,6 +32,7 @@ void pcmcia_reset(void)
 	while (time_before(jiffies, reset_start_time + 1*HZ/100));
 	b = gayle_reset;
 }
+EXPORT_SYMBOL(pcmcia_reset);
 
 
 /* copy a tuple, including tuple header. return nb bytes copied */
@@ -61,6 +64,7 @@ int pcmcia_copy_tuple(unsigned char tupl
 
 	return 0;
 }
+EXPORT_SYMBOL(pcmcia_copy_tuple);
 
 void pcmcia_program_voltage(int voltage)
 {
@@ -84,6 +88,7 @@ void pcmcia_program_voltage(int voltage)
 	gayle.config = cfg_byte;
 
 }
+EXPORT_SYMBOL(pcmcia_program_voltage);
 
 void pcmcia_access_speed(int speed)
 {
@@ -101,13 +106,17 @@ void pcmcia_access_speed(int speed)
 	cfg_byte = (cfg_byte & 0xf3) | s;
 	gayle.config = cfg_byte;
 }
+EXPORT_SYMBOL(pcmcia_access_speed);
 
 void pcmcia_write_enable(void)
 {
 	gayle.cardstatus = GAYLE_CS_WR|GAYLE_CS_DA;
 }
+EXPORT_SYMBOL(pcmcia_write_enable);
 
 void pcmcia_write_disable(void)
 {
 	gayle.cardstatus = 0;
 }
+EXPORT_SYMBOL(pcmcia_write_disable);
+

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 09/14] m68k: kill arch/m68k/atari/atari_ksyms.c
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (7 preceding siblings ...)
  2008-01-27 12:32 ` [patch 08/14] m68k: kill arch/m68k/amiga/amiga_ksyms.c Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 10/14] m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c Geert Uytterhoeven
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Adrian Bunk

[-- Attachment #1: m68k-kill-arch-m68k-atari-atari_ksyms-c.diff --]
[-- Type: text/plain, Size: 6246 bytes --]

From: Adrian Bunk <bunk@kernel.org>

m68k: kill arch/m68k/atari/atari_ksyms.c

EXPORT_SYMBOL's belong to the actual code.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/atari/Makefile      |    2 +-
 arch/m68k/atari/ataints.c     |    3 +++
 arch/m68k/atari/atari_ksyms.c |   35 -----------------------------------
 arch/m68k/atari/atasound.c    |    2 ++
 arch/m68k/atari/config.c      |   11 +++++++++++
 arch/m68k/atari/debug.c       |    6 ++++++
 arch/m68k/atari/stdma.c       |    5 +++++
 arch/m68k/atari/stram.c       |    3 +++
 8 files changed, 31 insertions(+), 36 deletions(-)

--- a/arch/m68k/atari/Makefile
+++ b/arch/m68k/atari/Makefile
@@ -3,7 +3,7 @@
 #
 
 obj-y		:= config.o time.o debug.o ataints.o stdma.o \
-			atasound.o stram.o atari_ksyms.o
+			atasound.o stram.o
 
 ifeq ($(CONFIG_PCI),y)
 obj-$(CONFIG_HADES)	+= hades-pci.o
--- a/arch/m68k/atari/ataints.c
+++ b/arch/m68k/atari/ataints.c
@@ -40,6 +40,7 @@
 #include <linux/kernel_stat.h>
 #include <linux/init.h>
 #include <linux/seq_file.h>
+#include <linux/module.h>
 
 #include <asm/system.h>
 #include <asm/traps.h>
@@ -446,6 +447,7 @@ unsigned long atari_register_vme_int(voi
 	free_vme_vec_bitmap |= 1 << i;
 	return VME_SOURCE_BASE + i;
 }
+EXPORT_SYMBOL(atari_register_vme_int);
 
 
 void atari_unregister_vme_int(unsigned long irq)
@@ -455,5 +457,6 @@ void atari_unregister_vme_int(unsigned l
 		free_vme_vec_bitmap &= ~(1 << irq);
 	}
 }
+EXPORT_SYMBOL(atari_unregister_vme_int);
 
 
--- a/arch/m68k/atari/atari_ksyms.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <linux/module.h>
-
-#include <asm/ptrace.h>
-#include <asm/traps.h>
-#include <asm/atarihw.h>
-#include <asm/atariints.h>
-#include <asm/atarikb.h>
-#include <asm/atari_joystick.h>
-#include <asm/atari_stdma.h>
-#include <asm/atari_stram.h>
-
-extern void atari_microwire_cmd( int cmd );
-extern int atari_MFP_init_done;
-extern int atari_SCC_init_done;
-extern int atari_SCC_reset_done;
-
-EXPORT_SYMBOL(atari_mch_cookie);
-EXPORT_SYMBOL(atari_mch_type);
-EXPORT_SYMBOL(atari_hw_present);
-EXPORT_SYMBOL(atari_switches);
-EXPORT_SYMBOL(atari_dont_touch_floppy_select);
-EXPORT_SYMBOL(atari_register_vme_int);
-EXPORT_SYMBOL(atari_unregister_vme_int);
-EXPORT_SYMBOL(stdma_lock);
-EXPORT_SYMBOL(stdma_release);
-EXPORT_SYMBOL(stdma_others_waiting);
-EXPORT_SYMBOL(stdma_islocked);
-EXPORT_SYMBOL(atari_stram_alloc);
-EXPORT_SYMBOL(atari_stram_free);
-
-EXPORT_SYMBOL(atari_MFP_init_done);
-EXPORT_SYMBOL(atari_SCC_init_done);
-EXPORT_SYMBOL(atari_SCC_reset_done);
-
-EXPORT_SYMBOL(atari_microwire_cmd);
--- a/arch/m68k/atari/atasound.c
+++ b/arch/m68k/atari/atasound.c
@@ -22,6 +22,7 @@
 #include <linux/fcntl.h>
 #include <linux/errno.h>
 #include <linux/mm.h>
+#include <linux/module.h>
 
 #include <asm/atarihw.h>
 #include <asm/system.h>
@@ -43,6 +44,7 @@ void atari_microwire_cmd (int cmd)
 	while( tt_microwire.mask != 0x7ff)
 		;
 }
+EXPORT_SYMBOL(atari_microwire_cmd);
 
 
 /* PSG base frequency */
--- a/arch/m68k/atari/config.c
+++ b/arch/m68k/atari/config.c
@@ -31,6 +31,7 @@
 #include <linux/delay.h>
 #include <linux/ioport.h>
 #include <linux/vt_kern.h>
+#include <linux/module.h>
 
 #include <asm/bootinfo.h>
 #include <asm/setup.h>
@@ -43,10 +44,20 @@
 #include <asm/io.h>
 
 u_long atari_mch_cookie;
+EXPORT_SYMBOL(atari_mch_cookie);
+
 u_long atari_mch_type;
+EXPORT_SYMBOL(atari_mch_type);
+
 struct atari_hw_present atari_hw_present;
+EXPORT_SYMBOL(atari_hw_present);
+
 u_long atari_switches;
+EXPORT_SYMBOL(atari_switches);
+
 int atari_dont_touch_floppy_select;
+EXPORT_SYMBOL(atari_dont_touch_floppy_select);
+
 int atari_rtc_year_offset;
 
 /* local function prototypes */
--- a/arch/m68k/atari/debug.c
+++ b/arch/m68k/atari/debug.c
@@ -15,17 +15,23 @@
 #include <linux/console.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/module.h>
 
 #include <asm/atarihw.h>
 #include <asm/atariints.h>
 
 /* Flag that Modem1 port is already initialized and used */
 int atari_MFP_init_done;
+EXPORT_SYMBOL(atari_MFP_init_done);
+
 /* Flag that Modem1 port is already initialized and used */
 int atari_SCC_init_done;
+EXPORT_SYMBOL(atari_SCC_init_done);
+
 /* Can be set somewhere, if a SCC master reset has already be done and should
  * not be repeated; used by kgdb */
 int atari_SCC_reset_done;
+EXPORT_SYMBOL(atari_SCC_reset_done);
 
 static struct console atari_console_driver = {
 	.name	= "debug",
--- a/arch/m68k/atari/stdma.c
+++ b/arch/m68k/atari/stdma.c
@@ -35,6 +35,7 @@
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/wait.h>
+#include <linux/module.h>
 
 #include <asm/atari_stdma.h>
 #include <asm/atariints.h>
@@ -91,6 +92,7 @@ void stdma_lock(irq_handler_t handler, v
 	stdma_isr_data = data;
 	local_irq_restore(flags);
 }
+EXPORT_SYMBOL(stdma_lock);
 
 
 /*
@@ -117,6 +119,7 @@ void stdma_release(void)
 
 	local_irq_restore(flags);
 }
+EXPORT_SYMBOL(stdma_release);
 
 
 /*
@@ -134,6 +137,7 @@ int stdma_others_waiting(void)
 {
 	return waitqueue_active(&stdma_wait);
 }
+EXPORT_SYMBOL(stdma_others_waiting);
 
 
 /*
@@ -155,6 +159,7 @@ int stdma_islocked(void)
 {
 	return stdma_locked;
 }
+EXPORT_SYMBOL(stdma_islocked);
 
 
 /*
--- a/arch/m68k/atari/stram.c
+++ b/arch/m68k/atari/stram.c
@@ -20,6 +20,7 @@
 #include <linux/bootmem.h>
 #include <linux/mount.h>
 #include <linux/blkdev.h>
+#include <linux/module.h>
 
 #include <asm/setup.h>
 #include <asm/machdep.h>
@@ -208,6 +209,7 @@ void *atari_stram_alloc(long size, const
 	}
 	return( addr );
 }
+EXPORT_SYMBOL(atari_stram_alloc);
 
 void atari_stram_free( void *addr )
 
@@ -237,6 +239,7 @@ void atari_stram_free( void *addr )
 	printk( KERN_ERR "atari_stram_free: cannot free block at %p "
 			"(called from %p)\n", addr, __builtin_return_address(0) );
 }
+EXPORT_SYMBOL(atari_stram_free);
 
 \f
 /* ------------------------------------------------------------------------ */

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 10/14] m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (8 preceding siblings ...)
  2008-01-27 12:32 ` [patch 09/14] m68k: kill arch/m68k/atari/atari_ksyms.c Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 11/14] mac68k: macii adb comment correction Geert Uytterhoeven
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Adrian Bunk

[-- Attachment #1: m68k-kill-arch-m68k-mvme16x-mvme16x_ksyms-c.diff --]
[-- Type: text/plain, Size: 1580 bytes --]

From: Adrian Bunk <bunk@kernel.org>

m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c

EXPORT_SYMBOL's belong to the actual code.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/mvme16x/Makefile        |    2 +-
 arch/m68k/mvme16x/config.c        |    2 ++
 arch/m68k/mvme16x/mvme16x_ksyms.c |    6 ------
 3 files changed, 3 insertions(+), 7 deletions(-)

--- a/arch/m68k/mvme16x/Makefile
+++ b/arch/m68k/mvme16x/Makefile
@@ -2,4 +2,4 @@
 # Makefile for Linux arch/m68k/mvme16x source directory
 #
 
-obj-y		:= config.o rtc.o mvme16x_ksyms.o
+obj-y		:= config.o rtc.o
--- a/arch/m68k/mvme16x/config.c
+++ b/arch/m68k/mvme16x/config.c
@@ -25,6 +25,7 @@
 #include <linux/genhd.h>
 #include <linux/rtc.h>
 #include <linux/interrupt.h>
+#include <linux/module.h>
 
 #include <asm/bootinfo.h>
 #include <asm/system.h>
@@ -58,6 +59,7 @@ static irq_handler_t tick_handler;
 
 
 unsigned short mvme16x_config;
+EXPORT_SYMBOL(mvme16x_config);
 
 
 int mvme16x_parse_bootinfo(const struct bi_record *bi)
--- a/arch/m68k/mvme16x/mvme16x_ksyms.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <linux/module.h>
-#include <linux/types.h>
-#include <asm/ptrace.h>
-#include <asm/mvme16xhw.h>
-
-EXPORT_SYMBOL(mvme16x_config);

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 11/14] mac68k: macii adb comment correction
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (9 preceding siblings ...)
  2008-01-27 12:32 ` [patch 10/14] m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 12/14] mac68k: remove dead code Geert Uytterhoeven
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Finn Thain

[-- Attachment #1: mac68k-macii-adb-comment-correction.diff --]
[-- Type: text/plain, Size: 1368 bytes --]

From: Finn Thain <fthain@telegraphics.com.au>

Corrects a mistake I made in a comment.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/macintosh/via-macii.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/macintosh/via-macii.c
+++ b/drivers/macintosh/via-macii.c
@@ -111,7 +111,7 @@ static enum macii_state {
 static struct adb_request *current_req; /* first request struct in the queue */
 static struct adb_request *last_req;     /* last request struct in the queue */
 static unsigned char reply_buf[16];        /* storage for autopolled replies */
-static unsigned char *reply_ptr;      /* next byte in req->data or reply_buf */
+static unsigned char *reply_ptr;     /* next byte in reply_buf or req->reply */
 static int reading_reply;        /* store reply in reply_buf else req->reply */
 static int data_index;      /* index of the next byte to send from req->data */
 static int reply_len; /* number of bytes received in reply_buf or req->reply */

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 12/14] mac68k: remove dead code
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (10 preceding siblings ...)
  2008-01-27 12:32 ` [patch 11/14] mac68k: macii adb comment correction Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 13/14] mac68k: add nubus card definitions and a typo fix Geert Uytterhoeven
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Finn Thain

[-- Attachment #1: mac68k-remove-dead-code.diff --]
[-- Type: text/plain, Size: 1289 bytes --]

From: Finn Thain <fthain@telegraphics.com.au>

Remove dead code.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/mac/config.c       |    2 --
 include/asm-m68k/macintosh.h |    2 --
 2 files changed, 4 deletions(-)

--- a/arch/m68k/mac/config.c
+++ b/arch/m68k/mac/config.c
@@ -58,8 +58,6 @@ extern struct mem_info m68k_memory[NUM_M
 
 extern struct mem_info m68k_ramdisk;
 
-extern char m68k_command_line[CL_SIZE];
-
 void *mac_env;					/* Loaded by the boot asm */
 
 /* The phys. video addr. - might be bogus on some machines */
--- a/include/asm-m68k/macintosh.h
+++ b/include/asm-m68k/macintosh.h
@@ -14,8 +14,6 @@ extern void mac_init_IRQ(void);
 extern int mac_irq_pending(unsigned int);
 extern void mac_identify(void);
 extern void mac_report_hardware(void);
-extern void mac_debugging_penguin(int);
-extern void mac_boom(int);
 
 /*
  *	Floppy driver magic hook - probably shouldnt be here

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 13/14] mac68k: add nubus card definitions and a typo fix
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (11 preceding siblings ...)
  2008-01-27 12:32 ` [patch 12/14] mac68k: remove dead code Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-27 12:32 ` [patch 14/14] mac68k: remove dead MAC_ADBKEYCODES Geert Uytterhoeven
  2008-01-28  5:32 ` [patch 00/14] M68k patches for 2.6.25 Andrew Morton
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Finn Thain

[-- Attachment #1: mac68k-add-nubus-card-definitions-and-a-typo-fix.diff --]
[-- Type: text/plain, Size: 1586 bytes --]

From: Finn Thain <fthain@telegraphics.com.au>

Add some new card definitions and fix a typo (from Eugen Paiuc).

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 include/linux/nubus.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/include/linux/nubus.h
+++ b/include/linux/nubus.h
@@ -132,10 +132,12 @@ enum nubus_drhw {
 	NUBUS_DRHW_RDIUS_DCGX     = 0x027C, /* Radius DirectColor/GX */
 	NUBUS_DRHW_RDIUS_PC8      = 0x0291, /* Radius PrecisionColor 8 */
 	NUBUS_DRHW_LAPIS_PCS8     = 0x0292, /* Lapis ProColorServer 8 */
-	NUBUS_DRHW_RASTER_24LXI   = 0x02A0, /* RasterOps 8/24 XLi */
+	NUBUS_DRHW_RASTER_24XLI   = 0x02A0, /* RasterOps 8/24 XLi */
 	NUBUS_DRHW_RASTER_PBPGT   = 0x02A5, /* RasterOps PaintBoard Prism GT */
 	NUBUS_DRHW_EMACH_FSX      = 0x02AE, /* E-Machines Futura SX */
+	NUBUS_DRHW_RASTER_24XLTV  = 0x02B7, /* RasterOps 24XLTV */
 	NUBUS_DRHW_SMAC_THUND24   = 0x02CB, /* SuperMac Thunder/24 */
+	NUBUS_DRHW_SMAC_THUNDLGHT = 0x03D9, /* SuperMac ThunderLight */
 	NUBUS_DRHW_RDIUS_PC24XP   = 0x0406, /* Radius PrecisionColor 24Xp */
 	NUBUS_DRHW_RDIUS_PC24X    = 0x040A, /* Radius PrecisionColor 24X */
 	NUBUS_DRHW_RDIUS_PC8XJ    = 0x040B, /* Radius PrecisionColor 8XJ */

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* [patch 14/14] mac68k: remove dead MAC_ADBKEYCODES
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (12 preceding siblings ...)
  2008-01-27 12:32 ` [patch 13/14] mac68k: add nubus card definitions and a typo fix Geert Uytterhoeven
@ 2008-01-27 12:32 ` Geert Uytterhoeven
  2008-01-28  5:32 ` [patch 00/14] M68k patches for 2.6.25 Andrew Morton
  14 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2008-01-27 12:32 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-m68k, linux-kernel, Stanislav Brabec

[-- Attachment #1: mac68k-remove-dead-MAC_ADBKEYCODES.diff --]
[-- Type: text/plain, Size: 1742 bytes --]

From: Stanislav Brabec <sbrabec@suse.cz>

It seems, that current kernel source code contains no traces of
MAC_ADBKEYCODES and no reference to keyboard_sends_linux_keycodes any
more.

Attached patch removes them from configuration files.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/Kconfig               |   14 --------------
 arch/m68k/configs/mac_defconfig |    1 -
 2 files changed, 15 deletions(-)

--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -582,20 +582,6 @@ config MAC_HID
 	depends on INPUT_ADBHID
 	default y
 
-config MAC_ADBKEYCODES
-	bool "Support for ADB raw keycodes"
-	depends on INPUT_ADBHID
-	help
-	  This provides support for sending raw ADB keycodes to console
-	  devices.  This is the default up to 2.4.0, but in future this may be
-	  phased out in favor of generic Linux keycodes.  If you say Y here,
-	  you can dynamically switch via the
-	  /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes
-	  sysctl and with the "keyboard_sends_linux_keycodes=" kernel
-	  argument.
-
-	  If unsure, say Y here.
-
 config ADB_KEYBOARD
 	bool "Support for ADB keyboard (old driver)"
 	depends on MAC && !INPUT_ADBHID
--- a/arch/m68k/configs/mac_defconfig
+++ b/arch/m68k/configs/mac_defconfig
@@ -678,7 +678,6 @@ CONFIG_LOGO_MAC_CLUT224=y
 #
 CONFIG_MAC_SCC=y
 CONFIG_MAC_HID=y
-CONFIG_MAC_ADBKEYCODES=y
 CONFIG_SERIAL_CONSOLE=y
 
 #

-- 
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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

* Re: [patch 00/14] M68k patches for 2.6.25
  2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
                   ` (13 preceding siblings ...)
  2008-01-27 12:32 ` [patch 14/14] mac68k: remove dead MAC_ADBKEYCODES Geert Uytterhoeven
@ 2008-01-28  5:32 ` Andrew Morton
  14 siblings, 0 replies; 16+ messages in thread
From: Andrew Morton @ 2008-01-28  5:32 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linus Torvalds, linux-m68k, linux-kernel

On Sun, 27 Jan 2008 13:32:16 +0100 Geert Uytterhoeven <geert@linux-m68k.org> wrote:

> 	Hi Linus, Andrew,
> 
> Here are the m68k patches I had queued up for 2.6.25:
>   [1] m68k: Use cc-cross-prefix
>   [2] m68k: ARRAY_SIZE() cleanup
>   [3] dio: ARRAY_SIZE() cleanup
>   [4] m68k: Balance ioremap and iounmap in m68k/atari/hades-pci.c
>   [5] nubus: kill drivers/nubus/nubus_syms.c
>   [6] m68k: kill arch/m68k/mac/mac_ksyms.c
>   [7] m68k: kill arch/m68k/hp300/ksyms.c
>   [8] m68k: kill arch/m68k/amiga/amiga_ksyms.c
>   [9] m68k: kill arch/m68k/atari/atari_ksyms.c
>   [10] m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c
>   [11] mac68k: macii adb comment correction
>   [12] mac68k: remove dead code
>   [13] mac68k: add nubus card definitions and a typo fix
>   [14] mac68k: remove dead MAC_ADBKEYCODES
> 

I already have these merged and queued.  Hopefully none of them have
changed.

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

end of thread, other threads:[~2008-01-28  5:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
2008-01-27 12:32 ` [patch 01/14] m68k: Use cc-cross-prefix Geert Uytterhoeven
2008-01-27 12:32 ` [patch 02/14] m68k: ARRAY_SIZE() cleanup Geert Uytterhoeven
2008-01-27 12:32 ` [patch 03/14] dio: " Geert Uytterhoeven
2008-01-27 12:32 ` [patch 04/14] m68k: Balance ioremap and iounmap in m68k/atari/hades-pci.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 05/14] nubus: kill drivers/nubus/nubus_syms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 06/14] m68k: kill arch/m68k/mac/mac_ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 07/14] m68k: kill arch/m68k/hp300/ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 08/14] m68k: kill arch/m68k/amiga/amiga_ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 09/14] m68k: kill arch/m68k/atari/atari_ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 10/14] m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 11/14] mac68k: macii adb comment correction Geert Uytterhoeven
2008-01-27 12:32 ` [patch 12/14] mac68k: remove dead code Geert Uytterhoeven
2008-01-27 12:32 ` [patch 13/14] mac68k: add nubus card definitions and a typo fix Geert Uytterhoeven
2008-01-27 12:32 ` [patch 14/14] mac68k: remove dead MAC_ADBKEYCODES Geert Uytterhoeven
2008-01-28  5:32 ` [patch 00/14] M68k patches for 2.6.25 Andrew Morton

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