From patchwork Fri Nov 23 00:50:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 1793451 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 77ABD3FC64 for ; Fri, 23 Nov 2012 00:59:42 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TbhZ7-0007ap-NU; Fri, 23 Nov 2012 00:56:22 +0000 Received: from mail-oa0-f49.google.com ([209.85.219.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TbhWg-0006YG-WB for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2012 00:53:55 +0000 Received: by mail-oa0-f49.google.com with SMTP id l10so8321124oag.36 for ; Thu, 22 Nov 2012 16:53:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=phV+VOT7xN6ltpIn3NNCRnfWBXdqnqGld70s1aFCEUA=; b=hbvjCZXZ7hWq/RtK8XbtBaakOMdVEjZjVKmhsJPIZvoWy3lotwCxWUtyE16P98s3Yv NmONf5KIeJYfjVh93Ld9sgdfidZ74kD3mOCIgl0YL0MJBBFbWABEwUAXO6N/5nnGleab 0V0tP3IzmUk6O+vUYu9BUSZIluVcO24wa66o1bqb7XyrY3fXrH97g2MZwBfwVwKeyQjt lvt5Rienx4u7OpRZFTTm1Okwg6FI8mv8+IzP+AyVnoLmTuB2DV03QMzWNRMc3Rqooq8R q4Bjum53Z20AfT+XwGD06MJMMgCKju9OGE0eve098cu1TpqdllUNXUmsqtGzU8YMLi37 3PmA== Received: by 10.182.115.34 with SMTP id jl2mr1615009obb.74.1353632030770; Thu, 22 Nov 2012 16:53:50 -0800 (PST) Received: from localhost (ip-64-134-239-153.public.wayport.net. [64.134.239.153]) by mx.google.com with ESMTPS id n7sm4465085obd.16.2012.11.22.16.53.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 16:53:50 -0800 (PST) From: Anton Vorontsov To: Andrew Morton Subject: [PATCH 09/10] ARM: FIQ: Make show_fiq_list() return void Date: Thu, 22 Nov 2012 16:50:02 -0800 Message-Id: <1353631803-4853-9-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.8.0 In-Reply-To: <20121123003849.GA973@lizard.mcd25758.sjc.wayport.net> References: <20121123003849.GA973@lizard.mcd25758.sjc.wayport.net> X-Gm-Message-State: ALoCoQk7NteniJLCOpRg0v2BihQfZKGOXwioYxgQEf3e3iGcJDQ80Ogz9Kzf0Mtv+6/svnOJS/Wm X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121122_195351_200275_53092F85 X-CRM114-Status: GOOD ( 11.80 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.219.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linaro-kernel@lists.linaro.org, Russell King , patches@linaro.org, linux-kernel@vger.kernel.org, John Stultz , Jason Wessel , kernel-team@android.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The return value is never checked, so we can turn show_fiq_list() into returning void. Signed-off-by: Anton Vorontsov --- arch/arm/include/asm/mach/irq.h | 4 ++-- arch/arm/kernel/fiq.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/include/asm/mach/irq.h b/arch/arm/include/asm/mach/irq.h index 420d211..8be5ba9 100644 --- a/arch/arm/include/asm/mach/irq.h +++ b/arch/arm/include/asm/mach/irq.h @@ -19,10 +19,10 @@ struct seq_file; */ #ifdef CONFIG_FIQ extern void init_FIQ(void); -extern int show_fiq_list(struct seq_file *, int); +extern void show_fiq_list(struct seq_file *, int); #else static inline void init_FIQ(void) {} -static inline int show_fiq_list(struct seq_file *p, int prec) { return 0; } +static inline void show_fiq_list(struct seq_file *p, int prec) {} #endif #ifdef CONFIG_MULTI_IRQ_HANDLER diff --git a/arch/arm/kernel/fiq.c b/arch/arm/kernel/fiq.c index 7be2e74..9bf3a60 100644 --- a/arch/arm/kernel/fiq.c +++ b/arch/arm/kernel/fiq.c @@ -69,13 +69,11 @@ static struct fiq_handler default_owner = { static struct fiq_handler *current_fiq = &default_owner; -int show_fiq_list(struct seq_file *p, int prec) +void show_fiq_list(struct seq_file *p, int prec) { if (current_fiq != &default_owner) seq_printf(p, "%*s: %s\n", prec, "FIQ", current_fiq->name); - - return 0; } void set_fiq_handler(void *start, unsigned int length)