linux-mips
[Top] [All Lists]

[PATCH 1/3] MIPS: Declare emulate_load_store_microMIPS as a static funct

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH 1/3] MIPS: Declare emulate_load_store_microMIPS as a static function.
From: David Daney <ddaney.cavm@gmail.com>
Date: Fri, 24 May 2013 14:54:08 -0700
Cc: David Daney <david.daney@cavium.com>, "Steven J. Hill" <Steven.Hill@imgtec.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=nDdruCJkJKKw/gp4jPUhd71U5s+2QA4NkqK1qdvC/2Q=; b=edHct9tQuVtNfVzH8+opt3oNxGsWS5b9/dGJ02V7wHIwMFTs9bf6F7DROeRT1bCpF1 Xth1t+AFecKX/Uy2FUAtqsHJGpDJHDW9mC8sl2Kjb9TEziRCOBXJ9SCX05lCFSGCRdqU QqD6mUc2y5HIasw3otXxpO0pENB0O5UwrFaTDibKUPZEFIagaG9o+hJR0KSUvgHe4vOY Zu9d1xwLNZ2nB4Q2ccalxbLAjsP6Y/NvURXqyS4VGWfcNhf2UsRmUSqDV5+RopCbKl4y rSY/Slt0AitouTAi9l6xUz/s3d71V7UCpSsvjhiZzE61XJ8VLHvjCiMkO7nTrlFHbWki SmDg==
In-reply-to: <1369432450-13583-1-git-send-email-ddaney.cavm@gmail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1369432450-13583-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

It is only used from within a single file, it should not be globally
visible.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
---
 arch/mips/kernel/unaligned.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/mips/kernel/unaligned.c b/arch/mips/kernel/unaligned.c
index 203d885..5563e9b 100644
--- a/arch/mips/kernel/unaligned.c
+++ b/arch/mips/kernel/unaligned.c
@@ -684,7 +684,8 @@ const int reg16to32[] = { 16, 17, 2, 3, 4, 5, 6, 7 };
 /* Recode table from 16-bit STORE register notation to 32-bit GPR. */
 const int reg16to32st[] = { 0, 17, 2, 3, 4, 5, 6, 7 };
 
-void emulate_load_store_microMIPS(struct pt_regs *regs, void __user * addr)
+static void emulate_load_store_microMIPS(struct pt_regs *regs,
+                                        void __user *addr)
 {
        unsigned long value;
        unsigned int res;
-- 
1.7.11.7


<Prev in Thread] Current Thread [Next in Thread>