Skip to contentSkip to conversation

sparc32,leon: Added __init declaration to leon_flush_needed()

PATCH Applied Matthias Rosenfelder 2 participants 7 messages May 11, 2011 – Jul 6, 2011 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc32,leon: Added __init declaration to leon_flush_needed()

The function leon_flush_needed() is called only during bootup from another __init function. Therefore, we can add __init to leon_flush_needed().

---
  arch/sparc/mm/leon_mm.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
arch/sparc/mm/leon_mm.c +1 -1
index c0e0129..e485a68 100644
@@ -226,7 +226,7 @@ void leon3_getCacheRegs(struct leon3_cacheregs *regs)
   * Leon2 and Leon3 differ in their way of telling cache information
   *
   */
-int leon_flush_needed(void)
+int __init leon_flush_needed(void)
  {
         int flush_needed = -1;
         unsigned int ssize, sets;

--
1.6.4.2

maintainer
#1 lore raw

Re: [PATCH] sparc32,leon: Added __init declaration to

From: Matthias Rosenfelder <[email protected]>
Date: Wed, 11 May 2011 14:10:52 +0200

Quoted 6 lines

The function leon_flush_needed() is called only during bootup from another __init function. Therefore, we can add __init to leon_flush_needed().

This patch has been corrupted by your email client, making it unusable.

#2 lore raw
In reply to Matthias Rosenfelder
Quoted 7 lines · David Miller

From: Matthias Rosenfelder<[email protected]>
Date: Wed, 11 May 2011 14:10:52 +0200

Quoted 4 lines

The function leon_flush_needed() is called only during bootup from another __init function. Therefore, we can add __init to leon_flush_needed().

Quoted 5 lines
Quoted 2 lines

This patch has been corrupted by your email client, making it unusable.

I'm sorry. I'm new to sending patches and posting on mailing lists.

Currently, I'm using Thunderbird with standard settings. As I even don't know what went wrong when submitting this patch, I would like to know if there are any known issues with this software or if there is any recommended mail program for working with the kernel mailing lists?!

What program does the usual kernel hacker use?

I also want to apologize for not reacting for such a long time. I'm doing this in my spare time only but I didn't have much time lately.

Thank you for your answers.

author Acked-by Daniel Hellstrom on v1 1/1
#4 lore raw
In reply to Matthias Rosenfelder

The function leon_flush_needed() is called only during bootup from another __init function. Therefore, we can also add __init to leon_flush_needed().

---
 arch/sparc/mm/leon_mm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sparc/mm/leon_mm.c +1 -1
index c0e0129..e485a68 100644
@@ -226,7 +226,7 @@ void leon3_getCacheRegs(struct leon3_cacheregs *regs)
  * Leon2 and Leon3 differ in their way of telling cache information
  *
  */
-int leon_flush_needed(void)
+int __init leon_flush_needed(void)
 {
 	int flush_needed = -1;
 	unsigned int ssize, sets;
Signature · 1 line
1.7.3.4
#5 lore raw
In reply to Matthias Rosenfelder

I reconfigured my email client, tested it by sending the patch to myself first, saved the received mail and was able to apply it successfully. I hope this will also work for you.

Thank you again for your time and patience.

maintainer Applied
#6 lore raw

Re: [PATCH] sparc32,leon: Added __init declaration to

In reply to Matthias Rosenfelder

From: Matthias Rosenfelder <[email protected]>
Date: Mon, 13 Jun 2011 19:04:05 +0200

Quoted 5 lines

The function leon_flush_needed() is called only during bootup from another __init function. Therefore, we can also add __init to leon_flush_needed().

Applied.