From nobody Thu Nov 14 07:15:04 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1708427397; cv=none; d=zohomail.com; s=zohoarc; b=VfJWIIEdAbwHMjuN/Fd18LNU++g+aMos9Yy/1Planh67+96W6bT/Qelbn90SBRgdLd23J5Hb1qQRcG174jJV+ojiW09jlzYIEbmqYSQHGlLsdq+nR5OZA3tkX1Ww8hGn17RQ45+f1OrBQX/X4aI8nnnZP47TZtxFjrks0b4hpvM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1708427397; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Iui6nq54rQcDsgj6jB1Rh+Xvf6Zd3r0QRh6O0u+AHAk=; b=jl7PT5FdcNeoFWPsMUPXIyHbZnpYjs4ZPf+Rt+9bJ7q+gvErtUrLNp5mNKnUalRBI4hMEpLz9ICurihLnZ3A3wGwtKH8HGjD2uRhrfAxe/SXKao0sMZwDcqRV5VfNNXUbAm+MEAawFLQsOlJqCEAL06z2hUBhx2mvRPpPIZxK4o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1708427397436656.0544517771551; Tue, 20 Feb 2024 03:09:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcNzz-0002ms-HO; Tue, 20 Feb 2024 06:09:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcNzy-0002md-A3 for qemu-devel@nongnu.org; Tue, 20 Feb 2024 06:09:18 -0500 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rcNzw-0006qa-M8 for qemu-devel@nongnu.org; Tue, 20 Feb 2024 06:09:18 -0500 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6e34d12404eso2099630b3a.2 for ; Tue, 20 Feb 2024 03:09:16 -0800 (PST) Received: from hsinchu16.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id a12-20020a63d40c000000b005d34cf68664sm6347246pgh.25.2024.02.20.03.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1708427354; x=1709032154; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Iui6nq54rQcDsgj6jB1Rh+Xvf6Zd3r0QRh6O0u+AHAk=; b=BLn5q2Be/HX0aVE7i65cy1qgKtFhnp+bm/hAlxBFetfPeRyYokwmwRtclANEtPvjvA GzifG2DYF4zVy28/8SR8eIWrnV0uUQc/PHDaKmZ+j4awKJ19LjrQJfzhImlJ71/3M90a htOo5AsNXDhGw7/jOwlY0bMm5vMK7aXxAFGlgc3EURWVJGA9+G7OVwMcMxUzPBKvMQPZ W3mOCJGBAFEVDZTa/PdZj3r5UNG1VUSWn0C9hqjnsijH6qwcG0Nm1C8F7LkG4XR2xlpX vb4ERlXigdzRCaVGAMO3zxCgexvIggY3nVTsZtqDdjIKpFgyfrbjaYlxAu//E+3jl8JD Kp7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708427354; x=1709032154; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Iui6nq54rQcDsgj6jB1Rh+Xvf6Zd3r0QRh6O0u+AHAk=; b=sztS4olhtyDKJhzA+u9t9loSFvnd0gse0z9xRiUYJIzoPTq9sTKCk4P9jXTjdKJQ7L mhdEOgjkeTx56wIC8Ltt2VimdFDx+ESQUp5MAQnaVM3MggU1SHEGGnH38xBCv1eEuQkl jEbmQbBQysX7jaYXeZj/bmAlN/dobgv5bNOzDtHIQefRdunexFY49SbEgQXmUQEN+A1u c6L4JoTDS/8GnW0hkZCMZaONxTzde2dcaokg8NGOyj8Vc7Be6qfYdOaCPwtA0rVpB7IC 8PGt2gRiXSJyTUutv5xoedm8ZchwdGLK453RxzrBPI5XKEvFL/UZQpwFep1/Jd4kVuHt Itmg== X-Gm-Message-State: AOJu0Yx7VSR8dYFMg77bk5YSf0QlYUwMncF6CMIPGw3G4Kjtqxx9Rrwl enq1diSxhjX4oHjQww/8cWnKKAxPxS+UrGHCpDEBgwHrEfhovHnM7O3j+vDdNm6HCbd2mk+yWIb /sD39qIWIY5/C+MUhR02l3ln9mpCc4ep+x97SCg3smn3LrNn4FU5zZN9yVIIGOS7iGU+vcFjFdK n1/XwSXQtJ396RTjucUVpZUGBwbYdU0Y0xFUt1KE2PwA== X-Google-Smtp-Source: AGHT+IEhDHyTtTyA7mKiib5e41UpkSt7CpTe0Lwlrk5mAl590hlxjG5lmBQ2eOSrshL/JFDZqLhO3g== X-Received: by 2002:a05:6a00:10c3:b0:6dd:d1fa:ff17 with SMTP id d3-20020a056a0010c300b006ddd1faff17mr18134394pfu.32.1708427354496; Tue, 20 Feb 2024 03:09:14 -0800 (PST) From: frank.chang@sifive.com To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, Frank Chang , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei Subject: [PATCH] target/riscv: Add missing include guard in pmu.h Date: Tue, 20 Feb 2024 19:08:55 +0800 Message-ID: <20240220110907.10479-1-frank.chang@sifive.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=frank.chang@sifive.com; helo=mail-pf1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @sifive.com) X-ZM-MESSAGEID: 1708427398816100003 Content-Type: text/plain; charset="utf-8" From: Frank Chang Add missing include guard in pmu.h to avoid the problem of double inclusion. Signed-off-by: Frank Chang Reviewed-by: Alistair Francis Reviewed-by: Atish Patra Reviewed-by: Daniel Henrique Barboza Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/riscv/pmu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/riscv/pmu.h b/target/riscv/pmu.h index 505fc850d3..7c0ad661e0 100644 --- a/target/riscv/pmu.h +++ b/target/riscv/pmu.h @@ -16,6 +16,9 @@ * this program. If not, see . */ =20 +#ifndef RISCV_PMU_H +#define RISCV_PMU_H + #include "cpu.h" #include "qapi/error.h" =20 @@ -31,3 +34,5 @@ int riscv_pmu_incr_ctr(RISCVCPU *cpu, enum riscv_pmu_even= t_idx event_idx); void riscv_pmu_generate_fdt_node(void *fdt, uint32_t cmask, char *pmu_name= ); int riscv_pmu_setup_timer(CPURISCVState *env, uint64_t value, uint32_t ctr_idx); + +#endif /* RISCV_PMU_H */ --=20 2.43.0