Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp927960imm; Thu, 6 Sep 2018 12:20:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZMirm9GmCXnjJ6scF4maBrCw+t1R1CU2A9KykgZ/RiBYCJdOOLNfMuwpLqwOqXw2YHf/pu X-Received: by 2002:a17:902:724c:: with SMTP id c12-v6mr4194190pll.326.1536261657768; Thu, 06 Sep 2018 12:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536261657; cv=none; d=google.com; s=arc-20160816; b=cG9tCPpa7L+A0BldWwgRls+hzGJOcJM6jz/1ruBWSyr6dOVR3wwdNrPlmy/ouRXDkX jPx3/oUGRNnLZQRmglI2JR/I19ndxvhMwsydQBU9GMzhaSXfrNmVuZMM9rOLqWM3mD7+ qkgJ5BUWgJRa3+dKejAotZqlzMPhuFAJk1rUCtOo1Py0z/te0itHZ3/IPyBQYj2tBEHP RNj5EKzHJ8QLIMFC3j7bmASwVjPP5Dl7SRhdXSXO3kCMMYfK0iEANDfW8ILgxsji+odM Je5jP9N6MXbkjY+WXAJktyjNsOhkNEgys3blydHwPvoaAmu8YpOwR7kuxD9kQfOlb34k 4m6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qUSenUCqkBBScB3qhKKdI1EqwDHfotgL+nQj5SPfmWw=; b=YVd3uZm349jUmEi902ehGAeVcgaaYX+wF3w8BCuv/3jKc8XxEAqt0lPzyR0KkoO0gE r7NbcSHgIbS3fcJgaBo4Ls/T4fDus4ZUk8T9Q05/aiSC0/11aD24kVRpZZhoh+3FqW5k Cb64x4oHUab5CKoGtU6EfmkOzmYA0FtTpw7s2G8peDX+2nJTAu4cj5Pv/J6JItpBn9C/ Av5fW4M+VkunJum47kArq8DD0EKJICXBHnx8A4pwOmIe/p/qW575oneNISK4iSpIA++L OD8o0zaCPWZe3KRID7kGOwl10hWhDn3sb7wt2CCciHX6sCseILEnUrL6rMMLglxmmDqI zehg== 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 q20-v6si6124694pgb.596.2018.09.06.12.20.42; Thu, 06 Sep 2018 12:20:57 -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 S1730101AbeIFTMu (ORCPT + 99 others); Thu, 6 Sep 2018 15:12:50 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60766 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729735AbeIFTMu (ORCPT ); Thu, 6 Sep 2018 15:12:50 -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 D16C2402332F; Thu, 6 Sep 2018 14:36:59 +0000 (UTC) Received: from redhat.com (ovpn-120-232.rdu2.redhat.com [10.10.120.232]) by smtp.corp.redhat.com (Postfix) with SMTP id 774B02027EA4; Thu, 6 Sep 2018 14:36:59 +0000 (UTC) Date: Thu, 6 Sep 2018 10:36:59 -0400 From: "Michael S. Tsirkin" To: David Howells Cc: linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org, Jason Wang , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/11] UAPI: virtio_net: Fix use of C++ keywords as structural members Message-ID: <20180906101318-mutt-send-email-mst@kernel.org> References: <20180905125636-mutt-send-email-mst@kernel.org> <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> <153616289529.23468.7498785670556620808.stgit@warthog.procyon.org.uk> <9357.1536217759@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9357.1536217759@warthog.procyon.org.uk> 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.6]); Thu, 06 Sep 2018 14:36:59 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 06 Sep 2018 14:36:59 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 08:09:19AM +0100, David Howells wrote: > Michael S. Tsirkin wrote: > > > As long as you do not intend to use any classes, how about > > simply adding > > > > -Dclass=_class > > > > to your command line? > > That kind of misses the point;-). It's not reasonable to expect all userspace > C++ users to do this. > > David I thought one of the points was that building kernel with c++ catches some bugs, no? If the point is to make life easier for c++ userspace I'm not sure what we can do to be frank. C++ seems to be adding new keywords with no restraint (C99 did it with inline and restrict too, but it seems this stopped) so no good way to future-proof code for all language dialects. So I'd like to know which are the actual c++ users asking for this - we can then accomodate the specific version they need. Meanwhile people can get by with a wrapper along the lines of #define class _class #include #undef class -- MST