Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2900822pxk; Mon, 28 Sep 2020 03:15:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznC1o4VhtkDrt+yB90qQSlodhYSIewObFhHhmOYLAjMJ+SrWRHl4bp+xWNlLN0CzOjMwAV X-Received: by 2002:a17:906:5490:: with SMTP id r16mr875177ejo.222.1601288145295; Mon, 28 Sep 2020 03:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601288145; cv=none; d=google.com; s=arc-20160816; b=iA40vmYRv2cuuITDo+BqnKU6MfSs3yyo+0QlakZexh8fcr1ZH00Rm0WNgCTmLhzBH3 MimcmaTa1Qd3VXgkoEyC/64Rm2Xr9+W1ZdESIH9KWCyxLMd5U9vZmb8pjulTzd8bn4YZ 4sZfBVAhWaj/jul51GjOxV+PaokjL4JC6FQdHbq+RRzQ5CIQwo14re+aYluGz29wR1C1 cF59+Hprz8z0N2m5Ghzlsg4KiswsaQ+KG0pk5fokdjG/eSj+UXk3SYrY9KffVzEsiMId w81L7Og9g+d8IM0e3V9fMooANf20lIiHSDB2B2Y+EKSZDZ7eWJgESdPWhJ8/h5SqhFd+ RCIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=7sgTeVLvLeSQvkNniwe9wr5TNxpCRtDL+X32iGc1MCc=; b=aFlkk7jxGxAyoJ6a13VznFTLOrzIi353kXL3OcBqQIUUPBbh17kv+THJ2L6iCy82qz ZXAlaUNS10rNdKISYF1pBzkjq9J/JGzUK+QsbWZqNubo9Hnv1j9D5t+VqUyRKhAlgAzO 6EVHh0Wz+SlFM8DhoM6EQaA3/s9AeVJVD/Pc8AiMIukxkphkrGyHWKe6WffEHzv1CdAx c66ZePCCY1rWDWj5JF+Z5zHoW7LH0LMqIUjHaVf61PQd30pq/2GhQuhPH3wswBjcOD8u aZ67HG9/j/mu17u/W/vSVEA9tLBQQ18Hg77oJvs54X6OM4ySIP9gQN76AxQUwW4XoUnQ 6A0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iPfwpp3k; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx20si309770ejb.469.2020.09.28.03.15.22; Mon, 28 Sep 2020 03:15:45 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iPfwpp3k; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726600AbgI1KNm (ORCPT + 99 others); Mon, 28 Sep 2020 06:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbgI1KNl (ORCPT ); Mon, 28 Sep 2020 06:13:41 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7E55C061755 for ; Mon, 28 Sep 2020 03:13:41 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id u3so362468pjr.3 for ; Mon, 28 Sep 2020 03:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7sgTeVLvLeSQvkNniwe9wr5TNxpCRtDL+X32iGc1MCc=; b=iPfwpp3kKMvGkz1xjGNkMSNsdE7T70NThsV5YNMEgCWNTgv/RZLxCwl194fLWz3k/u HrYQceGM04KbL+JAnVEkr0TVjUj6WqNHNxdWUr8cmijiAvcasz34qBc4LI2mAenBG6DN cRRHw6qC0/dAAM/atDPXU99roc77OJKCn1t1UW5MQoGbjEWSVRyn1x0FCKU/LgUYyfzv h1xsJakekPBhgWgt/rDUw8Yd2l4NeJY0q85c6YBS5cijM9QRw0DYbKyzVLDdBM/aC7BB xtBAtkrdE950JcKyu3q36Uu4BOwg9xt/3PiecxGECuIwgyicRDJzRdds0Uh3pW1tYuET HqSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7sgTeVLvLeSQvkNniwe9wr5TNxpCRtDL+X32iGc1MCc=; b=s8r4RheAqxdE0tKwnZoXFlkIDLc7Q/sHklqXHWhUokjvbcWuidslu4lXRsySx2G8rA DARvSTHCSMq+Nns5+cLtDQU2M9zQ5XAAm2tdsEWKTTXhVdKqFlu0ztKNTyJ8+ZejZaUd 18TUiqz2EMjOgrn1E3u01iHhWo97J5xOSnjEnB42/wa2wstu5KvvjKZP8W2wqc/WlIaz ufvsx5N9KfAxM1AHmmeBcv5mtf/TVmne7g3xYiUyJi2kgdUVJziF0vepRn2Fs8X1ejlf /ywf1Z1ji7JcsnixTXi+GTM8NNQYs+AodtlHMp5dHpZZywI4UVPPhdlw6ZTq2Hrwi26O 8rPw== X-Gm-Message-State: AOAM533hADK6ofJS6itUhBjNFVi628qVmWH0CuA0Ar8xiuqi+MghiPFS bbdngeVPKGokx8W4Zu0bqw== X-Received: by 2002:a17:90a:8c83:: with SMTP id b3mr672760pjo.206.1601288021409; Mon, 28 Sep 2020 03:13:41 -0700 (PDT) Received: from localhost.localdomain ([47.242.140.181]) by smtp.gmail.com with ESMTPSA id 1sm865539pgm.4.2020.09.28.03.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 03:13:40 -0700 (PDT) From: Pujin Shi To: Marc Zyngier , Thomas Gleixner , Valentin Schneider , Stephen Boyd , Lina Iyer , Maulik Shah , afzal mohammed , "Gustavo A . R . Silva" , Masami Hiramatsu , Steven Rostedt , Andrew Morton , Kees Cook , Dominik Brodowski , Arvind Sankar Cc: linux-kernel@vger.kernel.org, shipujin.t@gmail.com Subject: [PATCH v2] MIPS: irq: Add missing prototypes for init_IRQ() Date: Mon, 28 Sep 2020 18:12:41 +0800 Message-Id: <20200928101241.1240-1-shipujin.t@gmail.com> X-Mailer: git-send-email 2.18.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org init_IRQ() have no prototype, add one in linux/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 --- include/linux/irq.h | 2 ++ init/main.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/irq.h b/include/linux/irq.h index 63b9d962ee67..4e8c462e00fc 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -585,6 +585,8 @@ enum { # define ARCH_IRQ_INIT_FLAGS 0 #endif +extern void init_IRQ(void); + #define IRQ_DEFAULT_INIT_FLAGS ARCH_IRQ_INIT_FLAGS struct irqaction; diff --git a/init/main.c b/init/main.c index 1af84337cb18..63c7cd1f2131 100644 --- a/init/main.c +++ b/init/main.c @@ -110,7 +110,6 @@ static int kernel_init(void *); -extern void init_IRQ(void); extern void radix_tree_init(void); /* -- 2.18.1