Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5314931ybi; Tue, 4 Jun 2019 04:56:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPaj3w96PmdLjpqN9oCi1v8ukrQCR4bMsfxjNoMHpCf4NI+dXeqs306RF8kIxUlqCKRLPG X-Received: by 2002:a17:90a:20e7:: with SMTP id f94mr27972139pjg.68.1559649373378; Tue, 04 Jun 2019 04:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559649373; cv=none; d=google.com; s=arc-20160816; b=EkxmxTnh3rdM02LKlToMkVfFO3NjIzRC2ACkfeL+QyLyiWRQxCIaLsSXoqk1yfbc7i 0XHEl0JmoCPMhj6ErKKyZ19h4uWX5arlBPg+Zq8EqGkFM28Lb7kzXkwN35rMagxWQvQx a9UDm4RgCjnLRpMD+7zvjVg8VPciXI11G83dg4qzVcJZui+Szvqx9V2NuCe2ukzL/sAK xnBLjS3862ZA0GPJfS5RaOCy54mHr0K2O1AocTmIV4oe0ffDcTtvOJ1I/v0GL6ueMV1B +D+86vyLWd0OZopjpRMaNVqZFp7VzELeuKg+/tBxBoo29L7RmiSqtIZ6PFYQdgOkRGLj QnlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=l7u7zcpebtQqDAFBJ4GQV49RycFqTe6brbuYMnPGWBc=; b=e/xdLc7F8m3baK3TZ3+4OR6l13PieSAd4wGJk4+QHMWOFe7cygROagLaXaaWnCF0aL KGliiYPxBlGs5OGyUP/sb35c7b4Na/n4+6VVjlxc2XXyQsqYSIR6fzU3ksAbNIJqXLrX 0wISbsbipPWuKuxcuZCFccr+kpk71GVE38sDuWOXOxKZ+Sd022CPg8/T7gftKRasUjFP sTAc0YM6XlwDeO0o0Yw7NxnOOG9BHCA7yDnyP8eRWLxdq3EjreoHjTiLXQmSOeXmn15x mnlOWiKYzEd2MBibJ4aIXcljT3zild49SCmzdCRqEC7fIBmHwgAfQvm6JlOPJR5DT+Bf aMqA== 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 1si2314395pli.151.2019.06.04.04.55.56; Tue, 04 Jun 2019 04:56: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 S1727522AbfFDLyj (ORCPT + 99 others); Tue, 4 Jun 2019 07:54:39 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:33261 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727386AbfFDLyj (ORCPT ); Tue, 4 Jun 2019 07:54:39 -0400 Received: by mail-qk1-f193.google.com with SMTP id r6so2600499qkc.0; Tue, 04 Jun 2019 04:54:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l7u7zcpebtQqDAFBJ4GQV49RycFqTe6brbuYMnPGWBc=; b=DXo0nYcM2Cf6bxKIp3lSvnMG0SnLtBEh7fGpjoHNDWN/3oUiB/q7BXsmO6LG0+IUlL tNG6w6OdkAoNB6htxhVmum9Vh+dT1DqrcZ5IaVW4RuxcnGN4jhelJgaQPX+5JG67PPXi tj8rt5Gy7TWGi5+QWpS03rZ7qc5MopF32Iv2kI0kzbsmNnXPJWm+I2h1JVbdAw9PHbjk FYhHFRWjuHXBVvJa6bQYshNzDT342d7nUEcfZ7RFvcQ00qwHlMU9jfdjRr/s+eac1KuV nK/mpiRQTpG6+Gt1VdBv2qlzOjaNBXZavu+3C9gK2cfrLAFE9c4vuXbGW3ZNg9uwiU2X y2Dw== X-Gm-Message-State: APjAAAVP+EQj0x+wZg/3pO37j5pQB/xO+ySAPZ1mBO3J0iL7ePNgQ/0e vqI1llYTrl4u1CdcD7L1DykRvhsAdoX6LBfsk9k= X-Received: by 2002:a37:a4d3:: with SMTP id n202mr26081936qke.84.1559649277706; Tue, 04 Jun 2019 04:54:37 -0700 (PDT) MIME-Version: 1.0 References: <20190604111334.22182-1-yamada.masahiro@socionext.com> <8cf48e20064eabdfe150795365e6ca6f36032e9f.camel@perches.com> In-Reply-To: <8cf48e20064eabdfe150795365e6ca6f36032e9f.camel@perches.com> From: Arnd Bergmann Date: Tue, 4 Jun 2019 13:54:21 +0200 Message-ID: Subject: Re: [PATCH] media: do not use C++ style comments in uapi headers To: Joe Perches Cc: Masahiro Yamada , Linux Media Mailing List , Mauro Carvalho Chehab , Thomas Gleixner , Greg KH , Randy Dunlap , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 4, 2019 at 1:23 PM Joe Perches wrote: > > On Tue, 2019-06-04 at 20:13 +0900, Masahiro Yamada wrote: > > On the other hand, uapi headers are written in more strict C, where > > the C++ comment style is forbidden. > > Is this a real problem for any toolchain? There is likely some code that is built with -Wpedandic -Werror --std=c89 or similar. Since glibc allows this combination for its own headers, it seems best to also allow it in kernel headers that may be included by libc headers or by applications, at least where it does not hurt. Realistically though, we probably assume c99 or gnu89 in user space headers anyway, since there is no 'long long' in earlier standards. Arnd