Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2438813ybi; Sun, 9 Jun 2019 11:49:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZyWT2TibyROiJ/oVnl35pNN1O0wisph+8nWaBMY00cVEsAB85ljH9jKiyh/QNacMZvXfW X-Received: by 2002:a17:90a:778c:: with SMTP id v12mr16495960pjk.141.1560106168586; Sun, 09 Jun 2019 11:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560106168; cv=none; d=google.com; s=arc-20160816; b=ZnDp0xhVuoJ/Ab/FspLCwtPXeyejmEwFLctkz8k1+NgQCO5jprvH/mSIB7a50xbAqH GObiwQxHZMrCCMMG2oDbwdbDeWIt9qdTHRnubjcrNd7T+Ml3RGS3aXmGekP8NQQ1BVhq eZF2ic7GmRdsBTAy+i0gGB+/8RdT9HC+eGFavQ1FLHDDjvfJbBTt91MKS111etxGybB8 ocLh013ncy3mipbqddHKs0p/qPZh0OvNov58qWEGISyC0YEVdDNgQwBNbGZFtQrLoTX/ f2Sc7rZymZJ/MNpR+hcY+Bz2tZYSlNWiR3VQbHOLbwZLwUjZ+TjboGzkTp8JB1xTgxto udng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bnotjN6liGieiAw2kMEhvUSLlALPzCytushsKSLV+uo=; b=frMqH9D3t5ENBBGltERwexnuamzOjMydscw7tXL56nI9tuAMXHo8kLcAdUiPZwaotz 8bEnBACBvgQFemkB6CgH6cExVhkAvMphAhJzSbQVRFfyAPRHq9HTlqRse0xoBwSMxRXp sK+uhl6N6mhKhuZJ+UQF2nI7wDzmZ/lT38hRaYv1MoREySs1U36VXUzjH+8+anMjmwbk SkvA80AsXjX3cLE/dUL9xhA6oBeO/pIk3xFSIRRocBUX0aZrOomJJ1lRKf7VT5IK2vjA efr86/hpJRn+BCI2Ap6C6FLqHhX93p9Kkpil1D84VqpLddbpegtXRy3vB4ijbtj2SBa7 7ELg== 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 j15si8166543pgs.43.2019.06.09.11.49.12; Sun, 09 Jun 2019 11:49:28 -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 S1729404AbfFIRmw (ORCPT + 99 others); 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