Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2211250pxu; Sun, 6 Dec 2020 23:51:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw775S9F/xQjL2RaxuStz9tDwdmqmWhlD22SmcS++iqf0mFBxTqojvjUzHue8+QnnwFbmWo X-Received: by 2002:a17:906:604e:: with SMTP id p14mr17873548ejj.543.1607327512887; Sun, 06 Dec 2020 23:51:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607327512; cv=none; d=google.com; s=arc-20160816; b=vfwslDAko0LEchVIfKKP5YtdhFMJekUXhe3etH7fD6iOs+vdrvZXMxS2JjI3ocGH97 /pmiDeOr8vI5kWlhl8/0CUHCkIrfYvqczeYR/2Hr9m58YgJ4nOx5XcbumuV6A4SLsUey 3NIfvy3ZrJajn9EzpcPgxM/CxD0lDHOLISTuQbAa5wzP/5RjbO9lMor9ZccQ7ek1lVol WmNeFk2aVCOdplrD873Y4lZEhVihWuv3FlelU4NTSMUTA/96F0bUx5N4d8hxqP6sWtWm 9pGIpTNHRhgi5YjacRTNh2Lkvl884lrFJdt6XNXkd2dj02AkpPYJAp6WmVUlL3M60Wsu iaJg== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=KuZfhDFzOft0cLXzb1xYadII7epnxovnlI2zcBp5mzg=; b=A2wSICAPLx1eLudq+48gENge/mD5Dcx3jSZEi0cmWsCjDREDW95Rxua4BXLCYgvnyB CayyY9wacj/cW7iR3HifNq1Uzkbe6ptfA2lIR9ed76X4QA99OadD28+wkhGKQoJGdvd7 mXf3ZhjLxev3Lq3Pzch0Clxoc4NQGvpf1UPXDrwMvWqIAEuXOnJEOyoo2aLxgcvpvzS1 GcBkFLoNW5j3VE+n2FztvDCRtvFOzSGzgA+pATZgY5HqfqTWJ732t2m78lOYmcps9zLz NtMQVtJtoSOhyNT9UIxxAUQ2VP8thsKSuELdXRitz5kncaFU9CTbDzf7QPhjvq545Wa/ J/AA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si7737996edv.493.2020.12.06.23.51.30; Sun, 06 Dec 2020 23:51:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726158AbgLGHtg (ORCPT + 99 others); Mon, 7 Dec 2020 02:49:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbgLGHtg (ORCPT ); Mon, 7 Dec 2020 02:49:36 -0500 X-Greylist: delayed 559 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 06 Dec 2020 23:48:56 PST Received: from mail.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A654C0613D1 for ; Sun, 6 Dec 2020 23:48:56 -0800 (PST) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) by mail.monkeyblade.net (Postfix) with ESMTPSA id 3C18A4D0D8855; Sun, 6 Dec 2020 23:38:55 -0800 (PST) Date: Sun, 06 Dec 2020 23:38:50 -0800 (PST) Message-Id: <20201206.233850.576775262589107523.davem@davemloft.net> To: tanhuazhong@huawei.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, huangdaode@huawei.com, sfr@canb.auug.org.au Subject: Re: [PATCH net] net: hns3: remove a misused pragma packed From: David Miller In-Reply-To: <1607325625-29945-1-git-send-email-tanhuazhong@huawei.com> References: <1607325625-29945-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.monkeyblade.net [0.0.0.0]); Sun, 06 Dec 2020 23:38:55 -0800 (PST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan Date: Mon, 7 Dec 2020 15:20:25 +0800 > 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 Applied, thank you.