Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2292141pxk; Sun, 27 Sep 2020 02:12:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7RJVLDA389lVJszLKYSf5zjb0O429//NCn5q6z9JuNnrfuiGVOr8IP2UlWJJdxsXFHrl7 X-Received: by 2002:a17:906:b784:: with SMTP id dt4mr11174645ejb.376.1601197947546; Sun, 27 Sep 2020 02:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601197947; cv=none; d=google.com; s=arc-20160816; b=QdxkEHiRXeD8LegdnE3W9Mzntp2L/YOXdH1EMjxzEHrOo21rhFfXCaCNG44WWhBFvk SKpd82jCCe+M8+GDRTGc69NzSKQHT27ySRX6SS9Vf/YnMNVrRzOHMwgGEMsOdez1Wbwc TjNGhJA40y7oQvIoPdiJ+6teq2pCzDQDD8utdSUcz3LDC49CR/e4N4LqzmKdBs/5SIdV 3bDksF+1z7a9EqAIWssXVTHvztlvhvUX4/8850FdOHSwAa2r+/SLQ2YvugmgUiiz9LvI 8AtaYbOYFpUxvG8ryrWgpARlOLaQveaBtwWYXlE7zQYO9BHwpPTUwQPMYWlHRTwxL9hj 74rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=4ulTMEAb+XiFwGIMF56du6s7X05PBLUdK3ZnY6SPa8M=; b=auxBkzr5t7BBBbuG58KjgCszPr2DT4GABLon96uGmMA/31TMBxYNo88AX2se19np83 N0LgcvhCCC4tttKl6TJcRzAL/uQuoYu8XA/dhSMH8gaLlsK6edtfL6wn+YYyA/fIMB9S B8CQIAic3X+P1KmsyHtIgdTtsxpm9bPcbBV8BhZ4gNp1kcpUMA1/nnnxFGKf64lZRz4g AP61FBT+bT0JnoI/IZPYxJjwivaxHVP5Lnlc7LBfeUKXGfu1Naw/hSgWQJDBTPNRA5BT wR6U9cD2m0FQRyHSSMi2Pzyh7FdpWAYMNzAb9XW415u3wuzetak8icgEgnyyBnSm7Kzp fckA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si5182913ejz.216.2020.09.27.02.12.04; Sun, 27 Sep 2020 02:12:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726358AbgI0JLC (ORCPT + 99 others); Sun, 27 Sep 2020 05:11:02 -0400 Received: from elvis.franken.de ([193.175.24.41]:59876 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgI0JLC (ORCPT ); Sun, 27 Sep 2020 05:11:02 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kMShv-0001nG-02; Sun, 27 Sep 2020 11:10:59 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 82AB8C1023; Sun, 27 Sep 2020 11:08:30 +0200 (CEST) Date: Sun, 27 Sep 2020 11:08:30 +0200 From: Thomas Bogendoerfer To: Pujin Shi Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: irq: Add missing prototypes for init_IRQ() Message-ID: <20200927090830.GC4929@alpha.franken.de> References: <20200923032650.1546-1-shipujin.t@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923032650.1546-1-shipujin.t@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 23, 2020 at 11:26:50AM +0800, Pujin Shi wrote: > init_IRQ() have no prototype, add one in irq.h > > Fix the following warnings (treated as error in W=1): > arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes] > > Signed-off-by: Pujin Shi > --- > arch/mips/include/asm/irq.h | 1 + > arch/mips/kernel/irq.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/mips/include/asm/irq.h b/arch/mips/include/asm/irq.h > index c5d351786416..992f8040d3d9 100644 > --- a/arch/mips/include/asm/irq.h > +++ b/arch/mips/include/asm/irq.h > @@ -21,6 +21,7 @@ > #define IRQ_STACK_START (IRQ_STACK_SIZE - 16) > > extern void *irq_stack[NR_CPUS]; > +void init_IRQ(void); putting it here hasn't any value. If you want to fix this properly, move the extern void init_IRQ(void) in init/main.c to a common header file and check that every arch to uses it. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]