Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4282562rwi; Mon, 17 Oct 2022 04:18:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7cOCP/aJbQlM3MBdngmsVxfcQAM5jHlau4hEvVdkOXbT/JiAKf8dMSAOW9VrfxZb8RaR8D X-Received: by 2002:a17:902:8212:b0:182:2f14:f6de with SMTP id x18-20020a170902821200b001822f14f6demr11560435pln.38.1666005482896; Mon, 17 Oct 2022 04:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666005482; cv=none; d=google.com; s=arc-20160816; b=yxwsl+Xdzxn2z8qnn780kdqMHUEGzPdnVf5ilJRf93Rs+zpKt842qhodmESQq4y579 ZpYpIRbxAWNtuVvaWQ/KWKfOsrkOFtguixHEWjM2gzUb8rli2HSPqg0LCrljUuYMXEGL MySY09ncXtOSVs7IqWIzDwV/p/6u1N4kfkg5zVmzomaK5E/gcJFySJQnT/AhJmUg83DG XiS3uZiVq9xrsTKQ2WzIlrzR+UOrJAVFzRVudndGoc8QZmqR1U4MgZeUEukqNUdT6x21 KIpPzDLVEypjpMGa/2YRulAnAptgT9ghpibIWB7TeVVtdbpjOMBCaiha1zW7z/Niga4z ozhw== 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:message-id:date:subject:cc:to:from; bh=YGdJu+abhxHHBSod+2U7lIGR4LGbdTSiRfIK2OJW2tA=; b=Eb2oqh5NaAB3eblqu7aHb6Peciii3vbiWFRZkMFem/EWttvJ20Nw3AoWLdX3RUxI5c hSqha6HvqVlwxT7CC2RpdzTXrYMSXmpWJFSpxrlPdcVFAq3jQvY2z/rRmZbpjufZNqsE kCqvnMZrme0wf5/HYxA8qf+axTGm+CGIfsTyyn4dwLBN/vVg5dpsXrqX0l/vd7xwW25X apf7FXSPBkVFE7wq+wR5jd60VNfapzs9MIwMxkIsitAv3rFa+VWXSGFPVxZ2hUcc5wti kP76vf8sCKk3bmZ5apC1IDLJpmsO+XPDqy25xa9YmKXv1+wPsiAtepCOTdh8IJTn9vg8 sFig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a63b64a000000b00438e839828bsi11482845pgt.72.2022.10.17.04.17.51; Mon, 17 Oct 2022 04:18:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbiJQKqT (ORCPT + 99 others); Mon, 17 Oct 2022 06:46:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbiJQKqN (ORCPT ); Mon, 17 Oct 2022 06:46:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A3EAC1A04D for ; Mon, 17 Oct 2022 03:46:12 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9D33D1FC4; Mon, 17 Oct 2022 03:46:18 -0700 (PDT) Received: from e122027.arm.com (unknown [10.57.1.201]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 345FD3F67D; Mon, 17 Oct 2022 03:46:11 -0700 (PDT) From: Steven Price To: Alyssa Rosenzweig , =?UTF-8?q?Adri=C3=A1n=20Larumbe?= Cc: Steven Price , Rob Herring , Tomeu Vizoso , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Robin Murphy Subject: [PATCH v2 1/2] drm/panfrost: Remove type name from internal structs Date: Mon, 17 Oct 2022 11:46:01 +0100 Message-Id: <20221017104602.142992-2-steven.price@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221017104602.142992-1-steven.price@arm.com> References: <20221017104602.142992-1-steven.price@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The two structs internal to struct panfrost_dump_object_header were named, but sadly that is incompatible with C++, causing an error: "an anonymous union may only have public non-static data members". However nothing refers to struct pan_reg_hdr and struct pan_bomap_hdr and there's no need to export these definitions, so lets drop them. This fixes the C++ build error with the minimum change in userspace API. Reported-by: Adrián Larumbe Fixes: 730c2bf4ad39 ("drm/panfrost: Add support for devcoredump") Signed-off-by: Steven Price --- include/uapi/drm/panfrost_drm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/drm/panfrost_drm.h b/include/uapi/drm/panfrost_drm.h index eac87310b348..bd77254be121 100644 --- a/include/uapi/drm/panfrost_drm.h +++ b/include/uapi/drm/panfrost_drm.h @@ -242,7 +242,7 @@ struct panfrost_dump_object_header { __le32 file_offset; union { - struct pan_reg_hdr { + struct { __le64 jc; __le32 gpu_id; __le32 major; @@ -250,7 +250,7 @@ struct panfrost_dump_object_header { __le64 nbos; } reghdr; - struct pan_bomap_hdr { + struct { __le32 valid; __le64 iova; __le32 data[2]; -- 2.34.1