From patchwork Mon Aug 28 14:55:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717735 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231676wru; Mon, 28 Aug 2023 07:58:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaJZ5fhs8LLOosv8mgwpN4RZf+UUXCWqPO/AAQIP7O5b+lN+w+6zk4xfizRWJCQlyw15ib X-Received: by 2002:a05:620a:b03:b0:765:3ca0:3708 with SMTP id t3-20020a05620a0b0300b007653ca03708mr23831120qkg.75.1693234693668; Mon, 28 Aug 2023 07:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234693; cv=none; d=google.com; s=arc-20160816; b=JxduVpcc0koJvbzY+7I0tkjz5ms5p69FqVPydzAPm0cfvx0x6Yv4zIb+WYDRdo8+Iq bSFmi/BLKp8ey6FZdTO/4Di4fMkMSnn1cTZJH+oOuCNPbz1TUM73jSNAFFbzWF2BYJbj Gdgo1ieKX5Xczq+TzT97PhIjeOHv98r2hgFdkFLztbl35q2PE0arvKWZOurwzjd3LjhB c9snPVl4kHC+zuBK9nqQ2O0UW4vWVm284TS28UQizwvN2FyBETWkc3YuB3ah+kIgSPHp ZRmRYEg24hUPaK+/+zeepk3cNDVNuj+qVPWhy5lUKeuEngDydnUCGwJIaCy7plOjhVto pozg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uMoJnfVgaQ/gSCJ1EcKalX6fTZe7ML+oEsM4UrP9ySg=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=Sr/B/CR8KK8slqlnDcRshrrq3/YvKcNo1RcEOedtvYI30PZJ81ylZoqVVDCTP4T1G5 fT34/seOj6lkhFwQfWDViGSDZWAS+qzMBaxGpyQNhwS2aWmCZknq7y9Xt0IgwlR+he1G kX+ldKSKOqs7s9NK4k/mmyYCMlnaQLDTmQGNiEaNz8RuScE+9qSarzp5K7+K5aMgXC60 1fYYvKKJurH/2gRR+FEsqiWjFQLnFVe8W3RfhEiTfP+tbtIlbWV2bp3flrStbJoALVeM 24cKrzLn8E5++hfcnXhzovn0P9pnuCrA8LFzOeBNeAKRM4FwHL2hEfIgwlCtwZ4/7DEI cI3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uCSFkD5X; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j10-20020a05620a288a00b00767d62f3e9fsi4843719qkp.599.2023.08.28.07.58.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:58:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uCSFkD5X; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qadey-0003Mj-Ty; Mon, 28 Aug 2023 10:56:08 -0400 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 1qadex-0003M1-CH for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:07 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qades-0000dm-8g for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:07 -0400 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-31c73c21113so2956290f8f.1 for ; Mon, 28 Aug 2023 07:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234560; x=1693839360; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uMoJnfVgaQ/gSCJ1EcKalX6fTZe7ML+oEsM4UrP9ySg=; b=uCSFkD5XYs+JG7QevWUjwPqUs+YDJlAC0VDk50eqnjdwrUIj1qOTjR/1oKNiZq2zEF NgHOFpOtrkh4rxtgVZ6n2rNBFJhzXxwEyzLYL+YcGN2gv4SR9kQQaZ+/QvIOn/ZsK+yH W9LAcAOH1mGBWQPB5gh6j+RuKSOcANjzttCYDJiPPa0Dvwl2topmI2jnCS0h4iAbYyO0 SOi9bfIbqJ+yxCE6lQKtU5/o2VVYisy0SFGgRAd3HRSaJyEElou1GYE2Wqs1TvL8vh3L ZYMfZxTSsyKhp3k5OZutWI0X64LpSxM10MfA69i8znvKG76sOyyT4BJ4WtZv4isg2yyh utsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234560; x=1693839360; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uMoJnfVgaQ/gSCJ1EcKalX6fTZe7ML+oEsM4UrP9ySg=; b=PSo0zJ4QoZDv98i+O0Ikp9WyW3RXWvsrY5hS+xozeQe8nybcXRhb1bXcbN3P9WpJ/R KnSnVPnvxjsofcbj5Ydh++xO7nw0LSvVvC/UQki6ZIY8AFHG9+QfeP8wljRC4gbo7qbl sGI0zY/OdZQlDLrluzU0Lp8SNrAZbVTWbfZ6jRM8n99aKgJzKeD/C6AM4zGvsIlWqZZj CdU00FJA0/YtF+cGSExPIqIZAQpCX2yIsQR13xk020fo+6Q653ihmdVna/wB0DfK96QR lPn6quCFKQd/qEVIcaFRSdrJSLQfRynwcrAm6JstZwwUWW0SRvYGLhTCdUzwYQGo7Xbr CfFA== X-Gm-Message-State: AOJu0Yx4GeFy9f1BmpsgOpiqeRWNpqzCaS/7LpAtZlKOiChD1wIpoAh2 yJp8VdgOc2TMNqFIJZsrniraOvGT47xcvy3x5qY= X-Received: by 2002:a5d:4988:0:b0:31a:e6c2:770d with SMTP id r8-20020a5d4988000000b0031ae6c2770dmr17008877wrq.36.1693234560409; Mon, 28 Aug 2023 07:56:00 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id a16-20020a5d5090000000b0031432f1528csm10721106wrt.45.2023.08.28.07.55.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:00 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/8] target/riscv/pmu: Restrict 'qemu/log.h' include to source Date: Mon, 28 Aug 2023 16:55:39 +0200 Message-ID: <20230828145545.81165-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Declarations from "riscv/pmu.h" don't need anything from "qemu/log.h", reduce it's inclusion to the source. Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/pmu.h | 1 - target/riscv/pmu.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/pmu.h b/target/riscv/pmu.h index 0c819ca983..d2be06a133 100644 --- a/target/riscv/pmu.h +++ b/target/riscv/pmu.h @@ -16,7 +16,6 @@ * this program. If not, see . */ -#include "qemu/log.h" #include "cpu.h" #include "qemu/main-loop.h" #include "exec/exec-all.h" diff --git a/target/riscv/pmu.c b/target/riscv/pmu.c index db06b3882f..36f6307d28 100644 --- a/target/riscv/pmu.c +++ b/target/riscv/pmu.c @@ -17,6 +17,7 @@ */ #include "qemu/osdep.h" +#include "qemu/log.h" #include "cpu.h" #include "pmu.h" #include "sysemu/cpu-timers.h"