Sasha Levin | 23 Jul 14:51 2014
Picon

[PATCH] m68k/q40: Revert "m68k/q40: Fix q40_irq_startup() to return -ENXIO on failures"

Revert since we're trying to return -ENXIO from a function returning
unsigned int. Not only it causes compiler warnings it's also obviously
incorrect.

In general, watch for patches from Nick Krause since they are not even
build tested.

Signed-off-by: Sasha Levin <sashal <at> kernel.org>
---
 arch/m68k/q40/q40ints.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/m68k/q40/q40ints.c b/arch/m68k/q40/q40ints.c
index 9dfa1ea..513f9bb 100644
--- a/arch/m68k/q40/q40ints.c
+++ b/arch/m68k/q40/q40ints.c
 <at>  <at>  -49,7 +49,7  <at>  <at>  static unsigned int q40_irq_startup(struct irq_data *data)
 	case 1: case 2: case 8: case 9:
 	case 11: case 12: case 13:
 		printk("%s: ISA IRQ %d not implemented by HW\n", __func__, irq);
-		return -ENXIO;
+		/* FIXME return -ENXIO; */
 	}
 	return 0;
 }
--

-- 
1.9.1

Nicholas Krause | 23 Jul 06:08 2014
Picon

[PATCH] m68k: Remove printk statement and add return statement in q40ints.c

This removes the printk statement for irqs not defined by the hardware in
function q40_irq_startup and instead returns -ENXIO as stated by the fix
me message.

Signed-off-by: Nicholas Krause <xerofoify <at> gmail.com>
---
 arch/m68k/q40/q40ints.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/m68k/q40/q40ints.c b/arch/m68k/q40/q40ints.c
index 513f9bb..86f05c0 100644
--- a/arch/m68k/q40/q40ints.c
+++ b/arch/m68k/q40/q40ints.c
 <at>  <at>  -48,8 +48,7  <at>  <at>  static unsigned int q40_irq_startup(struct irq_data *data)
 	switch (irq) {
 	case 1: case 2: case 8: case 9:
 	case 11: case 12: case 13:
-		printk("%s: ISA IRQ %d not implemented by HW\n", __func__, irq);
-		/* FIXME return -ENXIO; */
+		return -ENXIO;
 	}
 	return 0;
 }
--

-- 
1.9.1

Himangi Saraogi | 19 Jul 13:35 2014
Picon

[PATCH] mm/m68k: Eliminate memset after alloc_bootmem_pages

alloc_bootmem and related functions always return a zeroed region of memory.
Thus a memset after calls to these functions is unnecessary.

The following Coccinelle semantic patch was used for making the change:

 <at>  <at> 
expression E,E1;
 <at>  <at> 

E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
... when != E
- memset(E,0,E1);

Signed-off-by: Himangi Saraogi <himangi774 <at> gmail.com>
Acked-by: Julia Lawall <julia.lawall <at> lip6.fr>
---
To send to: Geert Uytterhoeven <geert <at> linux-m68k.org>,linux-m68k <at> lists.linux-m68k.org,linux-kernel <at> vger.kernel.org
 arch/m68k/mm/init.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c
index acaff6a..b09a3cb 100644
--- a/arch/m68k/mm/init.c
+++ b/arch/m68k/mm/init.c
 <at>  <at>  -94,7 +94,6  <at>  <at>  void __init paging_init(void)
 	high_memory = (void *) end_mem;

 	empty_zero_page = alloc_bootmem_pages(PAGE_SIZE);
-	memset(empty_zero_page, 0, PAGE_SIZE);

(Continue reading)

Nicholas Krause | 17 Jul 04:13 2014
Picon

[PATCH] m68k: Remove unneeded FIXME message in sun3_pgalloc.h

This removes a FIX ME message due to this file not compiling.
Now that this message is no longer needed I am removing it
from sun3_pgalloc.h.

Signed-off-by: Nicholas Krause <xerofoify <at> gmail.com>
---
 arch/m68k/include/asm/sun3_pgalloc.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/m68k/include/asm/sun3_pgalloc.h b/arch/m68k/include/asm/sun3_pgalloc.h
index f868506..66644f3 100644
--- a/arch/m68k/include/asm/sun3_pgalloc.h
+++ b/arch/m68k/include/asm/sun3_pgalloc.h
 <at>  <at>  -12,8 +12,6  <at>  <at> 

 #include <asm/tlb.h>

-/* FIXME - when we get this compiling */
-/* erm, now that it's compiling, what do we do with it? */
 #define _KERNPG_TABLE 0

 extern const char bad_pmd_string[];
--

-- 
1.9.1

Apple Store | 12 Jul 20:28 2014

Fill in the information ! - 126233206


Click on the link below and confirm Billing Information records :

http://artedever.com.br/store.apple.com/IDMSWebAuth/login.html/appIdKey49bd208126787c17c33ca3b14d2a4f0c92d/
Geert Uytterhoeven | 13 Jul 11:08 2014

[git pull] m68k updates for 3.16 (take 2)

	Hi Linus,

The following changes since commit cd3de83f147601356395b57a8673e9c5ff1e59d1:

  Linux 3.16-rc4 (2014-07-06 12:37:51 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-linus

for you to fetch changes up to 5bc8c7cdeb6e3d9c1b938b4029d9a22f8dc5cd9d:

  m68k: Export mach_random_get_entropy to modules (2014-07-11 10:37:53 +0200)

Summary:
  - Fix for a boot regression introduced in v3.16-rc1,
  - Fix for a built issue in -next.

Thanks for pulling!

----------------------------------------------------------------
Geert Uytterhoeven (2):
      m68k: Fix boot regression on machines with RAM at non-zero
      m68k: Export mach_random_get_entropy to modules

 arch/m68k/kernel/head.S | 3 ++-
 arch/m68k/kernel/time.c | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

Gr{oetje,eeting}s,
(Continue reading)

Apple Store | 13 Jul 07:11 2014

Fill in the information ! - 758169494


Click on the link below and confirm Billing Information records :

http://artedever.com.br/store.apple.com/IDMSWebAuth/login.html/appIdKey49bd208126787c17c33ca3b14d2a4f0c92d/
Geert Uytterhoeven | 10 Jul 18:05 2014

[PATCH -next] m68k: Export mach_random_get_entropy to modules

When a module calls random_get_entropy():

    ERROR: "mach_random_get_entropy" [crypto/drbg.ko] undefined!
    make[1]: *** [__modpost] Error 1

Signed-off-by: Geert Uytterhoeven <geert <at> linux-m68k.org>
---
To be queued for 3.17

kisskb.ellerman.id.au/kisskb/buildresult/11449343/
---
 arch/m68k/kernel/time.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/m68k/kernel/time.c b/arch/m68k/kernel/time.c
index 958f1adb9d0c..3857737e3958 100644
--- a/arch/m68k/kernel/time.c
+++ b/arch/m68k/kernel/time.c
 <at>  <at>  -11,6 +11,7  <at>  <at> 
  */

 #include <linux/errno.h>
+#include <linux/export.h>
 #include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
 <at>  <at>  -30,6 +31,7  <at>  <at> 

 
 unsigned long (*mach_random_get_entropy)(void);
(Continue reading)

Geert Uytterhoeven | 8 Jul 09:25 2014

[PATCH] m68k: Fix boot regression on machines with RAM at non-zero

My enhancement to store the initial mapping size for later reuse in commit
486df8bc4627bdfc032d11bedcd056cc5343ee62 ("m68k: Increase initial mapping
to 8 or 16 MiB if possible") broke booting on machines where RAM doesn't
start at address zero.

Use pc-relative addressing to fix this.

Reported-by: Andreas Schwab <schwab <at> linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert <at> linux-m68k.org>
Tested-by: Andreas Schwab <schwab <at> linux-m68k.org>
---
 arch/m68k/kernel/head.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/m68k/kernel/head.S b/arch/m68k/kernel/head.S
index dbb118e1a4e0..a54788458ca3 100644
--- a/arch/m68k/kernel/head.S
+++ b/arch/m68k/kernel/head.S
 <at>  <at>  -921,7 +921,8  <at>  <at>  L(nocon):
 	jls	1f
 	lsrl	#1,%d1
 1:
-	movel	%d1,m68k_init_mapped_size
+	lea	%pc <at> (m68k_init_mapped_size),%a0
+	movel	%d1,%a0 <at> 
 	mmu_map	#PAGE_OFFSET,%pc <at> (L(phys_kernel_start)),%d1,\
 		%pc <at> (m68k_supervisor_cachemode)

--

-- 
1.9.1
(Continue reading)

Nicholas Krause | 4 Jul 18:29 2014
Picon

[PATCH] m68k: Remove define statement no longer needed

In the file sun3_pgalloc.h we should remove #define_KERNPG_TABLE equals 0
as this define statement hasn't been used since kernel verison 2.15.8 and
is now no longer needed.

Signed-off-by: Nicholas Krause <xerofoify <at> gmail.com>
---
 arch/m68k/include/asm/sun3_pgalloc.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/m68k/include/asm/sun3_pgalloc.h b/arch/m68k/include/asm/sun3_pgalloc.h
index f868506..0931388 100644
--- a/arch/m68k/include/asm/sun3_pgalloc.h
+++ b/arch/m68k/include/asm/sun3_pgalloc.h
 <at>  <at>  -12,10 +12,6  <at>  <at> 

 #include <asm/tlb.h>

-/* FIXME - when we get this compiling */
-/* erm, now that it's compiling, what do we do with it? */
-#define _KERNPG_TABLE 0
-
 extern const char bad_pmd_string[];

 #define pmd_alloc_one(mm,address)       ({ BUG(); ((pmd_t *)2); })
--

-- 
1.9.1

Nicholas Krause | 3 Jul 03:41 2014
Picon

[PATCH] m68k: Remove FIXME comment in file sun3_pgalloc.h

Removes a FIXME comment in this file due to it not compiling
as it now compiles.

Signed-off-by: Nicholas Krause <xerofoify <at> gmail.com>
---
 arch/m68k/include/asm/sun3_pgalloc.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/m68k/include/asm/sun3_pgalloc.h b/arch/m68k/include/asm/sun3_pgalloc.h
index f868506..1798f25 100644
--- a/arch/m68k/include/asm/sun3_pgalloc.h
+++ b/arch/m68k/include/asm/sun3_pgalloc.h
 <at>  <at>  -12,7 +12,6  <at>  <at> 

 #include <asm/tlb.h>

-/* FIXME - when we get this compiling */
 /* erm, now that it's compiling, what do we do with it? */
 #define _KERNPG_TABLE 0

--

-- 
1.9.1


Gmane