Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4203778imm; Wed, 5 Sep 2018 12:24:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYHSWzv2A6d7rTYrVmTof4GKSvkTwyCUKjcs98LCcOgNyyVM+LaPAFcCsMxKuGZj8EuBoy5 X-Received: by 2002:a63:7058:: with SMTP id a24-v6mr32072603pgn.206.1536175472008; Wed, 05 Sep 2018 12:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536175471; cv=none; d=google.com; s=arc-20160816; b=H55sQan4AZEOFSpdpwkwZ2yJBQRMPOzZozEOU3ZLkHPlKEANklL1liHW/i3QzOaMSs +Fz0EcvWZMHEwQxK5In3xSj+GbponC4J3vPJbmtAP9HEs2IhnoeL1QdG4rckSSc2jD9H 70ondzfBeuCNJ0/5ohwhou3JMezjw50PEUWWh04HM1fJ6SiSrvEWY5MhFPVjzR9AiLjG wyfih93oGoCGs9D8aSewoTJuARRdvBzZE9LwUl+NeaBrYxymWsX8M6pyxfnjNt2rDfVp mYXzNx91h/rT6pKzvsRuqvUecWW65nB9ZvjMl2o/e5htNw16UcxZ1A7827hF7ukX6h/9 yeiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Wmjt7Rj5IhuOW4+r1RnjRGyDVH6rlK0UzuRnI3qo58c=; b=dD3sDRdvSk0Z93dBu0uwsaoHRRRChqnbrE3qYtn9F020TPedbey8wciF7ClTmRtpgX rD8OagS6+XuXB0vK1BRW6Tx69XKsL2OoK87XjO5TyrbvmA1kAtCyfv+Ws8UtjV6jAZME OrgR1BKMhdY858qojUwKL3h2Fblke9z3sKpQroOc1Gz5o61gGDRFrhiDtR6Qn2ro4NeK eRIkznNyMozncVBkB4Ou/itUbo27K7g6xUnTj8YvSpaNFPd8MvcmrPAwVnLhqijNOYR6 3mt94Zd/0557BzmWnCzpU9O+ZyQLbfaNdtREmiRJKUTfiw/P/rTWnsVWOYQBMh+NXaEc jKmg== 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 r11-v6si3026704pfc.253.2018.09.05.12.24.12; Wed, 05 Sep 2018 12:24:31 -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 S1727826AbeIEXxt (ORCPT + 99 others); Wed, 5 Sep 2018 19:53:49 -0400 Received: from a3.inai.de ([88.198.85.195]:36068 "EHLO a3.inai.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726544AbeIEXxt (ORCPT ); Wed, 5 Sep 2018 19:53:49 -0400 Received: by a3.inai.de (Postfix, from userid 25121) id 2BDFE116ECEE; Wed, 5 Sep 2018 21:22:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 237473BB6971; Wed, 5 Sep 2018 21:22:11 +0200 (CEST) Date: Wed, 5 Sep 2018 21:22:11 +0200 (CEST) From: Jan Engelhardt To: Greg KH cc: David Howells , 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 Subject: Re: [RFC] UAPI: Check headers by compiling all together as C++ In-Reply-To: <20180905165552.GB25206@kroah.com> Message-ID: References: <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> <20180905165552.GB25206@kroah.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 2018-09-05 18:55, Greg KH wrote: >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? With C++11, C++ has become a much nicer language to use (for userspace, anyway). >And if userspace wants to do this, can't they do the C namespace trick >themselves when they do the import? The only trick is to use an extra C source file and extensively wrap things.