From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Klauser Subject: Re: [PATCH] openrisc: add forward declaration for struct vm_area_struct Date: Tue, 12 Sep 2017 09:42:05 +0200 Message-ID: <20170912074204.GF5028@distanz.ch> References: <201709080345.bk1IOlp7%fengguang.wu@intel.com> <20170908082508.14325-1-tklauser@distanz.ch> <20170908152911.GQ2609@lianli.shorne-pla.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from sym2.noone.org ([178.63.92.236]:39446 "EHLO sym2.noone.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbdILHmI (ORCPT ); Tue, 12 Sep 2017 03:42:08 -0400 Content-Disposition: inline In-Reply-To: <20170908152911.GQ2609@lianli.shorne-pla.net> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Stafford Horne , Arnd Bergmann Cc: Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org, linux-arch@vger.kernel.org, kbuild-all@01.org, kbuild test robot On 2017-09-08 at 17:29:11 +0200, Stafford Horne wrote: > On Fri, Sep 08, 2017 at 10:25:08AM +0200, Tobias Klauser wrote: > > After removing linux/vmalloc.h from asm-generic/io.h, the following > > warning occurs on openrisc: > > > > In file included from arch/openrisc/include/asm/io.h:33:0, > > from include/linux/io.h:25, > > from drivers/tty/serial/earlycon.c:19: > > arch/openrisc/include/asm/pgtable.h:424:2: warning: 'struct vm_area_struct' declared inside parameter list > > unsigned long address, pte_t *pte) > > ^ > [..] > > @@ -414,6 +414,8 @@ static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) > > > > extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */ > > > > +struct vm_area_struct; > > + > > Acked-by: Stafford Horne > > I was kind of wondering whether is better to include linux/mm_types.h or > linux/vmalloc.h here instead of the forward declaration. But looking at > how other architectures do it; about half do the forward declaration, and > half use an include. So I guess this is fine. > > I noticed you were getting a lot of these patches done for removing > linux/vmalloc.h from asm-generic/io.h. Do you want me to push this > through my queue or are you planning sending them through another route? Arnd has applied the patch removing linux/vmalloc.h from asm-generic/io.h to his testing tree to give it a good amount of testing before it comes anywhere near linux-next. I'd say it's fine if you push this through your queue as long as it hits Linus' tree before my patch (which Arnd will submit, I suppose?). Arnd, what would you prefer?