From patchwork Wed May 11 12:10:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Rosenfelder X-Patchwork-Id: 95163 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EDB17B6F73 for ; Thu, 12 May 2011 02:02:13 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755399Ab1EKPx4 (ORCPT ); Wed, 11 May 2011 11:53:56 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:55487 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755664Ab1EKPxy (ORCPT ); Wed, 11 May 2011 11:53:54 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so490314wya.19 for ; Wed, 11 May 2011 08:53:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ieMVVmeCN2fVwXYkL4mamJBZn/LIHQVpQyKlDPmeK34=; b=btWsOBWHgahBiYo21bqtYfpXmxRAA4Le5+/pCpFkTDYhoxpGSBq95HzQnYnoX7Pj/m 1MnOL4T9cfkZb7Jp+QAB9iKQIlItGdRQOB2iL8UM9wNMCNKaIEDmpIU35feyRDHUP/eK ogeyk0kugqSjXWIMXvQ7Cp6T/aCuUZLRa+jAA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=xakYBxQwNaMLgL3xVlI63OwPli3KeakC+yqfVm4xkNfgvUNKAsoT0IfjRtBSLXpkEp A9fbtahzZjBx+XfMMUowaSe+ilzjxaikyObfn3ejlr5Yfl8HU8N9IkFNGTGEKSiIUQE7 l4IjfyOy+bYfO3WcVLfNhoT6pD/AyGH5sitXk= Received: by 10.216.229.149 with SMTP id h21mr403593weq.67.1305115850028; Wed, 11 May 2011 05:10:50 -0700 (PDT) Received: from [192.168.2.2] (HSI-KBW-46-223-72-61.hsi.kabel-badenwuerttemberg.de [46.223.72.61]) by mx.google.com with ESMTPS id h11sm58062wbc.43.2011.05.11.05.10.49 (version=SSLv3 cipher=OTHER); Wed, 11 May 2011 05:10:49 -0700 (PDT) Message-ID: <4DCA7CCC.7050404@googlemail.com> Date: Wed, 11 May 2011 14:10:52 +0200 From: Matthias Rosenfelder User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: David Miller CC: Daniel Hellstrom , sparclinux@vger.kernel.org, Matthias Rosenfelder Subject: [PATCH] sparc32, leon: Added __init declaration to leon_flush_needed() References: <4DC89ECB.6030309@googlemail.com> <4DC8E6FD.4020704@gaisler.com> In-Reply-To: <4DC8E6FD.4020704@gaisler.com> Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org The function leon_flush_needed() is called only during bootup from another __init function. Therefore, we can add __init to leon_flush_needed(). Signed-off-by: Matthias Rosenfelder Acked-by: Daniel Hellstrom --- arch/sparc/mm/leon_mm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- 1.6.4.2 -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/sparc/mm/leon_mm.c b/arch/sparc/mm/leon_mm.c index c0e0129..e485a68 100644 --- a/arch/sparc/mm/leon_mm.c +++ b/arch/sparc/mm/leon_mm.c @@ -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;