linux-mips
[Top] [All Lists]

[MIPS] Correct section mismatch in arch/mips/mm/sc-rm7k.c

To: linux-mips@linux-mips.org
Subject: [MIPS] Correct section mismatch in arch/mips/mm/sc-rm7k.c
From: Shane McDonald <mcdonald.shane@gmail.com>
Date: Sat, 21 Jun 2008 11:22:58 -0600
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:to:subject :message-id:date:from; bh=UeVZKdZIfkKwocFAV5OYgHeyq8imvtK5nZ0GVSS1DJY=; b=fcbR88xhIcXGvEezJWmCa+etSqI3pRqfrkGkEoFJZdrZr6WWibFJ/t93skO7RxVJB6 7nrhfBnLnqB2+dNmaPYwjLMKdNtlorfZozawr0JVKMg5+DWqZIRBBit4H8ynYIEh/Wbm Rfh7Yi6GHTJOWqUWUKjYCD9oKsiCoAvDht/AY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:message-id:date:from; b=i1NjLVAqdqHXk1BLWpqlGa4yJmZspZNMryfOotcTuklrIrLj3+7CVfK6SLgwmgortP qk7tGrUcifV9IYOAvYY3cSc+bjF4Bfa+rgYBqhU1jved+xRmGujARARBGiAQrO3Ol9O1 Qlh/bMyHofiHgfahfT7iy3CWVG6kqCptqtC7g=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
From: Shane McDonald <mcdonald.shane@gmail.com>

There is a section mismatch in the arch/mips/mm/sc-rm7k.c file.
The function rm7k_sc_init, defined with attribute __cpuinit,
calls rm7k_sc_enable, which is defined with attribute __init.
This patch defines them both as __cpuinit, as well as the function
__rm7k_sc_enable which is called by rm7k_sc_enable.

Signed-off-by: Shane McDonald <mcdonald.shane@gmail.com>
---
 arch/mips/mm/sc-rm7k.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -uprN -X orig/Documentation/dontdiff orig/arch/mips/mm/sc-rm7k.c 
patched/arch/mips/mm/sc-rm7k.c
--- orig/arch/mips/mm/sc-rm7k.c 2008-06-21 05:37:08.000000000 -0600
+++ patched/arch/mips/mm/sc-rm7k.c      2008-06-21 05:40:06.000000000 -0600
@@ -86,7 +86,7 @@ static void rm7k_sc_inv(unsigned long ad
 /*
  * This function is executed in uncached address space.
  */
-static __init void __rm7k_sc_enable(void)
+static __cpuinit void __rm7k_sc_enable(void)
 {
        int i;
 
@@ -107,7 +107,7 @@ static __init void __rm7k_sc_enable(void
        }
 }
 
-static __init void rm7k_sc_enable(void)
+static __cpuinit void rm7k_sc_enable(void)
 {
        if (read_c0_config() & RM7K_CONF_SE)
                return;

<Prev in Thread] Current Thread [Next in Thread>
  • [MIPS] Correct section mismatch in arch/mips/mm/sc-rm7k.c, Shane McDonald <=