Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2875482pxu; Sat, 19 Dec 2020 05:02:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgN4ZS64vpBJn/ogyInp5cAn+2bXMaJNGhFoQoKJYHnicsQkXNeXpoV8Ve3/zIItZbR0g6 X-Received: by 2002:aa7:c884:: with SMTP id p4mr8615586eds.72.1608382966181; Sat, 19 Dec 2020 05:02:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608382966; cv=none; d=google.com; s=arc-20160816; b=nVTuoaSKtg/V3nMhh0a4i3ZuxMnyXr6w08fst5jIwn9s3SMNqEG+THOVmmBl3qaxMq +9MGllvSFy6MiJbZgzINxdrGHa41OHOgY3V+AJn3op7aofrfhZ818XV7GBQAmz2pmiH0 L9FF3zOhFkfikCJ7MzZhB8Pq6P93APpHgM4nQaI3bBoAhAiIycRxalJYWYS0OfoTVqFq 48ZcfQr5/RzEsyUBfqzbNXBQZxtFbv48dbF7o7AIf2hjpBKUJ1fpNAfXeVQaIkRQDNVu HHa7AOmX/tBJZCJ9O+gQVCm5uEHupa9AltyRh5LZgRwrb4QnA0qFUvEWp+7jmVfg8aWZ Jf0Q== 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=mwyY3RtXh1PzGK7GymVdsglL/WZxwh2O+CN9DFgFS1IFljd+NTrde/HTBrT+wT8dCh z/peMhZSmQKeB8MW31nzEeUWoQT7lUSb6iZo0IBmtvPEkImOo8hqGUzEGwJgiP6LEPJc +uaU84oDCatAu/g2DWRZvT8GhhiiLMCCnlxDnJMXTKmlrlWrzGjqE57Lbv0QSdEgni25 WuK8foWxW0On412EC1IkI4nzj2Ne92Rb+xdEG7wu0fOaB/Laotyiu9tcDXo47GcVSaFR rKZ9BzyZIySYG/n+ScQLeVWe/xKtxcaMV79NgyTKdRXabigVU327MUSAfuUBrLOjb3im cNdw== 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 q8si7736488edg.582.2020.12.19.05.02.23; Sat, 19 Dec 2020 05:02:46 -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 S1727942AbgLSM7A (ORCPT + 99 others); Sat, 19 Dec 2020 07:59:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:45032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbgLSM6p (ORCPT ); Sat, 19 Dec 2020 07:58:45 -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.9 09/49] net: hns3: remove a misused pragma packed Date: Sat, 19 Dec 2020 13:58:13 +0100 Message-Id: <20201219125345.131206644@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201219125344.671832095@linuxfoundation.org> References: <20201219125344.671832095@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"},