Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp147495rwb; Fri, 12 Aug 2022 16:27:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR7hdxw+0Iy17RkQdNpz65XxUAlHwf/f/YNXKEzkxJS9nzWNFN6ApQlzk3KW9V+UyQHUbacr X-Received: by 2002:a17:906:58c6:b0:731:39e0:3eb8 with SMTP id e6-20020a17090658c600b0073139e03eb8mr4142387ejs.205.1660346859247; Fri, 12 Aug 2022 16:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660346859; cv=none; d=google.com; s=arc-20160816; b=chdI2LIoM2WMiP3DlevflnbzI21fsEq2N2bfe0Bdf0esj0oRYIJgms0esC9WwmZYR7 7fZ6/VdkxDkTulkNZ5AcFUT3X1GJPQoJluGjM6MviegdI5MjW1xs+uMB22NugYKtOnXK i9KZMHPytnVPsNjMzlFPV4JrAs0KXJGyMpjGxmWYS5fd/Xm55qsUkAX1bHPLfAg+bfU+ aeFTGAKbwJD3/mMCgz6jPVDFs2T7hkbWsHcT2YQckoFlw3ac7m+RM3W2NQ4sELH/yQBg oC2TqtQh/OH4gbHukbIusCTeR7tbdcGK87LptOx2uPpX7e1dThjCkcV8XhlI+LhIFEMj Z2vw== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=J9waYuqiXiBo6CoKOY7xSmYY7/t2Q162Stvs30VRjP0=; b=Qrcj7KNqdcpWcZlvb+XJ7m4ZDg2vch2qdERiQitSeGvV+8ex7XWjp7e/9Q4CymKpeg dWrHFTLxYnkctS10G2vrMNPmVhUiMIxKaoQWQZIJz7VOFWzkWp43AXwLKYsNRdEAjjwP AtM2gRLb4VX3VJq76DbtlRk05rfg1DHtNw2p8xs3XPsnGgP38GVModo83mpNMcVivMMc 4JwYiCABqQMcAChn0cxcbg/cEAB82gf/u852FkfHk7gRGYJ3u1/qikpfHB6YAhvlSX4x 9+pO3pJjBYviKtdG6JIRXD4naZC8SmTsNBy0uyEeVw4DipVmgyQe9CxCPOnOPKr/o0JA 6Odg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=o6Q7RXb9; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a1709061be100b0073187f41b15si2321629ejg.224.2022.08.12.16.27.12; Fri, 12 Aug 2022 16:27:39 -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; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=o6Q7RXb9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237307AbiHLWde (ORCPT + 99 others); Fri, 12 Aug 2022 18:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbiHLWdd (ORCPT ); Fri, 12 Aug 2022 18:33:33 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 819EE13D33 for ; Fri, 12 Aug 2022 15:33:31 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id 12so1900705pga.1 for ; Fri, 12 Aug 2022 15:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc; bh=J9waYuqiXiBo6CoKOY7xSmYY7/t2Q162Stvs30VRjP0=; b=o6Q7RXb92DprDTEK+xuWZspARQoP6RYVzSVAfk0YB28mr9jc7AQl4X79nUF/2oo3bb n5ESpjMYSYV0pMInItoE9jj6D0rCgz0yH4oUTYnwsWsKHOB4T9DNBymmbbSO8N35oXqV iweQz4HA3ceRqgscHKCc4abaIonTH62RhMC/tsv8a9WRHdMlCI0hDygMLJSN2XKqsRPp i90nqzmFhAxcigkrmOiVRUwfVYs4znxLzmenwmd0GucYeWPdPtS8u7KIQtWzGzAtyEbS N009eCfbkBSP+76LfCWw+BGRxCUOXFsd0VExQ9K1zvuOLYJHT31hkgbeEaZpjDBz/N5o 5iUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc; bh=J9waYuqiXiBo6CoKOY7xSmYY7/t2Q162Stvs30VRjP0=; b=w1tJ9+nxEXQ14awKknxy3SnsVph8ihxA6ev/0ASE2vb55Hz1PK/iosDnukYMSuBFL1 V+JH+k3hT6OmtRbcAmnPhbWkc0SptDpMtR5Q6sRnjLzzpXyCRaNeM8YFw7ZLAk3enP42 pcwfUp0xAL4pUISEGTrVW4DAGsnhKIcfJ+qXAXJ/AnAyS7lw/M9m8NTF8j6bgFmGCyAo EphahSdRkO8IiqzQPpqO71kF9Swd/PiR+EPldcuRNIJPVjt2QYGQP1RYRfr1zabBdUNx T7ngp4ZqITVP1lRCv8bxI600do04KX0yQvBswahlybEs22bSPxvftio2Yepvfqet17hJ ycIg== X-Gm-Message-State: ACgBeo1BTuj9DdTPWf46/G2kAkRKS3FkMLnbehDBUsnkIw8P7HMzbmHG O2dOWNW9FIUuulOm59PppBYLEg== X-Received: by 2002:a05:6a00:230d:b0:52b:1819:3a0 with SMTP id h13-20020a056a00230d00b0052b181903a0mr5842336pfh.53.1660343610994; Fri, 12 Aug 2022 15:33:30 -0700 (PDT) Received: from localhost ([50.221.140.186]) by smtp.gmail.com with ESMTPSA id i16-20020a056a00005000b0052d82ce65a9sm2185008pfk.143.2022.08.12.15.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 15:33:30 -0700 (PDT) Date: Fri, 12 Aug 2022 15:33:30 -0700 (PDT) X-Google-Original-Date: Fri, 12 Aug 2022 15:33:29 PDT (-0700) Subject: Re: [PATCH] perf: riscv: fix broken build due to struct redefinition In-Reply-To: <84e4739c-0197-f9d9-5529-24f6037c85fa@microchip.com> CC: jrtc27@jrtc27.com, atishp@atishpatra.org, anup@brainfault.org, Will Deacon , mark.rutland@arm.com, Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Conor.Dooley@microchip.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Fri, 12 Aug 2022 07:19:54 PDT (-0700), Conor.Dooley@microchip.com wrote: > On 12/08/2022 15:13, Jessica Clarke wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >> >> On 12 Aug 2022, at 14:51, Conor Dooley wrote: >>> >>> Building riscv/for-next produces following error: >>> drivers/perf/riscv_pmu_sbi.c:44:7: error: redefinition of 'sbi_pmu_ctr_info' >>> union sbi_pmu_ctr_info { >>> ^ >>> arch/riscv/include/asm/sbi.h:125:7: note: previous definition is here >>> union sbi_pmu_ctr_info { >>> >>> This appears to have been caused by a merge conflict resolution between >>> riscv/for-next & riscv/fixes, causing the struct define not being >> >> union, not struct > > autopilot, thanks :) > >> >> Jess >> >>> properly moved to its header. >>> >>> Fixes: 9a7ccac63f9c ("perf: riscv_pmu{,_sbi}: Miscallenous improvement & fixes") >>> Signed-off-by: Conor Dooley >>> --- >>> drivers/perf/riscv_pmu_sbi.c | 14 -------------- >>> 1 file changed, 14 deletions(-) >>> >>> diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c >>> index e7c6fecbf061..6f6681bbfd36 100644 >>> --- a/drivers/perf/riscv_pmu_sbi.c >>> +++ b/drivers/perf/riscv_pmu_sbi.c >>> @@ -41,20 +41,6 @@ static const struct attribute_group *riscv_pmu_attr_groups[] = { >>> NULL, >>> }; >>> >>> -union sbi_pmu_ctr_info { >>> - unsigned long value; >>> - struct { >>> - unsigned long csr:12; >>> - unsigned long width:6; >>> -#if __riscv_xlen == 32 >>> - unsigned long reserved:13; >>> -#else >>> - unsigned long reserved:45; >>> -#endif >>> - unsigned long type:1; >>> - }; >>> -}; >>> - >>> /* >>> * RISC-V doesn't have hetergenous harts yet. This need to be part of >>> * per_cpu in case of harts with different pmu counters Atish just poked me about this as I was tagging my PR, I squashed it in. I don't see a message on lore, not sure if something went off the rails or if it's just in the outbox on my box at home.