Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2272805pxk; Sun, 27 Sep 2020 01:20:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqPP51MACJm4e4XRdHRw7DL7IkVg9zYtXEYogA8dACZE6YqTCp0fh1Rv8G9Hi0LNkiQnFK X-Received: by 2002:a17:906:2659:: with SMTP id i25mr10252235ejc.16.1601194823590; Sun, 27 Sep 2020 01:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601194823; cv=none; d=google.com; s=arc-20160816; b=t4Dg5hMJGPkN/v1Jz/ayYlmbt9tKTBXkx7bMdGLXuQSYjllRyaZOBcr6fzb1mCl4Uh fG0UgP+TxTlMr4ZjtY0PIg1BuNqgVP5MxbpQeM7FmWkEnQ/3yOyxF92CjSwJDgl+gtLi ElSFDZJsesQj/1ck3uztJLyYGOGmRSG/XC4U59dfs1o9Btt5RJ0dIOwwELY+Jji+MBnZ NT4xQNKcCy82m3Cg0QmP7kuIpfkKgB5vuJ0eglH6+17SW/53S4SUWNf5hFJ2zKhyFw8U uIyyW3sBKnZdzFcsbqPRdRGX/8U9trt18JCc6DnlV33OZcnllouLdaeH21ZuHFhsmO4Q bXUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Q9e+tgiTs0zUaVtRRT/mBROsEiX5P/mCSpZP6pQAVfs=; b=qKpDj1TWhhep8o5zEJYr0DP0Oze1+/H+sbYQ2i7iS2ej9a/Y3X+/RqvSRyQJVMvuiw XGw1+pceK4XOHR3vXaapZ37dhouIuskUaKWYLI5Rm9d9s8rCZmiUK8TFbh+XRwr14fq6 W1K4yFlnDp4SR4Vpgteuzvi3JUzsUx95Q27kVN55waigyLlA8EBoq4um1CNrt1EaKfmz X8zjazrSmID4TV/covzEc/zojIOS8AFXaQK1kEEscD8CKQbamOgwkIeqd1NPwwIdfBYr iUf3KkFMinECrxFZjso5adS1u8csCQu5E2mgyJiZ67JWXdEk9UAEnh6xJvw7qOcwx0F9 pr6w== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs17si5516220ejb.309.2020.09.27.01.19.59; Sun, 27 Sep 2020 01:20:23 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730457AbgI0IS7 (ORCPT + 99 others); Sun, 27 Sep 2020 04:18:59 -0400 Received: from inva021.nxp.com ([92.121.34.21]:55262 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729125AbgI0IS7 (ORCPT ); Sun, 27 Sep 2020 04:18:59 -0400 X-Greylist: delayed 510 seconds by postgrey-1.27 at vger.kernel.org; Sun, 27 Sep 2020 04:18:58 EDT Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EA8EA20147F; Sun, 27 Sep 2020 10:10:27 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 29B0B200049; Sun, 27 Sep 2020 10:10:24 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 340DE402E6; Sun, 27 Sep 2020 10:10:19 +0200 (CEST) From: Yangbo Lu To: netdev@vger.kernel.org Cc: Yangbo Lu , linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, "David S . Miller" , Richard Cochran , Kurt Kanzenbach , Florian Fainelli , Randy Dunlap Subject: [PATCH] ptp: add stub function for ptp_get_msgtype() Date: Sun, 27 Sep 2020 16:01:50 +0800 Message-Id: <20200927080150.8479-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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_ */ -- 2.7.4