Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2483395pxk; Sun, 27 Sep 2020 09:16:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMebHjxpIknXeCBZVUh7/WuaE7z3vs3HuAHNf128Cxi2xk9g/MvC1oCebqLjQKxfHG0W7V X-Received: by 2002:a17:906:faec:: with SMTP id lu44mr11813719ejb.527.1601223399068; Sun, 27 Sep 2020 09:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601223399; cv=none; d=google.com; s=arc-20160816; b=bXLCGKj6mPMclEahNE0ssdVaOJHDVLWA46ZT6fpyhkgYFChVB0o8u2MsiEkcOs2ZZL U6MhalQsGmgZAvQbfulMIOMJOOm5BQES+zQtp3/k5mswLC8V+0rkWlaIzsXqTCd8aGcT vQNe6UIig/ldy5AjQugiC+cm7i915ciWLj8V1J0Fc5ujjdu1CPbiBBTxabXLwbSdm7mP ZQY4PCHYNFl2x0lNrEeAAWCYoTztHh1cUJ4olROZlQ2WRrR8dnMrdfo83+bC0CcW2Smx tw/wlMzaCw8c/hl96aUeBtZP7t5QiMAgI7S5soqAD0eGfGjIbB7sTdoy2NNM0AYQ30dP DGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ik7a4/nsVk8BAlTpU8JGdC8GG6dWXG+8DRdMggxS0U0=; b=GQGTujH52KlJs1dB/eu/ogkQmpok2NZh6uPyEYCV80Stun1yOfHcg4iRnMD5R4MNQU n9biZGuNDxOV14n3fmQbekgvd2z+TsU6JMe3uUS5dWw4fxSZfk7M4NVxfnSMr6VuZCTv aPh6sRdDFAVOWxMiX/oFW2iHPyn9QAkt78qIxTQvATT919CFzKucdX6tbaKbQg+roz3M E/HSWCUGIFfeNZMj2Wj0PxlAKujj4wiGTyIWwiumsEGB2HEUgQwCChamhRnRXdICqQbM snHzPldFe5MV2VRyuDkLqzRK6lXJq7KpbsWpGV7zAaciwuKUyCpPd5KbmV4SEZckUC5P UXRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b="LMq/AnZN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm14si6636196edb.346.2020.09.27.09.16.16; Sun, 27 Sep 2020 09:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b="LMq/AnZN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbgI0QOn (ORCPT + 99 others); Sun, 27 Sep 2020 12:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbgI0QOn (ORCPT ); Sun, 27 Sep 2020 12:14:43 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6287C0613CE; Sun, 27 Sep 2020 09:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=ik7a4/nsVk8BAlTpU8JGdC8GG6dWXG+8DRdMggxS0U0=; b=LMq/AnZNjA9odfL5NABJEuri3d LncuhwLNRHkqxISOEcTNlzY2d+wOM7RTjGKe3gyf16qM8327F9iZUTmWN1jn8bgYyuLF7pJstF1YT ZwCQ2PsL+HXOZZ3DjHyi+QQv1UQGR4SinrIEmLlkXN5ctnNyQQgw2kV3Qp0zU4pombGX0UxaTLUrP aUjDlC511KeBCeYGOzUCuj47GYaU7S2pFUy0PClVmHJciDOsZzugJuoBw9L9NKgzoc4fwOpC/D0/q hxHePhFzidGuLsdNNUcG1kczfN7cJWdJh13RACqYE1latlGad+DbUSGjmeIu7gUZQ3BsKcUZY7vFM 67LObhDA==; Received: from [2601:1c0:6280:3f0::19c2] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kMZJr-0001tk-NA; Sun, 27 Sep 2020 16:14:36 +0000 Subject: Re: [PATCH] ptp: add stub function for ptp_get_msgtype() To: Yangbo Lu , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, "David S . Miller" , Richard Cochran , Kurt Kanzenbach , Florian Fainelli References: <20200927080150.8479-1-yangbo.lu@nxp.com> From: Randy Dunlap Message-ID: <77c83c45-4087-eab8-ee66-6bcca11a5e2d@infradead.org> Date: Sun, 27 Sep 2020 09:14:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200927080150.8479-1-yangbo.lu@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/27/20 1:01 AM, Yangbo Lu wrote: > Added the missing stub function for ptp_get_msgtype(). > > Reported-by: Randy Dunlap > Fixes: 036c508ba95e ("ptp: Add generic ptp message type function") > Signed-off-by: Yangbo Lu Yes, that works. Thanks. Acked-by: Randy Dunlap # build-tested > --- > include/linux/ptp_classify.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h > index 8437307..c6487b7 100644 > --- a/include/linux/ptp_classify.h > +++ b/include/linux/ptp_classify.h > @@ -134,5 +134,13 @@ static inline struct ptp_header *ptp_parse_header(struct sk_buff *skb, > { > return NULL; > } > +static inline u8 ptp_get_msgtype(const struct ptp_header *hdr, > + unsigned int type) > +{ > + /* The return is meaningless. The stub function would not be > + * executed since no available header from ptp_parse_header. > + */ > + return 0; > +} > #endif > #endif /* _PTP_CLASSIFY_H_ */ > -- ~Randy