From patchwork Mon Oct 15 21:51:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 12247 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 D464A23EFB for ; Mon, 15 Oct 2012 21:55:05 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 86462A18395 for ; Mon, 15 Oct 2012 21:55:05 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so8462174iej.11 for ; Mon, 15 Oct 2012 14:55:05 -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=zY4PIlPz723fucZV5jO0jVS0ZmdLKZvPqFpGr+bWoYs=; b=Yzv5HeX7Klc1HqJ6muvpRJ6MI/nY7Do10uGWvv53t0if6IM5hdcTMi8clKL4Ubn4hn hLrvMXTjQexkb76dLSFIydVBBaAP7tXwkNqxRMme393sbdvjupmFbbKk4JpUzROTxj6h c/lQNG9csz1VFH/QitJ8CrVHBeE6mfBdfj6bMyePkTUEVb+pr4/XcuVYmJXkDj7505uh d1+IlhZixwzkzegUd1JJ8ScnYJISETrMpm7OGf8B1Eif6RzOwEY30V0SxannVj+MCT+B gBvVMZjjdqLjDbFdlX+rteOJL1+SawPvE98wfo3qcWkQlSTLgnd9gofevAOuvHd6chd3 6qxw== Received: by 10.50.236.72 with SMTP id us8mr9995171igc.70.1350338105326; Mon, 15 Oct 2012 14:55:05 -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.67.148 with SMTP id n20csp641668igt; Mon, 15 Oct 2012 14:55:04 -0700 (PDT) Received: by 10.68.189.65 with SMTP id gg1mr40667380pbc.106.1350338104639; Mon, 15 Oct 2012 14:55:04 -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 iv8si24102935pbc.337.2012.10.15.14.55.04 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Oct 2012 14:55:04 -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 md4so5917726pbc.37 for ; Mon, 15 Oct 2012 14:55:04 -0700 (PDT) Received: by 10.66.86.3 with SMTP id l3mr10814760paz.55.1350338104355; Mon, 15 Oct 2012 14:55:04 -0700 (PDT) Received: from localhost (ip-64-134-230-8.public.wayport.net. [64.134.230.8]) by mx.google.com with ESMTPS id ty4sm9620913pbc.57.2012.10.15.14.55.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Oct 2012 14:55:03 -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 09/10] ARM: FIQ: Make show_fiq_list() return void Date: Mon, 15 Oct 2012 14:51:33 -0700 Message-Id: <1350337894-9744-9-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.7.12.3 In-Reply-To: <20121015214954.GA3352@lizard> References: <20121015214954.GA3352@lizard> X-Gm-Message-State: ALoCoQlAN74XDj0UVTc6+rjnliYDL5GJ2LdwRZqqGiJ0iWN5jKZEhPkrGeJOlAG77NDlc0quTF5X 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)