Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2222865ybi; Sun, 9 Jun 2019 06:39:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyziwSKqKLFH6tl3U9WyvqafDsbvnvGdz4pXsOkW7Aj/nHJj3qr+iVGCZFVhIzEMhM+1Qly X-Received: by 2002:a17:902:9a06:: with SMTP id v6mr48552566plp.71.1560087564315; Sun, 09 Jun 2019 06:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560087564; cv=none; d=google.com; s=arc-20160816; b=usvvd42uuU2zIRQz/ccitgSGMnes/DdTh244BpnVy3vXnNKil7QEYZJFTbnbXURQJH IHmJgGAtlsMKaMFKlM3a7Q81QqCKr7++upJI80kvtOdXPcwmcy4yH5/xL/0pu08iAcbV NS0pK/SV27HYMb0aiwNczpLJy+V5t/XZcbRtPd8iP8seQcWVsdUCj5uQlh+faO1LRcuy t2wuOxNdvDKpcOT0CdwR/tR1K2yl9N9xZcRZ1qVe3LfI1pNXpI8OV74QCnN1xdtahY/H EDi+AhJr3rmwws8c1ypc/4s4/DrpgoednOjn8KeyVRNVHSStajs0SGl8V3e7/eXh7D/l 4ruw== 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=MX1dm9t+XJxVRI9b9tzXVCm++B+Ya2T3eGS3yTZJid4=; b=nM3oQNYqeLvOENxJKD+vJStyz+CNjsJ2+g/ORFGzmJ803KSKLtUb3QHoewf8h90rYM t/oyKhK+cgWpJekGLrohX0F+9BssKIX2yHoTeKdaKOY41wT7bWi8/NPQUk7CJCCy9nfY rOaGL5ulk5nw1C6bpsuhogphF/ZwcC55bGREaoR7MxjPs7HSrEghaEFLw1Y2U8gzoefD ZzwrsCm5iuTFMkzLzGd/cO9/UQc5C2Y6s5/InLvcfP4meOOmGXDzShkYTwbHG0NijJGA ivX5H8ENxKId3ryUw3VbM2ES517ZwPLaLDzPIrRjHKuL73GdZh1yKFTd011LT/6s8cUn IPrw== 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 c2si6829037pls.346.2019.06.09.06.38.54; Sun, 09 Jun 2019 06:39:24 -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 S1728625AbfFINfS (ORCPT + 99 others); Sun, 9 Jun 2019 09:35:18 -0400 Received: from smtprelay0154.hostedemail.com ([216.40.44.154]:60483 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727382AbfFINfS (ORCPT ); Sun, 9 Jun 2019 09:35:18 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id D7DFB18029125; Sun, 9 Jun 2019 13:35: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:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2692:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:7653:10004:10400:10848:11026:11232:11473:11658:11914:12740:12760:12895:13069: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.8.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:24,LUA_SUMMARY:none X-HE-Tag: pies35_2dd16e86e5d0d X-Filterd-Recvd-Size: 3394 Received: from XPS-9350 (107-134-184-123.lightspeed.renonv.sbcglobal.net [107.134.184.123]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Sun, 9 Jun 2019 13:35:14 +0000 (UTC) Message-ID: Subject: Re: [PATCH] media: do not use C++ style comments in uapi headers From: Joe Perches To: Masahiro Yamada Cc: Julia Lawall , Mauro Carvalho Chehab , Greg KH , Arnd Bergmann , Linux Media Mailing List , Thomas Gleixner , Randy Dunlap , Linux Kernel Mailing List Date: Sun, 09 Jun 2019 06:35:07 -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 22:08 +0900, Masahiro Yamada wrote: > On Sun, Jun 9, 2019 at 8:57 PM Joe Perches wrote: > > 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. > > Why? Perhaps it's (somewhat) bad form to have a __uapi type in a structure, include that structure in a driver for something like a copy_to/from_user, and map the __ to a non underscore prefixed For instance struct flat_binder_object in drivers/android/binder.c How is checkpatch supposed to know that __u32 flags is inappropriate?