From patchwork Thu Aug 31 12:56:11 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: 718986 Delivered-To: patch@linaro.org Received: by 2002:adf:e5c2:0:b0:31d:da82:a3b4 with SMTP id a2csp460787wrn; Thu, 31 Aug 2023 06:08:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5V3kt2ZYKgSWNttj5dTKf46B944UrNtbD61R+Jt/c5SLxwdens1E//0mUUm9CY25t/pzS X-Received: by 2002:a05:622a:6f09:b0:3f5:16af:17db with SMTP id iv9-20020a05622a6f0900b003f516af17dbmr2555244qtb.0.1693487323501; Thu, 31 Aug 2023 06:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693487323; cv=none; d=google.com; s=arc-20160816; b=UaEiNWQXCwvoeKmUqrZi1EcMCIEg726AIadhehjsqvXr10VBqoKkVrvVK9HoQiINfC RsayefXs7yYKunE/JHE9/kpuGw0MKTjQnqkawsMwPzmCVkDo+GUzD7a+RgvMSzzAQJ0+ nAxA4Ti0FETH/iLioRw8TWfpMcyHWlzEae4jvnRpE7yxg4qdhCf+WgJ5gVApy1kTv7Ds xm9quYFaSy4RSH+s8UfkKXuNa2ekNDzb4B8PqdxSBpJ6nOV0CGBJKakic+Bm7Yco7d6l 5zXjMi83b/vRPqq9+fKLNYw+8IxSuVXasjqIySkU+bxjJlZeChMN77vYRNfrlw14O9sz wKlg== 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=OEBOMsh/2YnVXzixxLDyYqxUdUQOvziVNTmEZMBX0zo=; fh=+j9mkJWFeBlg3tgjNCfKQ2d5Q02bvruS5zHcYwno2d8=; b=kUliAhEi/zaD2RW9jCvzupm7Z2HHjBsmvozPd9+mX3DaU2lmKYPYX4DhZfDGZ39Q/N rq91F4aAHoQt4jfH+QoInmT7fkshni4Hwg3kxeCNRBNDib4qHg0DPSXchxN8jtSRiOZr YUBcIXb23oqMiZQX4Q+8L8r3pNOw7OXSQWsgpbaseInv+NuJ61k2SjnP0ykjHUnSb2oX a+HntAbQB3wVdR4vgU+TCvNpXcy44T+WewktL2UGhvz5fZiiNidy38p+KRiSz0u85geC nbeZZKonC9JuptNTVW44z6Jd+5yCyAZp+uE0ghe6CChN1XAwsX+7IJTxQ64Uju/JK7+0 40Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q7gXQi51; 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 j5-20020ac85f85000000b00404d56daa9csi828187qta.809.2023.08.31.06.08.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Aug 2023 06:08:43 -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=q7gXQi51; 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 1qbhHM-0005FX-JK; Thu, 31 Aug 2023 09:00:09 -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 1qbhFB-0002xk-Ov for qemu-devel@nongnu.org; Thu, 31 Aug 2023 08:57:54 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbhF2-0005LG-71 for qemu-devel@nongnu.org; Thu, 31 Aug 2023 08:57:48 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-307d20548adso641299f8f.0 for ; Thu, 31 Aug 2023 05:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693486661; x=1694091461; darn=nongnu.org; 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=OEBOMsh/2YnVXzixxLDyYqxUdUQOvziVNTmEZMBX0zo=; b=q7gXQi51bkl/faqbG5DeWykzANSO+dP0F+d7XfJxrzOdVly4o1roQGyTdru02vHDEP 2Epwcn2T6N95iwOKH96OVRpXswy4bkE+G7x9dKR1LkymX6UTaPqp0sEAJhh2s3AmlBZ+ L4L6ubkQ1UwsC50F0h/nQzi6i61GbkJxr+crpx6Uji96IGlWb921sXTeMFnjyj9lyH/h aXzcbg8QH4MFhQpy2zirkHME6QpW6AMAoEVcYcHnYeBCYJsPblVJaFD6Ji7gqj6c7od7 m7f9yGIVdrNA3Ue4FN6n/cY6xyiZWj8872G/Q5BQqc1QWq1URvgylGURo1BwwNKW5V3F A71g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693486661; x=1694091461; 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=OEBOMsh/2YnVXzixxLDyYqxUdUQOvziVNTmEZMBX0zo=; b=K/4kWhkUjb2rb4/7t1hlKpnN9o3aktkE329+sN6e2BzyGhu/T/Rpy+jhsQyzkEHxuh sApqULUIKaFvrt3LSh8oXyVPd+/++QIdbVe/k4GojcU5hxaEq5RBqhpP9GNH1GTogiS6 30gMZaxN8UIroaoL8gLOvxbxFi+2GDYeLk3F2+f7NmyfIDFZl2sBes0gcWw2sFRuBRGH lLrU3pqeq8GMK2imQJ6Xo67KrNTekcwG/l2rWE3u5R0RPRfyjYhmwDfwC8l3dniJNxWY +vswTgjOWiVOQmWZv14rPVthu6Gaol7CSYz0Jp4MPdQtyQz+QuC5lFbHpEe7Q/G0LiIO mNlw== X-Gm-Message-State: AOJu0Yyl3PY8Xiyq53kof0UDoGaJWBqieOKF6IS14phfQy95Pc59lZzT 2zye6lh9kWdyK52QdIALIJUXpFSdqcdsV9XVTsA= X-Received: by 2002:adf:e6ce:0:b0:319:74d5:a2d7 with SMTP id y14-20020adfe6ce000000b0031974d5a2d7mr4511339wrm.32.1693486661117; Thu, 31 Aug 2023 05:57:41 -0700 (PDT) Received: from m1x-phil.lan ([176.187.199.245]) by smtp.gmail.com with ESMTPSA id h18-20020adff4d2000000b003141e629cb6sm2158792wrp.101.2023.08.31.05.57.39 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 31 Aug 2023 05:57:40 -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, qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , Richard Henderson , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei Subject: [PULL 09/41] target/riscv/pmu: Restrict 'qemu/log.h' include to source Date: Thu, 31 Aug 2023 14:56:11 +0200 Message-ID: <20230831125646.67855-10-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230831125646.67855-1-philmd@linaro.org> References: <20230831125646.67855-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.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 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+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é Reviewed-by: Richard Henderson Message-Id: <20230828221314.18435-3-philmd@linaro.org> --- 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"