Received: by 10.213.65.68 with SMTP id h4csp1743084imn; Sun, 1 Apr 2018 13:46:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx49NjID2ZeuMH6DJkSHrVJODTk1Pa8z7oRQQThepGpjsOCY7InHAeZ6rSc56RMsXPRzVcv8P X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr7214087plt.366.1522615612935; Sun, 01 Apr 2018 13:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522615612; cv=none; d=google.com; s=arc-20160816; b=KGRlNabj+p7psoYz9MUrE123efVIv9BI/Vvy5TzrFLIBlFrb4n1sz8LxoqT2Sl9b1W J9RTCd+5wnniDUjbm2/+cFrOId7pQWw4Lp7H9ftxKa+qxKQQyU0XgZ2ak5X7+qZd9Cyd YVwmsxnSiZ0Oc/hk23zNaRqxX8wJdFqwUmEslOs16wogMATFoIkg6PYe0zO2fQ7lZyfU 4MQdj3/9J1l4yFzmov2oa3CoAUHk1wl4l+/7vkO3/nf/1wR1ld2gLy/30BAsATKA5SJp 3xxoefpZwSQu30LLlZG8r0P+CowGUGamFiTjMlsSKP6/Y2wcM5f1pgz0TLCO9eTeZjFM o4+Q== 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:mime-version :user-agent:references:in-reply-to:message-id:date:to:from:subject :organization:arc-authentication-results; bh=ybqs4X16tcGqeY7y2ruxvbH2/jNNyaRpMx0BgVRpY/g=; b=ZOj9vosQ1pquuAJvR+IfhBIuBbUNiT7fyx5lormeUg0AbTneHNt16+jjWzSe2H6W7k rHYGpXtifb11Ycu3cFCBjX0+ZlSZ7Q8+mvIVSj8hos02GEpTB+uaJZdaLxoTBKcf25gC J6f5qUN4dYZ6TzAasgql2bcXtTl5ckvCiEcEILBEykc7oTUZEhVAP/pNdSnN8dfjNnfD 3ky3dl9sXgisx1Ilp4/KJB63/bnM2rJp1HlxX5gDY6muTTM/B58jxcEDotaDOulmrTV1 TODNNYzEmQnag8EtaQo18NWkGfQhkqYLIIwyNQ4nb2uloLCQkTcaSHyEewslF7FHYV2O QdOA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23-v6si12883340plo.272.2018.04.01.13.46.39; Sun, 01 Apr 2018 13:46:52 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754668AbeDAUob (ORCPT + 99 others); Sun, 1 Apr 2018 16:44:31 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43202 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754471AbeDAUo2 (ORCPT ); Sun, 1 Apr 2018 16:44:28 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6FE954270949 for ; Sun, 1 Apr 2018 20:44:28 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-59.rdu2.redhat.com [10.10.120.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 213652024CA1; Sun, 1 Apr 2018 20:44:28 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 42/45] C++: Hide C++ keywords From: David Howells To: linux-kernel@vger.kernel.org Date: Sun, 01 Apr 2018 21:44:27 +0100 Message-ID: <152261546762.30503.9337930260734861018.stgit@warthog.procyon.org.uk> In-Reply-To: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> References: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sun, 01 Apr 2018 20:44:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sun, 01 Apr 2018 20:44:28 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hide C++ keywords like new, delete, class and private. Signed-off-by: David Howells --- include/linux/page-flags.h | 3 +++ include/linux/types.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 50c2b8786831..6705394b8f69 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -131,6 +131,9 @@ enum pageflags { /* non-lru isolated movable page */ PG_isolated = PG_reclaim, + + /* C++-ism */ + PG__Private = PG_private, }; #ifndef __GENERATING_BOUNDS_H diff --git a/include/linux/types.h b/include/linux/types.h index d233b12c7ebe..1554319a3ff2 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -11,6 +11,12 @@ #ifndef __ASSEMBLY__ +#define class _Class +#define new _New +#define delete _Delete +#define namespace _Namespace +#define private _Private + #define DECLARE_BITMAP(name,bits) \ unsigned long name[BITS_TO_LONGS(bits)]