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: 13096 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 2C5F023E13 for ; Fri, 23 Nov 2012 00:53:52 +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 D2314A18BD1 for ; Fri, 23 Nov 2012 00:53:51 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so1226114ieb.11 for ; Thu, 22 Nov 2012 16:53:51 -0800 (PST) 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=phV+VOT7xN6ltpIn3NNCRnfWBXdqnqGld70s1aFCEUA=; b=R/D2M1qhkP1jxcWjiFaH5mJqvqIdN5NeT7QDFK9exs3uZGRC/+lgo48NSXFh+of3xu ptcSi9d2Zqsc/geV/72NAZkKNjUdDjQepMf25nJoxMssZIlWG6sefg6sf8OS2TgLD154 aTI/nR/PkZJl793KbXM0bMBr0I9gifQy8B3NZJMSmJSHNHHOdNGcq29lhzXo3qybg6NP lnAyYa68HmTZAQuJRQpqquBMCmzNa9X0mwj5F4ldHxiuGynd2v6JRv8/1dMCwFd+Bad6 Lm+JeySafZhYHw+1spqqgNBKKlJJfrNygKL0G41bcSkGLyL7G+sCZ9/3AZYObBqtxT7d SeSw== Received: by 10.50.152.137 with SMTP id uy9mr2021161igb.62.1353632031662; Thu, 22 Nov 2012 16:53:51 -0800 (PST) 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 n20csp282415igt; Thu, 22 Nov 2012 16:53:51 -0800 (PST) Received: by 10.60.8.35 with SMTP id o3mr1693771oea.2.1353632031048; Thu, 22 Nov 2012 16:53:51 -0800 (PST) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx.google.com with ESMTPS id k6si4250849obd.175.2012.11.22.16.53.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 16:53:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.214.182 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) client-ip=209.85.214.182; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.182 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-ob0-f182.google.com with SMTP id 16so8424992obc.41 for ; Thu, 22 Nov 2012 16:53:50 -0800 (PST) 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 Cc: Russell King , Jason Wessel , 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 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: ALoCoQkNXCgkEuAFzYKtLewvFTmvDWe1Nvy+z+Sk82sC2sZmi+fspbEPETWSmFQ9j92mWyk/6k6F 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)