Received: by 10.213.65.68 with SMTP id h4csp1820401imn; Thu, 5 Apr 2018 04:29:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx49F7P7nN3PGm/PGwac/EW5CRhiPAeXA3AXN+Ljvq/ng5Oe/QOAmZxqIxOk1Curc+Id+c+dR X-Received: by 10.99.4.214 with SMTP id 205mr14389838pge.375.1522927757660; Thu, 05 Apr 2018 04:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522927757; cv=none; d=google.com; s=arc-20160816; b=BoYAO7q6aFrP0X0m2H4aYuKIpx0qwSdemuuJm5ICS8YuQCSxPvNZ01Vf8T0dgVQWuB 1N6vRbdi1RRMTFEnWJgtzeBgXTwgcc6a1NmLUsuQRbdCGqxGr61uJNcSJLqh5P3JsDyO EmfBQ3k52X6TjEdGQZqsMZzVKY7v7vYaoGvMGf/8ghH+tHvB8hGV1JRCtIbUs9GFBBJq MC/RE5xWobNjLv4LFevArGED9/eSLql1Yk9RCR4IjqbC/w4MDFiCnaHgsV7kFLtV+jtD rXovlzVXJLU2OiqKzeJTYxafJ8+ijsenFk++pAx7vbjdCnIVr3xTIZxtjRRVt5ZD9I1y q+RA== 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:arc-authentication-results; bh=m83Tu2z8wMFDLpKRzs/af1oZaJFHCvwSj+e7q3PQW0k=; b=DsP86CxbYUZk7jZQWaL/K5d2x25iEeQMZ+AjFaDb5vipSBOQC//MK+9JEz1Ir2lUoO d9qSaFuvO8J4aCKGvBToKpQQ/K5YBZx8ptYXBzEYIlq+cll/SqYLo8YYhzrVoqZus/se emcf0CJjVTr5sVNkscamW/fdZwn7qJtc+1vEQMZejtPz2RAFuxBlgEhyQohNOThl+N3A A3vUMGmhiR2us9Kj6r/zCnMRexXwmTpaeP509Y5eEGDjiiIiVXTLQQz0OZOjWcaEIbEE MqnGR9xpRJvomgAsGCnE3XQu4kiSYyKFFQQqpg0Rzyr6WuGn7ugPoWDqOzbyGtdRb0Tt BMIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tMqk4Z52; 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 o5-v6si5831091pll.667.2018.04.05.04.28.32; Thu, 05 Apr 2018 04:29:17 -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=tMqk4Z52; 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 S1751461AbeDELYZ (ORCPT + 99 others); Thu, 5 Apr 2018 07:24:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52798 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbeDELYX (ORCPT ); Thu, 5 Apr 2018 07:24:23 -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=m83Tu2z8wMFDLpKRzs/af1oZaJFHCvwSj+e7q3PQW0k=; b=tMqk4Z52SdpPGGf+0xaWU2Cwy yKmlsBXRbpVSUDfFJFmAxIGNA/y1wnnl0mIhtcjUKepzNgsaSRfaKLw5PXRBoVgYcFKv+fmuabyBN FyAQC0e3yK2es3e1SPEzPfDMMX5NtQL9tDHMNNI4PsqFTpQHGHQRSyWq9WXh4X8NZ7b4I1XSWuUIs on/67L7NDlXU+/t4LDcuJ/VjGzD32PBQMgazr9vXpDhdZCTHknCQ+2lFJmVWRuxLGB5SFCyuVph6m Vr776N/BZb+xGXXthaiKBvBU6hefaValaG+Xd+6cmb6wLNJ7RsZkvd4Mcf1ixf16sg84cG6d5WA+f mYhYBSo3A==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f42zm-0005hW-1b; Thu, 05 Apr 2018 11:23:58 +0000 Date: Thu, 5 Apr 2018 04:23:57 -0700 From: Matthew Wilcox To: Jia He Cc: Russell King , Catalin Marinas , Will Deacon , Mark Rutland , Ard Biesheuvel , Andrew Morton , Michal Hocko , Wei Yang , Kees Cook , Laura Abbott , Vladimir Murzin , Philip Derrin , AKASHI Takahiro , James Morse , Steve Capper , Pavel Tatashin , Gioh Kim , Vlastimil Babka , Mel Gorman , Johannes Weiner , Kemi Wang , Petr Tesarik , YASUAKI ISHIMATSU , Andrey Ryabinin , Nikolay Borisov , Daniel Jordan , Daniel Vacek , Eugeniu Rosca , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Jia He Subject: Re: [PATCH v7 1/5] mm: page_alloc: remain memblock_next_valid_pfn() on arm and arm64 Message-ID: <20180405112357.GA2647@bombadil.infradead.org> References: <1522915478-5044-1-git-send-email-hejianet@gmail.com> <1522915478-5044-2-git-send-email-hejianet@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522915478-5044-2-git-send-email-hejianet@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 01:04:34AM -0700, Jia He wrote: > create mode 100644 include/linux/arm96_common.h 'arm96_common'?! No. Just no. The right way to share common code is to create a header file (or use an existing one), either in asm-generic or linux, with a #ifdef CONFIG_foo block and then 'select foo' in the arm Kconfig files. That allows this common code to be shared, maybe with powerpc or x86 or ... in the future.