Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2167257ybf; Mon, 2 Mar 2020 03:21:44 -0800 (PST) X-Google-Smtp-Source: ADFU+vteqELXBVTvon5BSScKalxVd0YCU4fRrmrS0p2PZq23jHDk0Gw+Z1oNpHD6qNhNs+Uo3fy4 X-Received: by 2002:a05:6808:b29:: with SMTP id t9mr2103025oij.64.1583148104091; Mon, 02 Mar 2020 03:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583148104; cv=none; d=google.com; s=arc-20160816; b=zlFSjJuvwnMP3MSFyKrz5qIB2NSjE87tWj0QlUPAQ+8aW4q56LrZnL/GdPa3KOfCon 4GiHjv6BaVZMvZZ9GsHY0n2+g530QPdFcD7lJIq7UBpDG6wY2oNitET/v22QTDxJ7mmD ydtrtprpiOO9txrlTR3lPlC54gnr68J36VWJbRfYSB5h8LYA0dXVIyihzGEYPzg8Y2yw fXnnGOppcdQlVUYXwVjUe6BPEjMT4Z7LMogVbNmclxkqzMenJri+yLg8LFktPdcBVh3i EEgw4XtKyDPTpltkzjSIoI/ituL1HU9VQsKKBevdjE9VSZIiKDqmvXvi+rAvnQ30C9+3 nRkA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=W0AEuRxwaNTM1wIbdflqt1mDaAQNU2XGAUPwGpFwfWw=; b=MSK6105BKVir+Q96ffdLCNLpJo3QileE7OCVUoSP6LIEd9he/gcKYTAnlmdvzXEkQC POQaziPzizWgOD05Xsirxy6LPJkdKnRYmJjgAQ5G3PO1LZ+zmKOnnsxFYjSfnsqBchht ZsgyMs0HKhO/TlCbRNZ5IcuOJZ3xh8M7QJH2NwDi3yuftLfpcHdG6G7chuIxUy0i2TXm ENtxBFwg1pv9VuckpIlT/YSL0jdw3vykdDKatApaS+/03HJqMVxlzbSGSIQgRsdjI2E6 l0SrYctjWbaDkVf2mD8vWikNFD/Ph4Tnol5QN56x6DJHYEh5qCHA0FoPw5rWOYs8rGPQ l5Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hTNTiGkP; 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 p3si6471694oih.186.2020.03.02.03.21.32; Mon, 02 Mar 2020 03:21:44 -0800 (PST) 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=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hTNTiGkP; 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 S1727644AbgCBLVX (ORCPT + 99 others); Mon, 2 Mar 2020 06:21:23 -0500 Received: from mout.gmx.net ([212.227.17.21]:52817 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgCBLVW (ORCPT ); Mon, 2 Mar 2020 06:21:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1583147984; bh=W0AEuRxwaNTM1wIbdflqt1mDaAQNU2XGAUPwGpFwfWw=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=hTNTiGkPrHFpfzTv92CxoDj+m/u7w8wulahh2YNUZ3ilgCKTOf7jYgAY8yD9Ao4qv SytwzZHwpUWQzFzBhJtl2DIhQoCUV/ToAeRl5zIDJgbyNck2JHuucSsXxomLmXYLp/ +Dei76MRo/TXrQDxaEk4FvqRCIn9xEsmVcXYatHg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.20.71.51] ([193.16.224.3]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOREc-1ijv5y1FTa-00PwQk; Mon, 02 Mar 2020 12:19:44 +0100 Subject: Re: [PATCH] mm/special: Create generic fallbacks for pte_special() and pte_mkspecial() To: Anshuman Khandual , linux-mm@kvack.org Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Guo Ren , Brian Cain , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Sam Creasey , Michal Simek , Ralf Baechle , Paul Burton , Nick Hu , Greentime Hu , Vincent Chen , Ley Foon Tan , Jonas Bonn , Stefan Kristiansson , Stafford Horne , "James E.J. Bottomley" , "David S. Miller" , Jeff Dike , Richard Weinberger , Anton Ivanov , Guan Xuetao , Chris Zankel , Max Filippov , Andrew Morton , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org References: <1583114190-7678-1-git-send-email-anshuman.khandual@arm.com> From: Helge Deller Autocrypt: addr=deller@gmx.de; keydata= mQINBF3Ia3MBEAD3nmWzMgQByYAWnb9cNqspnkb2GLVKzhoH2QD4eRpyDLA/3smlClbeKkWT HLnjgkbPFDmcmCz5V0Wv1mKYRClAHPCIBIJgyICqqUZo2qGmKstUx3pFAiztlXBANpRECgwJ r+8w6mkccOM9GhoPU0vMaD/UVJcJQzvrxVHO8EHS36aUkjKd6cOpdVbCt3qx8cEhCmaFEO6u CL+k5AZQoABbFQEBocZE1/lSY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Tle7JYGEPlxuE6 hjMU7Ew2Ni4SBio8PILVXE+dL/BELp5JzOcMPnOnVsQtNbllIYvXRyX0qkTD6XM2Jbh+xI9P xajC+ojJ/cqPYBEALVfgdh6MbA8rx3EOCYj/n8cZ/xfo+wR/zSQ+m9wIhjxI4XfbNz8oGECm xeg1uqcyxfHx+N/pdg5Rvw9g+rtlfmTCj8JhNksNr0NcsNXTkaOy++4Wb9lKDAUcRma7TgMk Yq21O5RINec5Jo3xeEUfApVwbueBWCtq4bljeXG93iOWMk4cYqsRVsWsDxsplHQfh5xHk2Zf GAUYbm/rX36cdDBbaX2+rgvcHDTx9fOXozugEqFQv9oNg3UnXDWyEeiDLTC/0Gei/Jd/YL1p XzCscCr+pggvqX7kI33AQsxo1DT19sNYLU5dJ5Qxz1+zdNkB9kK9CcTVFXMYehKueBkk5MaU ou0ZH9LCDjtnOKxPuUWstxTXWzsinSpLDIpkP//4fN6asmPo2cSXMXE0iA5WsWAXcK8uZ4jD c2TFWAS8k6RLkk41ZUU8ENX8+qZx/Q== Message-ID: Date: Mon, 2 Mar 2020 12:19:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <1583114190-7678-1-git-send-email-anshuman.khandual@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:f+ApG8Jvu59vazNgfxUkIj2cuvWszDcxfXbYPk/EcZDTaWVlxCo 7wV7zMdsUJ/8jZFhXwC3GlnyQOZgVfZ0Tqc6R4FGesB2+nbn2jBLiCx5ZMoN/mqbMry/kf9 eyq62oCq0ky/yyNMdBr8GbYpjzbMZG4HJTkzpTwkQJhDroJxo7BbG6rHO3p5L2XUNdF3zq2 93reBzFf1arlhD1Za6wTQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q6U3Fl2yf6I=:XplsiSzKDGRlRZREeUVR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DZ0IbFxy7qaKC8sG78LNuOlbNchq3W73LSpOm6PyA YW7Il+1s6SFWH43UabDkvk2L3d0jC+C3YQN3g+408NwCrXBRG+sFPn1LxcJhZM6VJXeiH/LS0 wO/2Y+Gbr+HFauHL92ZFf9/jnakPUIU8ZXPL2Uy7iz5DK1tYYcFPUv+ftyvVOomXH+YIDiy2O jfcobYAwoNCLoQj25 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02.03.20 02:56, Anshuman Khandual wrote: > Currently there are many platforms that dont enable HAVE_ARCH_PTE_SPECIA= L > but required to define quite similar fallback stubs for special page tab= le > entry helpers such as pte_special() and pte_mkspecial(), as they get bui= ld > in generic MM without a config check. This creates two generic fallback > stub definitions for these helpers, eliminating much code duplication. > > mips platform has a special case where pte_special() and pte_mkspecial() > visibility is wider than what HAVE_ARCH_PTE_SPECIAL enablement requires. > This restricts those symbol visibility in order to avoid redefinitions > which is now exposed through this new generic stubs and subsequent build > failure. arm platform set_pte_at() definition needs to be moved into a C > file just to prevent a build failure. > > Signed-off-by: Anshuman Khandual for parisc: Acked-by: Helge Deller # parisc Helge