From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C581C28EBD for ; Sun, 9 Jun 2019 17:42:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7EE58206C3 for ; Sun, 9 Jun 2019 17:42:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729481AbfFIRmw (ORCPT ); Sun, 9 Jun 2019 13:42:52 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35158 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728678AbfFIRmv (ORCPT ); Sun, 9 Jun 2019 13:42:51 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 6D2F38023A; Sun, 9 Jun 2019 19:42:39 +0200 (CEST) Date: Sun, 9 Jun 2019 19:42:16 +0200 From: Pavel Machek To: Masahiro Yamada Cc: Joe Perches , Mauro Carvalho Chehab , Greg KH , Arnd Bergmann , Linux Media Mailing List , Thomas Gleixner , Randy Dunlap , Linux Kernel Mailing List Subject: Re: [PATCH] media: do not use C++ style comments in uapi headers Message-ID: <20190609174216.GA13697@xo-6d-61-c0.localdomain> References: <20190604134213.GA26263@kroah.com> <20190605051040.GA22760@kroah.com> <20190605071413.779bd821@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > 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. I have seen it even in the .c files in kernel.... And you want same handling for __s64 (etc) variants. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html