From patchwork Thu Nov 10 16:44:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 693339 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tF89N1Brcz9vDp for ; Fri, 11 Nov 2016 03:47:34 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4sVh-00049E-1d; Thu, 10 Nov 2016 16:47:33 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4sVd-0003sL-3P for linux-snps-arc@lists.infradead.org; Thu, 10 Nov 2016 16:47:30 +0000 Received: from wuerfel.lan ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0LzTlq-1crk1u1tbe-014i3R; Thu, 10 Nov 2016 17:45:40 +0100 From: Arnd Bergmann To: Linus Torvalds Subject: [PATCH v2 04/11] nios2: fix timer initcall return value Date: Thu, 10 Nov 2016 17:44:47 +0100 Message-Id: <20161110164454.293477-5-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20161110164454.293477-1-arnd@arndb.de> References: <20161110164454.293477-1-arnd@arndb.de> X-Provags-ID: V03:K0:yBZul8vSPebUoQV9gsBOA5brnXGVrkdtd3lc191y03wW8ld4loT +HWZQ5UYFH5sJVy/2QURcpJyrTA/gllhHU3hCKQ2FKqkuFwPiqRJUeoo0+BPOHeE9jkppd3 GmuJZ85kJmWTSYwkooUZhMFBLVWwz2AuILZuNlaWQitt/j3vBLwjeqaFGhRHcNBIt/nK0it wTdJptLfoh8TtDft7Zirg== X-UI-Out-Filterresults: notjunk:1; V01:K0:02CAhnauOZM=:cRThe4uLJPdAW1dTO/AoFA +GlMqR+i6qnY9DmBWXbQpvAlJD9EF2gsh6whDuMOE98eOIAzoPow61XWecIYyzH7yo6qlBb/e omsaCrzWB6V5lr1kXF1DJ4GFPgvusJnwu7ZmcIKWPNGqwBxCCGvsUkQWO5iIXkJKOiYNCHfRs i0Ir91W6mg+kHrDz+jACyO5u7ch7hYhi3xlvlCKzVadm+cQuE0EpKPWaQT7VqqX1exvJQIVqe 8Ypc+0T5zPz9F6PznaCuOmlCc4qaXmhpr+B6QdbZ1CVs3yQZS1SnJlJMzv8f76APG9mCiKTTX oEBhbx1BW+s4ficD47vx7fdPqM073wpapKB9l1JeiWVZXRGwuRh/uvh4T0p0MB/CH4pmCzypk WtL016kWWxH3dUtiJirVhikw6kH6np0sS/o9CeNDDPIV+A4QwL0MrR8CX1FNkMitFSUwqaeY8 APwtNLlxNnv2zyEsljn7o3aicGVDqcYRTlGIb9BOjn4oef7l3jnyEO5abLJSRYMiOrpjnITcW +xfEZeOuAz5h56fBp/vzHxQ/SPDxQTGws5YuS42vzY1SP7bkhDP2V/JfPVDS2FVU3KeqtDVGK kbYYJ3z/KNPwg2Ly3AZJD+tzd+1G29beqZwOgKnxg3Y28ljCko/Ipu6WEj7o7dXHD2K40p/3h NZX+9JJIrTN7l230iLpsy+bs8dqeprKTEgzPuPh01+BbfZP+zqxJ49BYvEdbLwXXfnDo= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161110_084729_644702_A9336501 X-CRM114-Status: GOOD ( 11.71 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.130 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.130 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sean Young , Trond Myklebust , linux-s390@vger.kernel.org, Herbert Xu , x86@kernel.org, Sebastian Ott , Russell King , Javier Martinez Canillas , Ilya Dryomov , linux-snps-arc@lists.infradead.org, linux-media@vger.kernel.org, Arnd Bergmann , linux-kbuild@vger.kernel.org, Jiri Kosina , Michal Marek , nios2-dev@lists.rocketboards.org, Mauro Carvalho Chehab , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Anna Schumaker , "Luis R . Rodriguez" , linux-crypto@vger.kernel.org, Martin Schwidefsky , Ley Foon Tan , Andrew Morton , "David S. Miller" , Jonathan Cameron MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org When called more than twice, the nios2_time_init() function return an uninitialized value, as detected by gcc -Wmaybe-uninitialized arch/nios2/kernel/time.c: warning: 'ret' may be used uninitialized in this function This makes it return '0' here, matching the comment above the function. Acked-by: Ley Foon Tan Signed-off-by: Arnd Bergmann --- arch/nios2/kernel/time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c index d9563dd..746bf5c 100644 --- a/arch/nios2/kernel/time.c +++ b/arch/nios2/kernel/time.c @@ -324,6 +324,7 @@ static int __init nios2_time_init(struct device_node *timer) ret = nios2_clocksource_init(timer); break; default: + ret = 0; break; }