Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1749281ybg; Sat, 19 Oct 2019 01:40:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPmCc8huRjtzPZDt3uAUvSchCUWbHtHtX9VECHRdy59+GY8dz3iQVB7tQcvNb5JDfbFEW9 X-Received: by 2002:a50:f152:: with SMTP id z18mr13876935edl.263.1571474427998; Sat, 19 Oct 2019 01:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571474427; cv=none; d=google.com; s=arc-20160816; b=mRcJrKTcyxCLBToJcMMvNR2jM1oOejo+9cy/tkvMtEPJknpilZTteMtkgoz47V3l1j UglkXieA9LOPky/FKPmExpvKJDpe1JVNM6P7qO6PDO8c1L3w6jBmp3AkQTawKKAQKog/ +w3kPlZeOsh7Eugflwc//FKRi5O7TVSkel/eXoN7v5VNfuupRAvr0nsv1wOHcqVaGITi vuhZOi2u+JrR1sE1uPJW7efSNmw2PDW1DuYZ6xiJ+g5YVx36QhPeBcKl5d817IrUqg20 BVSwCp2mkeR17nK4Xdh/vt17DdJAHHPIMAlLnXZXqsxE/dNmSG9uN8rKrROHBVY63i1B B96A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5P2/Q5uNdWC7gPxFG0sFJVyz5bFotTHqNeNc806Tbx8=; b=fUHRlSHiEJbakzi7UOKykdxM1dc+uiptUT/tXLMrtF1WpF9MUlslqu98h/oeTsDyvO bMhcINhkR6yNl8Mf3GLggxOUAS5EEAcVTeERZJl9V8hWKJJKPx795tJ0Ru97bFYsq4PY kdVg4dXIc4/PGyIrJgJIy3XkTNQ6SamDisqanS/vOky+rukEhcfk5PtD6trmasIACJXy bNP2BDZaCBgvBtpdVNPEKUVDDrQsMiBX37KJNH5z+U7kDEN40kFvfLkWtn7jzckjHo6A Ys/B/07CVcwFgS9PbSqUmjTbKwjY8I+RuhNyneeANPD8o2fy6yfX+SlN1sRVXy6ZGdR6 t72w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=E6tZs0VB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si5055829edq.209.2019.10.19.01.40.04; Sat, 19 Oct 2019 01:40:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=E6tZs0VB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732226AbfJRPy7 (ORCPT + 99 others); Fri, 18 Oct 2019 11:54:59 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38502 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfJRPy6 (ORCPT ); Fri, 18 Oct 2019 11:54:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5P2/Q5uNdWC7gPxFG0sFJVyz5bFotTHqNeNc806Tbx8=; b=E6tZs0VB5iwu/Zvl8DwieKUif XJKZ9+LBDZOf8rVgUxTadQFoywPH5MKT3g0FcWmAXLHi5MInDNOgK28BhdSvSXBDafev4ZiuN9geE JiGz+mVyd3Rp9M7Po2T/TUZ9OfMTpmi8mM44/jx5B1jBGbHppXfSWS1Xor1MVd4c8P99ycOyU0mJj MzcuhweeSqpTFvin1o+IGoNNw9bb1axpQwb2m4tHEnmiT0FuSpNow2WLV3cUMOOfpVbnFUZAkVzpZ aBbtSDN+okX29UiX26OywSv6tCruqYcLcSkmUTu0tAqvFzR+3+eutXwYJxgCBuxXzmM+Yh5rk0x+1 iT5Roon+w==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLUag-0004VQ-CV; Fri, 18 Oct 2019 15:54:58 +0000 Date: Fri, 18 Oct 2019 08:54:58 -0700 From: Christoph Hellwig To: Paul Walmsley Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/8] riscv: add missing prototypes Message-ID: <20191018155458.GB25386@infradead.org> References: <20191018080841.26712-1-paul.walmsley@sifive.com> <20191018080841.26712-5-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191018080841.26712-5-paul.walmsley@sifive.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 01:08:37AM -0700, Paul Walmsley wrote: > > diff --git a/arch/riscv/include/asm/irq.h b/arch/riscv/include/asm/irq.h > index 75576424c0f7..589e2d9fb2a6 100644 > --- a/arch/riscv/include/asm/irq.h > +++ b/arch/riscv/include/asm/irq.h > @@ -12,6 +12,9 @@ > void riscv_timer_interrupt(void); > void riscv_software_interrupt(void); > > +asmlinkage void do_IRQ(struct pt_regs *regs); This is another __visible candidate. > +void __init init_IRQ(void); This one is called by the core kernel. Please instead lift the extern in init/main.c to include/linux/irq.h or some other suitable header insted of working around the issue in arch code. > index f539149d04c2..ab56435de629 100644 > --- a/arch/riscv/include/asm/processor.h > +++ b/arch/riscv/include/asm/processor.h > @@ -78,6 +78,10 @@ int riscv_of_processor_hartid(struct device_node *node); > > extern void riscv_fill_hwcap(void); > > +extern const struct seq_operations cpuinfo_op; Another generic issue, Ben Dooks has started looking into it already. > + > +void time_init(void); And another one that needs to be solved globally and not worked around in the architecture. > diff --git a/arch/riscv/include/asm/ptrace.h b/arch/riscv/include/asm/ptrace.h > index d48d1e13973c..c851c095b674 100644 > --- a/arch/riscv/include/asm/ptrace.h > +++ b/arch/riscv/include/asm/ptrace.h > @@ -101,6 +101,8 @@ static inline unsigned long regs_return_value(struct pt_regs *regs) > return regs->a0; > } > > +void show_regs(struct pt_regs *regs); Again, this needs to go into a common header, no arch code. > + > #endif /* __ASSEMBLY__ */ > > #endif /* _ASM_RISCV_PTRACE_H */ > diff --git a/arch/riscv/include/asm/smp.h b/arch/riscv/include/asm/smp.h > index a83451d73a4e..d19dd2e2e1da 100644 > --- a/arch/riscv/include/asm/smp.h > +++ b/arch/riscv/include/asm/smp.h > @@ -15,6 +15,8 @@ > struct seq_file; > extern unsigned long boot_cpu_hartid; > > +asmlinkage void __init smp_callin(void); One more __visible candidate.