Received: by 10.192.165.156 with SMTP id m28csp235704imm; Tue, 10 Apr 2018 20:36:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48UwCYwfaSZgjcPjs+uFLDP1n3pNEPHm4uR2M+zFMlOt3JHrv/TVx8V8AQZL2736IrTcsv6 X-Received: by 10.98.237.18 with SMTP id u18mr2552680pfh.78.1523417783464; Tue, 10 Apr 2018 20:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523417783; cv=none; d=google.com; s=arc-20160816; b=hfIOxMd7Wh1qctNAea2+yEJv/u7CvgtLUqJvFCzPLviVHPPHPZk4AbMbp5uFgnGJS3 e+BcGqaFZ61gFb5E8d+c+u3n/PtW7JYDKi0TPTDfP5MPyBOrsGWTwCQIHsCGxfBvlXKe yzbcv45dT7fO6tC79J5De8IKC/26n4VinZmdMKPMQQC91jvYUqJBfml21fZZu/Bj6pKz QQ2YebZILv1CWK8g8Gi7IeKgmZdAGlUpBH+pyI/Ln7j5uL35yoC5zHL0b+YCyTQokg2h YT310SFmZTuK2NyM4V6+tDeErbZZwqPrdfLVRq8iiqCun22MZ8HcUTGsrJ6Q6CtRs5H+ xE4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=d9bF6dnaFaDp/BFxMoNlw9A1QOqNEbTrKuktXG9ERsk=; b=Q8WeEBjrkfzQjUBZLYTUffE+2iza3pPq1y68FB9T97ULoL2Lb1Q3B8/LCzWbZ342vt IErBLqitonHTSwu/ZjHrLG9dMj7CCdwwmOzrLIds5xwGarWmatK7XDhVulNBHpVL++fX MAAZ5+CbWJdLUEuHOHDnGiPcIFIbyd1egAp5RnsomKy2M+kHYFuj1jjTLQkWejTlo9c4 dCQDZquK8/jPlQ0YXZjkG+KfAtQc8LJA3YYcwIAQR59E48Ey3s+bNiiYFHMYoNJmBrrI OQUqYPSbWT+m2vrrBBxl9F6JacmiqhLWjbO2f19BDSrfqk5x1oO9F5i2UNj9+O8UDszW golw== 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 8si178699pfv.115.2018.04.10.20.35.46; Tue, 10 Apr 2018 20:36:23 -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 S1756307AbeDJWzt (ORCPT + 99 others); Tue, 10 Apr 2018 18:55:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43612 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755728AbeDJWgz (ORCPT ); Tue, 10 Apr 2018 18:36:55 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 078CA12; Tue, 10 Apr 2018 22:36:54 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian Shen , Peng Li , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 055/138] net: hns3: Fix an error macro definition of HNS3_TQP_STAT Date: Wed, 11 Apr 2018 00:24:05 +0200 Message-Id: <20180410212908.470870877@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jian Shen [ Upstream commit 57ffee737b36dbb81e8e60a37e01791553157a5e ] The member "stats_offset" was designed to indicate the offset of each member of struct ring_stats in struct hns3_enet_ring, but forgot to add the offset of the member in struct ring_stats. Fixes: 496d03e960a ("net: hns3: Add Ethtool support to HNS3 driver") Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c @@ -22,7 +22,8 @@ struct hns3_stats { #define HNS3_TQP_STAT(_string, _member) { \ .stats_string = _string, \ .stats_size = FIELD_SIZEOF(struct ring_stats, _member), \ - .stats_offset = offsetof(struct hns3_enet_ring, stats), \ + .stats_offset = offsetof(struct hns3_enet_ring, stats) +\ + offsetof(struct ring_stats, _member), \ } \ static const struct hns3_stats hns3_txq_stats[] = {