Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4095650imm; Wed, 5 Sep 2018 10:36:13 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda5VVdPmZq0VIYUKjy7IRpHaNAlbX+C8gTF0m4Af/zH1bBE53QOeQUMIxYNR/fby3gjXYHA X-Received: by 2002:a63:4f64:: with SMTP id p36-v6mr22621909pgl.210.1536168973711; Wed, 05 Sep 2018 10:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536168973; cv=none; d=google.com; s=arc-20160816; b=mIIQohORTA97PZYY217k28ou3e3XvwCdjqpYo/DPEhwgntp+KHi6Y+hzJ78vUrJkV0 dZehCp+r3wxi1zsRk3uABiAxMA6f2yHHmq1LMRQOTiyNs2SMc1r+1CJ9m7gyo3baECBa mELPMh1Q2treQ94sFaxvzzAZ62nvBQbazLrv8wnvfpkspo6znMZzyk9cmNnBuCH2G4hs CYgtVXBO5mFtpXX5LGZVUSbxxi3nG1OvLxd26RvMNZ71yMRTlgWNK+ROF5mX3Q5CRujD 5WcWHAn9nKmnXRZlLdZ65OQ8uy86VWLv3/wKogb/us0NEOiMFuG9qUrk9G6fCvfb7wqD dB+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:organization:references:in-reply-to:date:cc:to:from :message-id; bh=v8QApQogVNiWFHPWplTaHf8xEHH1w83JqompBh5u+R0=; b=h20OBE756+SYl6+qRY1t37U52xO2R9p81U0F83DWhqBDEL74IAw747lfuzz2hcvpPA zx88WmuBWiWTEy9f8PcjGq6+QMq9GeVP7wtsO1BR8CADW5V91Xy69U4ICnRlkExsbq/d S1HsO9zsKJh1GP81rsfpxeqSaQjp1a1lSeV0+565+JDvxuaNjTxuHCn1Yt8e2Xdcqmns BTdu1zR2NbjWAWNCM43obWrJ5U8NihVDSjUwx2N1n8ij29VCs9/zcf44gLJ67hvneldG CxXQtzYJN9nbt/UL410T7GQRq8fqu7H7D1sg42na5wxHVTp1k650KfbgFdMbmZVhYdTM RQEA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h69-v6si2409545pge.13.2018.09.05.10.35.58; Wed, 05 Sep 2018 10:36:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727688AbeIEWF7 (ORCPT + 99 others); Wed, 5 Sep 2018 18:05:59 -0400 Received: from ou.quest-ce.net ([195.154.187.82]:42229 "EHLO ou.quest-ce.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbeIEWF6 (ORCPT ); Wed, 5 Sep 2018 18:05:58 -0400 X-Greylist: delayed 1320 seconds by postgrey-1.27 at vger.kernel.org; Wed, 05 Sep 2018 18:05:56 EDT Received: from [37.169.125.128] (helo=test.quest-ce.net) by ou.quest-ce.net with esmtpsa (TLS1.1:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fxbgY-000DnC-H1; Wed, 05 Sep 2018 19:33:46 +0200 Message-ID: From: Yann Droneaud To: Greg KH , David Howells Cc: linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org, Michal Marek , dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, keyrings@vger.kernel.org, David Airlie , linux-nilfs@vger.kernel.org, linux-nvdimm@lists.01.org, "Michael S. Tsirkin" , codalist@coda.cs.cmu.edu, coda@cs.cmu.edu, coreteam@netfilter.org, Rob Clark , linux-arm-msm@vger.kernel.org, Kent Overstreet , Dan Williams , Takashi Iwai , linux-bcache@vger.kernel.org, Coly Li , Jaroslav Kysela , Jan Harkes , Masahiro Yamada , Ryusuke Konishi , Jason Wang , Mat Martineau , netfilter-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, moderated for non-subscribers , freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Date: Wed, 05 Sep 2018 19:33:38 +0200 In-Reply-To: <20180905165552.GB25206@kroah.com> References: <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> <20180905165552.GB25206@kroah.com> Organization: OPTEYA Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 37.169.125.128 X-SA-Exim-Mail-From: ydroneaud@opteya.com X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ou.quest-ce.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Subject: Re: [RFC] UAPI: Check headers by compiling all together as C++ X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ou.quest-ce.net) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le mercredi 05 septembre 2018 à 18:55 +0200, Greg KH a écrit : > On Wed, Sep 05, 2018 at 04:54:27PM +0100, David Howells wrote: > > > > Here's a set of patches that inserts a step into the build process to make > > sure that the UAPI headers can all be built together with C++ (if the > > compiler being used supports C++). All but the final patch perform fixups, > > including: > > Wait, why do we care? What has recently changed to start to directly > import kernel uapi files into C++ code? > > And if userspace wants to do this, can't they do the C namespace trick > themselves when they do the import? That must be how they are doing it > today, right? > They can't. Adding extern "C" { } doesn't magically make "class" a non keyword. Even if it was the case, writing C++ code using whatever->class would probably broke because class is a keyword in C++. -- Yann Droneaud OPTEYA