Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3156099ybb; Mon, 30 Mar 2020 22:37:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvA9nSy8TYkb88E4p/fOAj0N4holU1Osdyo28gDGVx1QsyhNTLGLSMH8OfxmTMJKVcgI17m X-Received: by 2002:a9d:6ad8:: with SMTP id m24mr2050071otq.66.1585633068895; Mon, 30 Mar 2020 22:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585633068; cv=none; d=google.com; s=arc-20160816; b=Xt/N210pWRma/JAK6CkMUT1l6ND0gHfQB5/WyCkqcKKlKDAvd+0215k7EQb4trDpRV blmUAOdnENOjuI6CVQFrCMNq+p+m3EVv+reZsd7QJwxMb2pGSySKUBn90Hf3k3TbmCD+ cnvgJwNZHM5LuzprzusVf1V4jNSFkFw6sHXEm6C73z14SAtGezcqOtrDTsVNJSE0q9Eq ma6Bh4JuQtcbqKXKDmRJVkI6aPPIz9iGy65+HuBmxK5ycl4yM7D+2RZj5czsqpejtKTl UspGnzA9l+mMF/Tam12oN9rvaoWKNg079xNPSspZqMZAQfT4il0QPqBLly+ZyHV5dKH2 uStQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=AN/hgL7TakZuTdban82C5fn1stBKSxokpH8uBAskRKk=; b=tXkhipYkhJgrXMA9cmQCm+gsSJPMtW7vyZVQ62FuwNHSkVoq0s75FGE8IPRgf7OuVB e0mgOYHhVjiRzmQ2z+sx9Q0f8IhaYapdhkjtksnk98BlGN8/hrQiJAMKIIi14IYAxhdk qpWR/t3jsmc11VsAS2vmdPq2mBUKMsAIzHLCDsWfLrjfWi9mTyG8+4+kZ9o7cVi+ny0s UIbAaeMMXLviKzNiM1ZE3I2b5x8fxRE8ngYUR7jt3d4nDSWDbyx7Gs47oOigh4o1pJJW q2x2wuuPOvsa1oP4DPD4iCvo/0s9Ewr97O+qcsBYpU15YCVje6PcStO6vjXgxRMGLu68 BCEw== ARC-Authentication-Results: i=1; mx.google.com; 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 z78si6710311oia.200.2020.03.30.22.37.29; Mon, 30 Mar 2020 22:37:48 -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; 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 S1726533AbgCaFg6 (ORCPT + 99 others); Tue, 31 Mar 2020 01:36:58 -0400 Received: from mail.loongson.cn ([114.242.206.163]:42364 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726236AbgCaFg5 (ORCPT ); Tue, 31 Mar 2020 01:36:57 -0400 Received: from [10.20.42.25] (unknown [10.20.42.25]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dx_9vz1oJeiPghAA--.2S3; Tue, 31 Mar 2020 13:36:52 +0800 (CST) Subject: Re: [PATCH 02/39] MIPS: loongson64: Add header files path prefix To: Jiaxun Yang References: <1585557531-18849-1-git-send-email-maobibo@loongson.cn> <53CC90A0-3926-4642-91D4-F4F265F6AE90@flygoat.com> <778df899-4dc4-c2be-5b7b-79c16223b0fb@loongson.cn> <1712ea7ba9a.dad1f80a33831.4741900511750683483@flygoat.com> <8b7b3b19-d5e2-befb-e781-7be53d2cbd54@loongson.cn> <3200DF9C-25CE-4563-B9EC-F81B375E4028@flygoat.com> Cc: Thomas Bogendoerfer , Huacai Chen , linux-mips , linux-kernel From: maobibo Message-ID: Date: Tue, 31 Mar 2020 13:36:51 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <3200DF9C-25CE-4563-B9EC-F81B375E4028@flygoat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9Dx_9vz1oJeiPghAA--.2S3 X-Coremail-Antispam: 1UD129KBjvJXoWxuFy8KFyxuF1fAryDCrWDtwb_yoW5AF45pa yIya1j9r4UCr1ktr4Iyr47Gr40yrWrtFykWr15JryUu3s0gwn8J3yxK3yUur9xZr4rGF1j vrW8t39rCF1UZ3JanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkvb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21l 42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJV WUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAK I48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r 4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF 0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07bOoGdUUUUU= X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/31/2020 12:21 PM, Jiaxun Yang wrote: > > > 于 2020年3月31日 GMT+08:00 上午11:53:41, maobibo 写到: >> >> >> On 03/31/2020 11:34 AM, Jiaxun Yang wrote: >>> >>> >>> -- >>> Jiaxun Yang >>> >>> ---- 在 星期一, 2020-03-30 18:00:19 maobibo 撰写 >> ---- >>> > >>> > >>> > On 03/30/2020 04:55 PM, Jiaxun Yang wrote: >>> > > >>> > > >>> > > 于 2020年3月30日 GMT+08:00 下午4:38:51, bibo mao >> 写到: >>> > >> Remove header files from arch/mips/include/asm/mach-loongson64 >>> > >> to arch/mips/loongson64/include/mach >>> > >> >>> > >> Signed-off-by: bibo mao >>> > > >>> > > Hi Bibo, >>> > > >>> > > Thanks for your patch. >>> > > >>> > > What's your intention? >>> > > Did you meet any problem about headers? >>> > > >>> > >>> > Hi Jiaxun, >>> > >>> > When I add irqchip support for mips kvm, file virt/kvm/irqchip.c >>> > requires local header file arch/mips/kvm/irq.h, it fails to >> compile. >>> > Since there is file with the same name located at: >>> > arch/mips/include/asm/mach-generic/irq.h >>> > arch/mips/include/asm/mach-loongson64/irq.h >>> > >>> > The compiler fails to choose the correct header file irq.h, >>> >>> You'd better rename kvm's irq.h in this case. >> why should we rename kvm's irq.h? It works on other arches like >> x86/aarch/powerpc, it does not work on mips platform. Just because >> these >> header files are not used with path prefix on mips system, it brings >> out >> such problem. >> >> Today if we modify generic kvm code, it maybe brings out problem with >> other modules tommorrow. Else we declare that these files can be >> defined >> locally on all modules: >> cpu-feature-overrides.h floppy.h ide.h ioremap.h irq.h >> kernel-entry-init.h kmalloc.h mangle-port.h mc146818rtc.h > > It sounds reasonable. > But I just don't want to rush into this kind of tree wide > "scrub" unless the problem is urgent. > > For your problem, a simple workaround might be fine. > > And there might be some reference to these mach headers in other subsystems. > > Please examine them extremely carefully and do compile test with > all yes config for all the platforms. > > Thomas said he is going to drop some platform support in this cycle, > so you can do less work after that. I also think that it is a big patch for just one conflict header file, however it is actually one issue on mips platform. This patch set is not urgent, it will be better if Thomas drop some platforms support. It's just my option to move headers to platform specific directory, We can discuss for better method, after all it is common code. And I actually do compile test with all defconfig. If we need test with all yes config for all the platforms, does anyone do so if common code is changed? Maybe he can teach me how to do it. regards bibo,mao > > I'll miss these header hacks anyway. > > Thanks. > >> >> regard >> bibo,mao >> >>> >>> > >>> > regards >>> > bibo,mao >>> >