From patchwork Sun Aug 5 23:03:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 10496 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id ACDD124048 for ; Sun, 5 Aug 2012 23:08:56 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7110EA18C3C for ; Sun, 5 Aug 2012 23:08:56 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id uo19so4872530obb.11 for ; Sun, 05 Aug 2012 16:08:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=vXTiiqGy0+Om2QwGK/wzayEzsyvX9Cm8uDfGLQ15TGw=; b=SdvPM349PhNuH80PyfYyY2E5skclaNc8vUOi59sC46rKLcA1jNw4JTaQasj8SOl99N rv5qkMMlEyTW2OEAUn++srMIeOs17bPWHV9i+ITUefosx0T/vsfPzZ2lOp/NBD9uR8TG s3d4B/bmM1ZSZqkdzAFFLCE/4Czx3kgeXvgAKSi4wbfa/lRwv9Dw5fg2RHu3Tn5yHptS 7YU/wLHuvN7DB1x61ZN64r3zXBh/78mPvTlWdUj4YNlv0UlsvYpTdwV1eBNQkwWh9hIa PgHPUnFUL3dB8F9c0S5H9otZmdQd7NIgFqIJyS+dsIdaa/biqi++bFFFhFOXYrRB7AZj zoFw== Received: by 10.50.46.132 with SMTP id v4mr3823803igm.25.1344208135830; Sun, 05 Aug 2012 16:08:55 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.87.40 with SMTP id u8csp412186igz; Sun, 5 Aug 2012 16:08:55 -0700 (PDT) Received: by 10.66.76.170 with SMTP id l10mr14109708paw.57.1344208135324; Sun, 05 Aug 2012 16:08:55 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id rd4si9439834pbc.190.2012.08.05.16.08.55 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Aug 2012 16:08:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) smtp.mail=anton.vorontsov@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md12so3221727pbc.37 for ; Sun, 05 Aug 2012 16:08:55 -0700 (PDT) Received: by 10.68.197.168 with SMTP id iv8mr14482208pbc.61.1344208135001; Sun, 05 Aug 2012 16:08:55 -0700 (PDT) Received: from localhost (m9f0536d0.tmodns.net. [208.54.5.159]) by mx.google.com with ESMTPS id pa6sm4169683pbc.47.2012.08.05.16.08.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Aug 2012 16:08:54 -0700 (PDT) From: Anton Vorontsov To: Russell King Cc: John Stultz , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com, Ben Dooks , Kukjin Kim , Sascha Hauer , Tony Lindgren , Mark Brown , Liam Girdwood Subject: [PATCH 9/9] ARM: FIQ: Make show_fiq_list() return void Date: Sun, 5 Aug 2012 16:03:39 -0700 Message-Id: <1344207819-3415-9-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <20120805230238.GA1663@lizard> References: <20120805230238.GA1663@lizard> X-Gm-Message-State: ALoCoQnnZHl7bNdXaNeJVvOtdAFWQgS1AOx3oZRydX3BF1GDIzbCuu1F5g1HnR2ucCNK8jUq9vl+ 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)