Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1211314ybh; Sat, 3 Aug 2019 20:43:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwe0wTN+LB1Qk4Im89Jq/crXHD4twAqFOhZUn9VdjLDttyAojiosMXz9kbtR7197Au44O99 X-Received: by 2002:a17:90a:f491:: with SMTP id bx17mr12201594pjb.118.1564890206861; Sat, 03 Aug 2019 20:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564890206; cv=none; d=google.com; s=arc-20160816; b=lEfN5cUJIzu6O0kgrOKVgMfpuliV7Yl/NLc6Dwgv4IGJZdD32E1qIuvCfr8tvUz8mt 6+YjjVm0Xe52VWRuimTsAW0fT9+BfjSCctCT2IvYHt2mLicqGut/g3X9XBUYgYbcqlW9 LrySl3t6TDKmIpLFTysARX++iPKEfu74/FsaIerwOd9adL7149wdNPM4mFJ6rz6uMJAh UUf6litfmSB+ir4XWMSvfCOwCE52eW5vli1c1GgTDqOvcZlbyw9cuJybjhFdeVpWxzQl Zxby7Szv2nv3w+7nutR2IujFW/JGYr9fSuhO+st0kIZ+o8J7gobD8bUxrBMQ/xL9XLOA gipg== 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=BhLi6XRvNudCE4jssLUlrPvZFnPdUmdKehav3gK/6Bw=; b=ReggJXkLbxh7EgG2MFjCmgu9guoXrcJzzP0zCRtuyLyDktRSuTX6eeXjaM9InWUV91 pfysC0GMY4OMmxUMA9m6Ku4msicUWHBs/wJSQHOK7JO0X6D628NatypVAsX//Do2MfiG CnPgZAf4gAc/UsrKY5ne8pZRpZBFfsgvL24CF67++XG5RhDm4Z22NZZMX+r4fi1WyR0y spgtvmEqxlxMVH6MJVKvnZP0BUDJyC+fZz8FNGILdHo9AdzVQO+aMXiNnOdb7n/X0cj2 VnSTghDV+/SMb9qMAFC/V9OBtoSNYwYZ0mPNV+fS0cwd6+jMPOkNXiBkmakstgFVSTcb tVrA== 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 y62si14838721pgy.348.2019.08.03.20.43.12; Sat, 03 Aug 2019 20:43:26 -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 S2389531AbfHCLPJ (ORCPT + 99 others); Sat, 3 Aug 2019 07:15:09 -0400 Received: from smtprelay0103.hostedemail.com ([216.40.44.103]:53510 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389458AbfHCLPJ (ORCPT ); Sat, 3 Aug 2019 07:15:09 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id D179F180A76E1; Sat, 3 Aug 2019 11:15:07 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:599:968: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:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:3874:4250:4321:4384:4605:5007:7974:8604:9393:10004:10400:10848:11232:11657:11658:11914:12043:12296:12297:12679:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21451:21611:21627:30009:30012:30054:30070:30090:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.14.0.180 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: boat09_83f32473a9e60 X-Filterd-Recvd-Size: 2184 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf20.hostedemail.com (Postfix) with ESMTPA; Sat, 3 Aug 2019 11:15:06 +0000 (UTC) Message-ID: <6ff800ceda4b1c1f1d9e519aac13db42dc703294.camel@perches.com> Subject: Re: [PATCH] isdn: hysdn: Fix error spaces around '*' From: Joe Perches To: Greg KH , Jose Carlos Cazarin Filho Cc: isdn@linux-pingi.de, devel@driverdev.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 03 Aug 2019 04:15:05 -0700 In-Reply-To: <20190803063246.GA10186@kroah.com> References: <20190802195602.28414-1-joseespiriki@gmail.com> <20190803063246.GA10186@kroah.com> 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 Sat, 2019-08-03 at 08:32 +0200, Greg KH wrote: > On Fri, Aug 02, 2019 at 07:56:02PM +0000, Jose Carlos Cazarin Filho wrote: > > Fix checkpath error: > > CHECK: spaces preferred around that '*' (ctx:WxV) > > +extern hysdn_card *card_root; /* pointer to first card */ [] > > diff --git a/drivers/staging/isdn/hysdn/hysdn_defs.h b/drivers/staging/isdn/hysdn/hysdn_defs.h [] > > @@ -220,7 +220,7 @@ typedef struct hycapictrl_info hycapictrl_info; > > /*****************/ > > /* exported vars */ > > /*****************/ > > -extern hysdn_card *card_root; /* pointer to first card */ > > +extern hysdn_card * card_root; /* pointer to first card */ > > The original code here is correct, checkpatch must be reporting this > incorrectly. Here checkpatch thinks that hydsn_card is an identifier rather than a typedef. It's defined as: typedef struct HYSDN_CARD { ... } hysdn_card; And that confuses checkpatch. kernel source code style would not use a typedef for a struct. A change would be to remove the typedef and declare this as: struct hysdn_card { ... }; And then do a global: sed 's/\bhysdn_card\b/struct hysdn_card/g' But that's not necessary as the driver is likely to be removed.