Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp926262pxb; Sun, 11 Apr 2021 01:49:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtyOKwZ5bkOdH7+Fobihb24+U1NiMGhAM8u+nLwvGltDlMLgeAq2/MTYjw7yXgDUW6zq61 X-Received: by 2002:a17:902:bd8f:b029:e6:ec5a:3a6 with SMTP id q15-20020a170902bd8fb02900e6ec5a03a6mr21617131pls.31.1618130962514; Sun, 11 Apr 2021 01:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618130962; cv=none; d=google.com; s=arc-20160816; b=q6g3x5cGGGgFGoY7MyxindByijnRtH1xG/3Gyt4UV14y49rARYCe9nS2eXR8dOETwz HLZgBzr1de0Zcyt2aF7WATeI9eL5jq5UQ4720tkfRn0SVjFsAMeEv86O+cgXZetYosdq CRyv6QpfshZfXm0zYZnBWg5S1hheXg8p26dChhnt8Vib0iO0feGblQGJuqUxxhb0wjDC dYwXb4NpH4MYd5XmKN5cHrAT6Q2s0HgblHrtnIH5dDa4ogHBEyP50lu2+yinuRREbwaN N82AXfkHOsETptfxJVQ39d9ywG2v1NkWAJdYsKyBkCjVnICXVdFRjeHagKmlnwqch1ee EZDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=PNOD3e4Bvow9nLJsfKEQMHPWuCMSbudN01yK3jBXRHc=; b=u3F0utsLS0TuJdCe/NfmNj++52Fw7+pT7G/XUNyD4w5l9+tHRoGgnLODOE+dUk2VZy EusUwllpHs51xA8KMU6U+95k0xkVJy4bkJ5Sx7mTyyXrqBfnNWcNbijRER1omeSSwZJm engJ8io4Rm4ncrdy/IF5fM6VxGkdds731qzaQ18hfOVPwEa/jbyzUq50Cfu16yPCrOSx WtRt9N7t3SSo0jFALrPo8Mj5pve52qzKVKW4jIPHYZyf2vR2pLMY6xYJiXC3HIacKNqE AHa7eyzF224J+IF2w2W7G1+WEGhzQ1jdGMiYUi0OsBB8xshxILpYmOsyXpiJzvrEifmH Jsww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b="NbR3G/Qh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me6si2637719pjb.172.2021.04.11.01.49.00; Sun, 11 Apr 2021 01:49:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b="NbR3G/Qh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=web.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235079AbhDKI2o (ORCPT + 99 others); Sun, 11 Apr 2021 04:28:44 -0400 Received: from mout.web.de ([212.227.15.3]:47191 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbhDKI2n (ORCPT ); Sun, 11 Apr 2021 04:28:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1618129701; bh=2ckt1f+rI93dlvOrZNcI1/4dZNPyKFvyBbigdaF7+C4=; h=X-UI-Sender-Class:Subject:From:To:Cc:References:Date:In-Reply-To; b=NbR3G/QhqoVEds/ulzGvB5EOjYsAWITrBzpkLB+YuQH6loO4iiEv/TPRHqUOJGioN L151xNO5j6ejePK6UmTCmiCKOx95HCrFhwathjjYvznxjE3RzfkdPtTJBALbDxA67N jS6nsOMIR6UtuCEPQX99Ek39D0gXpqwuTqD/gAvs= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.10.10] ([88.215.87.53]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MGzFy-1lHhq32GjS-00DrNA; Sun, 11 Apr 2021 10:22:21 +0200 Subject: Re: [PATCH v2] x86: pat: Do not compile stubbed functions when X86_PAT is off From: Jan Kiszka To: Thomas Gleixner , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Cc: x86 , Linux Kernel Mailing List References: <198c94a8-12ea-88e7-6f08-b3456473e5c3@siemens.com> <87r1z6xxh5.fsf@nanos.tec.linutronix.de> Message-ID: <802cefc7-b475-c6d6-ece7-8232d7f3891d@web.de> Date: Sun, 11 Apr 2021 10:22:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:7cUiODngEyb67AZXSzX9NnIuKfYRJl9/UAOm7HtTkJn1FFEVys/ PfUMmTdaPUfIeSNIfGgiWwZsrmPIEn9DI95s1ENfEx9wRYMcN8OKJXC0dxIxDIPrzm9xusx NRolWA7vUay/7xgNFjrsR7BG+wqE6rdzaNuP0m8fROL0Iu0A15KyHfldkTrBn8gs7uHHKJw mek0sJ/GAVbCv/LLp61Ow== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:WbgiMBI2ofQ=:L+N0ksEG3oJuKH38H67GEL Hsx78jVaUlea+YJ12cw+ulNOTxw3OhUAo9S9iwc0Qnru3Y25GEHD7kLz9jxeqCgC/O8YxV942 ckUIYP9Js7d7wS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uG3pFc5GWG UA2hb6OuagYxFPxciB0DFZHsi06OnpY88rFX4bqPdxJT9FTZUSHJoeaif1aat28Ny9exk= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26.10.20 18:39, Jan Kiszka wrote: > From: Jan Kiszka > > Those are already provided by linux/io.h as stubs. > > The conflict remains invisible until someone would pull linux/io.h into > memtype.c. > > Signed-off-by: Jan Kiszka > --- > > Change in v2: > - correct commit message > > arch/x86/mm/pat/memtype.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/mm/pat/memtype.c b/arch/x86/mm/pat/memtype.c > index 8f665c352bf0..41a4ac585af3 100644 > --- a/arch/x86/mm/pat/memtype.c > +++ b/arch/x86/mm/pat/memtype.c > @@ -800,6 +800,7 @@ void memtype_free_io(resource_size_t start, resource= _size_t end) > memtype_free(start, end); > } > > +#ifdef CONFIG_X86_PAT > int arch_io_reserve_memtype_wc(resource_size_t start, resource_size_t s= ize) > { > enum page_cache_mode type =3D _PAGE_CACHE_MODE_WC; > @@ -813,6 +814,7 @@ void arch_io_free_memtype_wc(resource_size_t start, = resource_size_t size) > memtype_free_io(start, start + size); > } > EXPORT_SYMBOL(arch_io_free_memtype_wc); > +#endif > > pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, > unsigned long size, pgprot_t vma_prot) > What happened to this? Jan