From patchwork Sun May 31 09:34:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 11580623 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 09D971392 for ; Sun, 31 May 2020 09:34:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD52920707 for ; Sun, 31 May 2020 09:34:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OlP5Irym" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD52920707 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=wanadoo.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pvj/3yYA0/qgmCcqiWZKMFWm+a3RpCT8Mb+80VHWdiI=; b=OlP5IrymdvNOSm GoXjUrA8fRgp+EL6ZeYasfX7FmV1IpXFXWvkL6rochP2DB/e4YKa8N4GJHBxpehKRC0nnfnPrjWW7 Ga7veHIWq/b5HuSpZ1n8rzp9TA/mDOYWvItgwbhKNwDFFo/7YNM/5QjPJF0ZdVvHB4kkIBh7CmjkV Nv+J10vhazIz033ROFSl1fZdkB7/PbMtOGxxsmZXAILobKKmRu0y74/4/PdHTCVCqWo2PjExzuGsJ GrHR9SX5neE0wyiRwXfveOmK82kCrWanwvH8+ENmpt8U/iz83bp31hJX/MxgKHj4lfriQhKmGIdXu GgQ0I+XEG0sIBIyloRLQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jfKMd-0004vN-QJ; Sun, 31 May 2020 09:34:43 +0000 Received: from smtp03.smtpout.orange.fr ([80.12.242.125] helo=smtp.smtpout.orange.fr) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jfKMa-0004uh-SD for linux-arm-kernel@lists.infradead.org; Sun, 31 May 2020 09:34:42 +0000 Received: from localhost.localdomain ([93.23.14.245]) by mwinf5d05 with ME id lMaZ220075HDzGl03MaZai; Sun, 31 May 2020 11:34:38 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 31 May 2020 11:34:38 +0200 X-ME-IP: 93.23.14.245 From: Christophe JAILLET To: linux@armlinux.org.uk Subject: [PATCH] ARM: riscpc: mark a function as __init to save some memory Date: Sun, 31 May 2020 11:34:29 +0200 Message-Id: <20200531093429.596642-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200531_023441_216947_191747EC X-CRM114-Status: GOOD ( 16.25 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [80.12.242.125 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [80.12.242.125 listed in wl.mailspike.net] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christophe JAILLET , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 'ecard_bus_init()' is only called via 'postcore_initcall'. It can be marked as __init to save a few bytes of memory. Signed-off-by: Christophe JAILLET --- arch/arm/mach-rpc/ecard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c index 75cfad2cb143..9f4e7106efb9 100644 --- a/arch/arm/mach-rpc/ecard.c +++ b/arch/arm/mach-rpc/ecard.c @@ -1135,7 +1135,7 @@ struct bus_type ecard_bus_type = { .shutdown = ecard_drv_shutdown, }; -static int ecard_bus_init(void) +static int __init ecard_bus_init(void) { return bus_register(&ecard_bus_type); }