From patchwork Mon Jun 13 17:04:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Rosenfelder X-Patchwork-Id: 100170 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 E4FFBB6F85 for ; Tue, 14 Jun 2011 03:04:11 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754072Ab1FMREK (ORCPT ); Mon, 13 Jun 2011 13:04:10 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:61130 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753966Ab1FMREK (ORCPT ); Mon, 13 Jun 2011 13:04:10 -0400 Received: by wya21 with SMTP id 21so3323894wya.19 for ; Mon, 13 Jun 2011 10:04:08 -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=vah1Bo5HzR6Yd4uGelx3qabGc/Ozx/DC92ueC7UWTz8=; b=cCbj7PPDq50BYxLZ6A7dyucfNyEDbTH40qt+Hqvw/4H/jzE1JY9Uo6hUW/h6qCzORt TZ8JCHSvUDvFTRfFVcc1R+IRD6HUNUox/QNIyVVCmZNfrA1wfCdw5GgiO3cvOPzbrqqK F7n8dpvGVuRcfmIBcN9VOiacVFbm3lgo2j4C8= 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=GUjPgYB7FpVpTtoASR6rc0fes4tJkmfexZG9pBPzrbaW8L0MOFsJ3gpstt7HpgDr6U Z7Z58+IKlIsJXmAEqfm2vK1gMMd1WGyFQTMmIv3ZWkFm/m3w4oED7oDOHDMu9abKrKwz iVG8WB7Fslhs+UyUg4h0cxQxSvxowZWcTfQCU= Received: by 10.216.253.215 with SMTP id f65mr5286435wes.14.1307984647187; Mon, 13 Jun 2011 10:04:07 -0700 (PDT) Received: from [192.168.2.2] (HSI-KBW-078-042-024-253.hsi3.kabel-badenwuerttemberg.de [78.42.24.253]) by mx.google.com with ESMTPS id z22sm3020766weq.2.2011.06.13.10.04.05 (version=SSLv3 cipher=OTHER); Mon, 13 Jun 2011 10:04:06 -0700 (PDT) Message-ID: <4DF64305.3080509@googlemail.com> Date: Mon, 13 Jun 2011 19:04:05 +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 Subject: Re: [PATCH] sparc32, leon: Added __init declaration to leon_flush_needed() References: <4DCA7CCC.7050404@googlemail.com> <20110516.133359.183042947.davem@davemloft.net> <4DED61C0.8010809@googlemail.com> <20110606.162937.992591087571499220.davem@davemloft.net> In-Reply-To: <20110606.162937.992591087571499220.davem@davemloft.net> 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 also 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(-) 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;