Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2878877pxu; Sat, 19 Dec 2020 05:07:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaxV6C7cH9Q4IvUA6hOvKFfp6vrHpPouQg2lzDwGPeS+9RSNx/eLhMod63zjTV9ue8xvGe X-Received: by 2002:a17:906:3b4d:: with SMTP id h13mr8273745ejf.289.1608383240161; Sat, 19 Dec 2020 05:07:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608383240; cv=none; d=google.com; s=arc-20160816; b=AeBY1r8+wutC3bhQUlZUdnqIGnOeTXv0EVgR3xRL/7j4742n0nyq2SpZOOLOQXXVCt IB8e9/dksHUo/vMydaHY3bUs00q9VTanD7LD/TF//hnm6CBNdafyuTjNvsQn3Uz6eso5 ik45Q3EbDW1dO77NF+PMKBxMd0AThnSyQoQFVP1FEJJPhUEtXiVz5qAAnEiToZw/qPUy kfAkqpgiCs9VkywgKKcRYUXOVF/tYY3ypik0Bjaj6qA2vh61yPo/mjd3pp/X+oO3Fb4z haoyRp47neLXZ5QcHRYiuKB6df8ENXxxLz0A8R2ySWKyXvxuv2J5GeBUzxbk8dII3Mgv WF4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=ORnd86e0D+ai+cy0YWm0E3L6OZyTdyE4cgjw1LLyMJs=; b=Ebssq5pN7D0aeyV5ABpxDbpFOXCmotkriuxquuJUqZSHVH8ulZrinPPjHQGxKIuR/m IFjqKPMN+gLaxrSeDXCpXJ0OHlLB2i3tgArDOp6j311ByCdHjm5/3YCbkvotfhda9zWU CgDUd3CGRR4i+BQl8LeBMbTM6scHKMIRjdFscQgvtHedc1T06L+GIy/p/+ER++A7u3bA s9luGKPx+S+VV/8UfInJLVJnJsV19g+oAuUwBYSb5Ejb4wBIoBjQ9wNn3RtZCn0r7+c0 3/+RisbGZrOiYeeAq9iLqCeG7eIvqwX8afVJy8vgZYVnVciqBBlScUHIAXX1ce7BcqZe wUUg== 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e19si7991225edv.458.2020.12.19.05.06.57; Sat, 19 Dec 2020 05:07:20 -0800 (PST) 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727788AbgLSNES (ORCPT + 99 others); Sat, 19 Dec 2020 08:04:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:51326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728651AbgLSND7 (ORCPT ); Sat, 19 Dec 2020 08:03:59 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Rothwell , Huazhong Tan , "David S. Miller" Subject: [PATCH 5.4 06/34] net: hns3: remove a misused pragma packed Date: Sat, 19 Dec 2020 14:03:03 +0100 Message-Id: <20201219125341.688721686@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201219125341.384025953@linuxfoundation.org> References: <20201219125341.384025953@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan [ Upstream commit 61f54de2e9194f01874d5eda12037b0978e77519 ] hclge_dbg_reg_info[] is defined as an array of packed structure accidentally. However, this array contains pointers, which are no longer aligned naturally, and cannot be relocated on PPC64. Hence, when compile-testing this driver on PPC64 with CONFIG_RELOCATABLE=y (e.g. PowerPC allyesconfig), there will be some warnings. Since each field in structure hclge_qos_pri_map_cmd and hclge_dbg_bitmap_cmd is type u8, the pragma packed is unnecessary for these two structures as well, so remove the pragma packed in hclge_debugfs.h to fix this issue, and this increases hclge_dbg_reg_info[] by 4 bytes per entry. Fixes: a582b78dfc33 ("net: hns3: code optimization for debugfs related to "dump reg"") Reported-by: Stephen Rothwell Signed-off-by: Huazhong Tan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h @@ -35,8 +35,6 @@ #define HCLGE_DBG_DFX_SSU_2_OFFSET 12 -#pragma pack(1) - struct hclge_qos_pri_map_cmd { u8 pri0_tc : 4, pri1_tc : 4; @@ -85,8 +83,6 @@ struct hclge_dbg_reg_type_info { struct hclge_dbg_reg_common_msg reg_msg; }; -#pragma pack() - static struct hclge_dbg_dfx_message hclge_dbg_bios_common_reg[] = { {false, "Reserved"}, {true, "BP_CPU_STATE"},