Received: by 10.192.165.156 with SMTP id m28csp425580imm; Wed, 11 Apr 2018 01:08:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx49a4aYYN7YffEL4u06Q+y7nYh3raTqfqqwE3pDI+J9j7zrHWSuv6P4YDNx1ckL35D6GozsA X-Received: by 2002:a17:902:1a4:: with SMTP id b33-v6mr3951562plb.303.1523434108904; Wed, 11 Apr 2018 01:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523434108; cv=none; d=google.com; s=arc-20160816; b=U3OiwWJxOKWL05hTMNe+8lR9ygnoktTzLhIiV2nVdz56lvonVz9EalMBnBq3kQAwj0 aMZ/kUzD6Aw6dIeq1Jcl8ATr52a6OZiJ1TLxG3QvKCu56rog1MmzaxLKfa4cYQ5tOJkX vb4b77WZwA0vgogTWnzwiaRzOTGb9+XA0fzIFaFeBiPLN6dJ/p18krgjbmEti31wAYWO NKfzniW4YmI3UkgIcuVusm6hIi+MBE5dY4gaEHeS9tilaanv+iCgjJ34HDaDrch0gEsg 0WNFWxf7+EV+aClVtskAZS6vIhxufFru9UgMDiSCcGZBXMsvlX/9w2XFBu5+SmYJbbmb +iiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :arc-authentication-results; bh=NVtP3dRE+LjAAyFfhFEdkOWYvzP3+0ew3sgMUjGhn38=; b=smp2zekG9uqylB0vQRuzt9M5dHli1vxPjLaWX2IOSqHlN++7ALFyUs/lkwzxPTL/2q T3ZcQ8iVOIOs6uI8lIOLUedh5ehlc3hxEO0tUHFriSTy7+odVpHcwwTzvVEMxffbYjQm XnG6iAOLOMwHsAmHOKYgj3Uh+99a4GvxsunwiOcy5glecLK5OupffpY6Cff0lrLNRQbr TpavynEwxMEFrHLDHegq6IgS2nh11SMBWiBjLQ7ZJyTva/VqetlwfBIGhVNjcpgg/P/8 HUmcxe6H6h5kH2hlgJNizXwjlRzhnznm8LswXYi1HngicG/lQ7UAR/UPexiUVFQ3v6cx /vug== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19-v6si610179pls.457.2018.04.11.01.07.52; Wed, 11 Apr 2018 01:08:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752140AbeDKIEj (ORCPT + 99 others); Wed, 11 Apr 2018 04:04:39 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:42650 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752372AbeDKIEb (ORCPT ); Wed, 11 Apr 2018 04:04:31 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3B84DQs143526 for ; Wed, 11 Apr 2018 04:04:31 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 2h9cpmmxky-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 11 Apr 2018 04:04:26 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 Apr 2018 09:03:48 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 11 Apr 2018 09:03:40 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3B83d1Q12583238; Wed, 11 Apr 2018 08:03:39 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0674E11C050; Wed, 11 Apr 2018 08:55:45 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0DB7F11C066; Wed, 11 Apr 2018 08:55:42 +0100 (BST) Received: from nimbus.lab.toulouse-stg.fr.ibm.com (unknown [9.145.77.191]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 11 Apr 2018 08:55:41 +0100 (BST) From: Laurent Dufour To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-doc@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, Jerome Glisse , mhocko@kernel.org, aneesh.kumar@linux.vnet.ibm.com, akpm@linux-foundation.org, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, Jonathan Corbet , Catalin Marinas , Will Deacon , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Vineet Gupta , Palmer Dabbelt , Albert Ou , Martin Schwidefsky , Heiko Carstens , David Rientjes , Robin Murphy Subject: [PATCH v3 0/2] move __HAVE_ARCH_PTE_SPECIAL in Kconfig Date: Wed, 11 Apr 2018 10:03:34 +0200 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 18041108-0040-0000-0000-0000042CF182 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041108-0041-0000-0000-0000263103A4 Message-Id: <1523433816-14460-1-git-send-email-ldufour@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-11_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804110079 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The per architecture __HAVE_ARCH_PTE_SPECIAL is defined statically in the per architecture header files. This doesn't allow to make other configuration dependent on it. The first patch of this series is replacing __HAVE_ARCH_PTE_SPECIAL by CONFIG_ARCH_HAS_PTE_SPECIAL defined into the Kconfig files, setting it automatically when architectures was already setting it in header file. The second patch is removing the odd define HAVE_PTE_SPECIAL which is a duplicate of CONFIG_ARCH_HAS_PTE_SPECIAL. There is no functional change introduced by this series. -- Changes since v2: * remove __HAVE_ARCH_PTE_SPECIAL in arch/riscv/include/asm/pgtable-bits.h * use IS_ENABLED() instead of #ifdef blocks in patch 2 Laurent Dufour (2): mm: introduce ARCH_HAS_PTE_SPECIAL mm: remove odd HAVE_PTE_SPECIAL .../features/vm/pte_special/arch-support.txt | 2 +- arch/arc/Kconfig | 1 + arch/arc/include/asm/pgtable.h | 2 -- arch/arm/Kconfig | 1 + arch/arm/include/asm/pgtable-3level.h | 1 - arch/arm64/Kconfig | 1 + arch/arm64/include/asm/pgtable.h | 2 -- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/book3s/64/pgtable.h | 3 --- arch/powerpc/include/asm/pte-common.h | 3 --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/pgtable-bits.h | 3 --- arch/s390/Kconfig | 1 + arch/s390/include/asm/pgtable.h | 1 - arch/sh/Kconfig | 1 + arch/sh/include/asm/pgtable.h | 2 -- arch/sparc/Kconfig | 1 + arch/sparc/include/asm/pgtable_64.h | 3 --- arch/x86/Kconfig | 1 + arch/x86/include/asm/pgtable_types.h | 1 - include/linux/pfn_t.h | 4 ++-- mm/Kconfig | 3 +++ mm/gup.c | 4 ++-- mm/memory.c | 19 ++++++++----------- 24 files changed, 25 insertions(+), 37 deletions(-) -- 2.7.4