Received: by 10.192.165.156 with SMTP id m28csp68187imm; Tue, 10 Apr 2018 16:35:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx489J+K8WvzH8bdk9wg7CzINa18Dl5/1axGvCbUUUWFAex4uUqhRe7i+9H7jbkHcDTaPgNeV X-Received: by 10.98.118.130 with SMTP id r124mr1970547pfc.238.1523403325540; Tue, 10 Apr 2018 16:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403325; cv=none; d=google.com; s=arc-20160816; b=LcAgFMsHU3/kMkrNQzQQ30g8jmhlGAzJQ4rcoihGNtzY0cDRiZ74ZIHECl9MuQqIaX yvH+gvW31B9WdaxPreG4RyjtBZa2pIIy/0xmak8oI9RxduMYvQu593Tu5PUUBi/DxQRz rHsxy2f0Wa5Qx3jpvrz6Z2vFR//VYwthghQVHPvIatx90HiTbTdjvkjfJLN5+tgomVcs /Wz8HIjtBqNBdujtE2diNFW2SSF0LAq8GMGNdAZM5RvX/96aqJQ5AZDnr8TUSyXbtAO7 kmxq+HddolFIjuT0lFYVWT8FdAKfNfu8XU3VRY5pnZdxHRPZ5v+SNDiKah8i3RDeHqUM jicw== 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=G6S/RrLJosPE/ZXuEcTzTHjNS4xWqy2FSGl/CZsiADY=; b=MbmsPR1itM3GkJpmeJY1MdI4hZ35bZxbrDw0MSf+HXHJRaRiq0XOyUvlF8cSWQ9Pkr BoEnmaDn5zVhzE6UJfXyE1yavJgwLojc6pkasWBCL/PNejt41VwFgJEqwS+kWJXfyq3i CxqwqPWI/UEqlyaVd3Bg2RjvwS6wV/DVNQuGLlpHU8Q0sV9VXTUTIvudf9OZgY2EbcGd 9dEbCoVKEQVWUpFL6+wuX9LaUBtYtqf2DnHGcYEkQWg9ac0CWLYnn8FrFbkQxjE+Vt7C 47dI3Evi81yADlgtrXTuha/LhOMiKAnzTJt4tPIcFOTufQBib0ZCNHHND5jSJAgDIGeL GOXg== 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 h5-v6si3420430plt.109.2018.04.10.16.34.49; Tue, 10 Apr 2018 16:35:25 -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 S1754182AbeDJW26 (ORCPT + 99 others); Tue, 10 Apr 2018 18:28:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39258 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754170AbeDJW2z (ORCPT ); Tue, 10 Apr 2018 18:28: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 0E53AD16; Tue, 10 Apr 2018 22:28: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.15 070/168] net: hns3: Fix an error macro definition of HNS3_TQP_STAT Date: Wed, 11 Apr 2018 00:23:32 +0200 Message-Id: <20180410212803.174883378@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@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.15-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 @@ -23,7 +23,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[] = {