Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2892879ybl; Mon, 19 Aug 2019 08:59:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNgf9G5II/AwMs9wwuu97tTZ32wVNrvS4ZXaWVLA1mrMriYio/wY5CMBuwFfK6D5P/7p0z X-Received: by 2002:aa7:9483:: with SMTP id z3mr24933475pfk.104.1566230382392; Mon, 19 Aug 2019 08:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566230382; cv=none; d=google.com; s=arc-20160816; b=unOIPrGH7Hy4+FlcIEaawrQ9itmMxLohQCstsEDpkmWUHNICvsRxmgEEePVO1Hm08u eFCBj+oRGsrIFlm+8ARZwKz6vfuFUd678SlwKgLyHVts+cbGczunZjA/9C9Kf1XcKbwI 7pRzvMhXksIuIsJDSOQy6O1UrHKrZWNsD8rxagzhvt2f0+zqrSGinQ6p4iZm6tu1Guey 1ef10FDWkZQNDEe1SSmCumNzZSw24Gr4gRrDWnx81dExgF58yF5cD00DlllNJAw5JSUH cBHg34JvdleddIzRCuYPHTt4IWrW9JobZVVFfmj3DqOCOcasNL02Rt3Z8B9NocQW4BV8 tzZw== 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=62qbg2ZTzkYWQpi7NYfR2xdeMvGl1pSmsWu0U9bFI9A=; b=vao5srUoX0SddpBwX1EVHjKRUKRRuuJVeQRvwaIAHUKeY0bcYgVhMtDSRF68JlSvqp Gmw4DYdDQcGAyu0+7zCP2XD7gzmJLazev/CezXqaPFZZ5VBrxFR51fMNlbgG0h/KvOaK Om7m1AEvJ0raWlDogzBtXd1nCbyXHquhY6XQcc7cnEw+RjaxauOdOJLQvx2Bqd8ke2Et AZ4zAgaAAlBoF8M0A9U8WslRh+KX+Q//HfSLL9qoi1q20ivzM4lfQaMDaGVrYpBiN6iP jYlTAKG8ShYYWV3403SfxF6RtFcbynnFLG3KpV+6HseyYSu26gU7zPe5wF9+stoKyKOI kyYw== 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 59si10433995plf.400.2019.08.19.08.59.27; Mon, 19 Aug 2019 08:59:42 -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 S1727917AbfHSP60 (ORCPT + 99 others); Mon, 19 Aug 2019 11:58:26 -0400 Received: from smtprelay0166.hostedemail.com ([216.40.44.166]:33308 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726390AbfHSP60 (ORCPT ); Mon, 19 Aug 2019 11:58:26 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id E04462C3A; Mon, 19 Aug 2019 15:58:24 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:3874:4321:5007:9040:10004:10400:10848:11026:11232:11473:11658:11914:12297:12740:12760:12895:13069:13311:13357:13439:14096:14097:14659:21080:21433:21627:30012:30054: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:26,LUA_SUMMARY:none X-HE-Tag: day21_2c37cb083520c X-Filterd-Recvd-Size: 1950 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Mon, 19 Aug 2019 15:58:23 +0000 (UTC) Message-ID: <0f1487356ae2e9ff185ede2359381630007538c7.camel@perches.com> Subject: Re: [PATCH 1/2] PTP: introduce new versions of IOCTLs From: Joe Perches To: Richard Cochran Cc: Felipe Balbi , Christopher S Hall , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 19 Aug 2019 08:58:22 -0700 In-Reply-To: <20190819154320.GB2883@localhost> References: <20190814074712.10684-1-felipe.balbi@linux.intel.com> <20190817155927.GA1540@localhost> <20190818201150.GA1316@localhost> <83075553a61ede1de9cbf77b90a5acdeab5aacbf.camel@perches.com> <20190819154320.GB2883@localhost> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 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 Mon, 2019-08-19 at 08:43 -0700, Richard Cochran wrote: > On Sun, Aug 18, 2019 at 03:07:18PM -0700, Joe Perches wrote: > > Also the original patch deletes 2 case entries for > > PTP_PIN_GETFUNC and PTP_PIN_SETFUNC and converts them to > > PTP_PIN_GETFUNC2 and PTP_PIN_SETFUNC2 but still uses tests > > for the deleted case label entries making part of the case > > code block unreachable. > > > > That's at least a defect: > > > > - case PTP_PIN_GETFUNC: > > + case PTP_PIN_GETFUNC2: > > > > and > > > > - case PTP_PIN_SETFUNC: > > + case PTP_PIN_SETFUNC2: > > Good catch. Felipe, please fix that! > > (Regarding Joe's memset suggestion, I'll leave that to your discretion.) Not just how declarations are done or memset. Minimizing unnecessary stack consumption is generally good.