Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2883588rwb; Mon, 5 Sep 2022 03:08:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR4iDWB4pRXLOqsI/Wn66rD3JkfF3P2jy3Y4MW0BYxgY5NIgqOXjWovoZ+4bl45LKuqNfJai X-Received: by 2002:a17:902:dad2:b0:175:3ad7:e50b with SMTP id q18-20020a170902dad200b001753ad7e50bmr26495674plx.19.1662372505079; Mon, 05 Sep 2022 03:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662372505; cv=none; d=google.com; s=arc-20160816; b=IpIQ6B6LiA4fzO4ZNZaH9vqqOsj/ssVB7G5dSlU56+5IZ1NfQWAXTLrw7j6rs2YPK3 SJkxBzZJ+u/0fNBDCVXGrCixSyGFcQvBEezCvf0M1lPpDpq4LshOwcWKPs7HQ6tCqh4l GtkR5mI/A0MJQBNa5AhBxLsMe5hj09YZIbJ2FAwVxQPULm7ghTX1Os4sssFD99w6SYEe EqExxB0/5xl7EDF/nN2uq4K7DtSuhhgVM2+rzf/qpIeObo4DtK+6YCKKhNV5cNfkoU85 HQJbiaVLfMYMdFYyEllkH5C5jJi9sBb5PCotr63HchVnPq4AfUGuIfsy14A0f/x4iF0t YquA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=otg2eJCT8HmFm7PzdJzdh1s+jml8GIHdzMLCB6OgYZk=; b=ACcYkV+rBeGISy+qskENd0AQpxX/601VbAsrXHGO8W4fvHcUcxoNYG0cc/qp4Ucn/z uEwuVlR4t3Y6MSnUEOO7vSvIqivnHP8kHExsBgu/nlMLDivGhunaY/yiNuLp9X2hpg5X c35XKsK7G0lsX4VAjY5Syh7yWFPOK5MeKKse1lahJdrGemXX9aDOjro/E3/Ywk1fGBId AF51iW3uPEzvWpKDfE7eKb99lHRftdOJ8w8Z2QVGYTRp0s/vVXJvuMmGcCT9rSReAXIk 9oWsz6hIkh+L2QWLCpeQjUrSXZA/lASx228ARRyuX8Cp2dmVCIq4wsvRm4csJ17gVdzP VWVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a621b06000000b00538444cfe2csi10157835pfb.71.2022.09.05.03.08.12; Mon, 05 Sep 2022 03:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236817AbiIEKGd convert rfc822-to-8bit (ORCPT + 99 others); Mon, 5 Sep 2022 06:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236736AbiIEKGI (ORCPT ); Mon, 5 Sep 2022 06:06:08 -0400 Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01E7D558D5 for ; Mon, 5 Sep 2022 03:05:38 -0700 (PDT) Received: from omf08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id A354C413D5; Mon, 5 Sep 2022 10:05:22 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA id 0270E2002B; Mon, 5 Sep 2022 10:05:20 +0000 (UTC) Message-ID: <4675b119b6eafbe377711530cb55bd638b0077b5.camel@perches.com> Subject: Re: [PATCH] drm/print: cleanup coding style in drm_print.h From: Joe Perches To: Jani Nikula , Jingyu Wang , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Date: Mon, 05 Sep 2022 03:05:19 -0700 In-Reply-To: <87sfl6b3zb.fsf@intel.com> References: <20220904203818.16775-1-jingyuwang_vip@163.com> <87wnaib45t.fsf@intel.com> <87sfl6b3zb.fsf@intel.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Rspamd-Queue-Id: 0270E2002B X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Stat-Signature: cpg13saw4t9ky9idep3d5zibos8uaptq X-Rspamd-Server: rspamout05 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+IQgrovGfGS21oh82wDTPVfuzC1VIMDyY= X-HE-Tag: 1662372320-471312 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2022-09-05 at 11:49 +0300, Jani Nikula wrote: > On Mon, 05 Sep 2022, Jani Nikula wrote: > > On Mon, 05 Sep 2022, Jingyu Wang wrote: > > > Fix everything checkpatch.pl complained about in drm_print.h > > [...] > > > > static inline void > > > -drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va) > > > +drm_vprintf(struct drm_printer *p, const char *fmt, va_list * va) > > > > Checkpatch is just confused here. Look at all the other params, why > > would you add an extra space here? > > Joe, can you help me out here please, I can't figure out why checkpatch > is complaining here: > > include/drm/drm_print.h:106: CHECK:SPACING: spaces preferred around that '*' (ctx:WxV) > #106: FILE: include/drm/drm_print.h:106: > +drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va) checkpatch doesn't know what a va_list is. It's similar to the FILE typedef that also causes this output. A recent link to add an exception for 'FILE' to checkpatch: https://lore.kernel.org/all/20220902111923.1488671-1-mic@digikod.net/