Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2144516ybi; Sun, 9 Jun 2019 04:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwJGEmP4ROlPP+FWf2mINtGO9qoBUpGOXmCnaIg2IxHG96kmtVmuD3f6Q2qK8cYDErjK/+ X-Received: by 2002:a17:902:e591:: with SMTP id cl17mr31620837plb.59.1560081455819; Sun, 09 Jun 2019 04:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560081455; cv=none; d=google.com; s=arc-20160816; b=AqT70v0gvWbQ/WiLWel7XiiYSmsFV1Q+km3c+l1ecVAKLScg9CbUCveS5Ugnd0/il8 NHXv84tYLsBQP317+XDJELAaBcJulV/P+Cb03zIDuTT7+mandVWNKzgJg7gMt4KtJkSa aybqNK/EbiCfFIFgK9i7xw8zfWQz33RukJVl0tmUFKKhtDEvdqwg1MtgEQ4U3ogEU+wI zpto2E6q33HS5C131imFJgJHw+gYODUqW5VoEZPAwOvC54pnkuFB5LYuGWSazPnCr2E8 H0vhEKfvXLK33N1mprx55h1AojsAhJXD+mtjbt64fce1QInqChDlxFBrOe6VoRlOI5Ol ZcYw== 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:date:cc:to:from:subject :message-id; bh=G86OOo9CTnNiQWVjEy1gL2j3e9NwzJliIffoQagfcnM=; b=nR/AS8PtMciAoEQ7o5Pt8SUTlWMmHwP15eUSrQJRkfOYpg41xtskmZNm8f+O7Qm9dz tNNPfeniQBGa3joua8O2wDuSIS5KsfGkGp347bLm5wq2ZNOyVYNBByzkflkm5WZgf5PP t06DNreQURFkwRzzLe5rOgGKuj5b7ytncVT77DsIR2tQ6T+VQzgB7IpKQpT5V9dm87ci o80z5tgg7qHlmE33k2RME4lILOrRDhhhUgURdL26V85vWJ+7Y6POBAWUXVS8PSs/AVZN y4AQHEf1GW+z9hG776aiEC4vz12d3UUgbZCj0ALFakbOOx7f1RTl1ct3HrTLoOqqleh/ bcpg== 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 g17si7205660plo.69.2019.06.09.04.57.19; Sun, 09 Jun 2019 04:57:35 -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 S1728466AbfFILzS (ORCPT + 99 others); Sun, 9 Jun 2019 07:55:18 -0400 Received: from smtprelay0014.hostedemail.com ([216.40.44.14]:45579 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728356AbfFILzS (ORCPT ); Sun, 9 Jun 2019 07:55:18 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 367EE181D3419; Sun, 9 Jun 2019 11:55:16 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2692:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3874:4321:5007:7653:10004:10400:10848:11232:11473:11658:11914:12740:12760:12895:13069:13161:13229:13311:13357:13439:14096:14097:14180:14181:14659:14721:21060:21080:21627:30054:30060:30070:30090:30091,0,RBL:107.134.184.123:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: tail02_2dc14101a324c X-Filterd-Recvd-Size: 2654 Received: from XPS-9350 (107-134-184-123.lightspeed.renonv.sbcglobal.net [107.134.184.123]) (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA; Sun, 9 Jun 2019 11:55:14 +0000 (UTC) Message-ID: Subject: Re: [PATCH] media: do not use C++ style comments in uapi headers From: Joe Perches To: Masahiro Yamada , Julia Lawall Cc: Mauro Carvalho Chehab , Greg KH , Arnd Bergmann , Linux Media Mailing List , Thomas Gleixner , Randy Dunlap , Linux Kernel Mailing List Date: Sun, 09 Jun 2019 04:55:09 -0700 In-Reply-To: References: <20190604111334.22182-1-yamada.masahiro@socionext.com> <8cf48e20064eabdfe150795365e6ca6f36032e9f.camel@perches.com> <20190604134213.GA26263@kroah.com> <20190605051040.GA22760@kroah.com> <20190605071413.779bd821@coco.lan> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2019-06-09 at 16:14 +0900, Masahiro Yamada wrote: > Hi Joe, > > On Thu, Jun 6, 2019 at 2:06 AM Joe Perches wrote: > > Perhaps a checkpatch change too: > > > > The first block updates unsigned only bitfields > > The second tests uapi definitions and suggests "__ > Good. > > In addition, > > "warn if __u8, __u16, __u32, __u64 are used outside of uapi/" > > Lots of kernel-space headers use __u{8,16,32,64} instead of u{8,16,32,64} > just because developers often miss to understand when to use > the underscore-prefixed types. The problem there is that checkpatch can't know if the __ being used is for an actual uapi use or not. coccinelle could be much better at that.