From patchwork Tue Mar 28 22:58:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 667888 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp49652wrt; Tue, 28 Mar 2023 16:01:02 -0700 (PDT) X-Google-Smtp-Source: AKy350YE4vO+SMz/S3FZfDtVo3uPKV5Wsudv/QvlBVyTcCSXD8m2yJJxZbIPDAbpUOXK9UmUmYMn X-Received: by 2002:ad4:4eaf:0:b0:5ad:f97c:3e26 with SMTP id ed15-20020ad44eaf000000b005adf97c3e26mr27966537qvb.11.1680044462722; Tue, 28 Mar 2023 16:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680044462; cv=none; d=google.com; s=arc-20160816; b=BN8VcFePzwTmpS/I4WeHhyYB1xLG6jDdUxWG0mV+vruDn/Y9roj5WAmwgQCFo9veFj HV5a1BzOCNGIUzZwsv+w+qs1UUXnqFslTvr3+HfkSQ3XQ00kiIiUEBEHONHtn3d9q0nn weoOcpUG6XdUbAmcfX+WdTG+Nv5X7FIovyeQ+2zmWLo8R8eF+j2J2C5cnZTCRWGRMxch roZZf3Tvv/FJGcyVxaw9LhVaFIMCptxkI3NndMHRil9ds5hgLA9F2lL6xidiDGqAjDjQ dbAnlJkxJqU9m6USq9DJ7ll45F8oR7Y40FVIwUXErKIci9WEBanxXzvUL58WJLEcFajM 6PuQ== 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=xB7EoPcPuhHBkTYLQAr4hW1zXQR4T+cKsdLP9y+p2a0=; b=pC+I+A8lQikaRdBPS1ee6Q9Q7HkPmKLObHth7nvdlpvQuvcK+raf1h6oQLTNlqklSY 1l2s2XEblgMgKjm2KXt9Jz+jq0KB3/YNwh/HjpIGYqiJmfhgMzSw+fto9FY0ux/QE4pA 6Uqfkw9DnqsGwrmlsE4oypN6Xb5/GIytdLGI+Vx4QveLsLvJeEpNC6V7WtltWqcfMZHn gESV/J+F9W83pP02hIl8V1zqteeHMermz/BKNk3ryVGDatEWOSK++AqIpyAk9OE/XIJ2 4Y6V/vrJfSgjlUjUw2ML4wLGaCWzRoRNgvVlwczB6eG0mNaVykI13fbQGS0UBFtnfvFN 6iow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oWDGFSsz; 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 i7-20020a378607000000b0073ba4162d51si20087728qkd.590.2023.03.28.16.01.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Mar 2023 16:01:02 -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=oWDGFSsz; 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 1phIGo-0006vu-3l; Tue, 28 Mar 2023 18:58:26 -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 1phIGm-0006v3-AW for qemu-devel@nongnu.org; Tue, 28 Mar 2023 18:58:24 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phIGk-00075Z-RM for qemu-devel@nongnu.org; Tue, 28 Mar 2023 18:58:24 -0400 Received: by mail-pj1-x1030.google.com with SMTP id p3-20020a17090a74c300b0023f69bc7a68so14235620pjl.4 for ; Tue, 28 Mar 2023 15:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680044301; 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=xB7EoPcPuhHBkTYLQAr4hW1zXQR4T+cKsdLP9y+p2a0=; b=oWDGFSszQisVfdhFMzNUMkDj2u1kDJ9tMfx0hN03Dacp9B2mMhCq+1uIWzfc3B1ZGi 3POdcmqXnexcB0hDnmnxeyPWAu2Pa0WRRAJJK0gK8VJ4g1KMOKdM9mNPryttHAsf5F5M AqePjI0dSECvkBGaWlO0KjmawN3ZYTQs4WxhIYGJZ0wXN8RpT4+sSL2aIVP3wMJrs8Lc JJ18TyWs+cgKzdafoUHozwuPVTWoKF80hZpUTt41mWOEYrjuaG2mF80+bsxatAVpLqpL D+/PUT8yhKEYwcK6T4xy7mLi1PdfiI64rn3uFPy/RgzvnoBxWDZZoMp5YoX8bZsGtr2W B2OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680044301; 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=xB7EoPcPuhHBkTYLQAr4hW1zXQR4T+cKsdLP9y+p2a0=; b=8G9bdWYxWvQtZjm4sCp+R+IZbBrifgd9a0gZCadGQSuYRcWQnssSHdJfeSLY74VamX 1XjrC/4Q0tb3sLSyVgiJYZqgOa2hDdCCAQs8URxNfdQbDh6pHcppvM3FF3Qk+wSfT1oB 2DXKvq8FgW/wCOdoAqdUy/aVDBGjpvWdrfCcUYdH9oueyDZC+y12Y5aIK+4we6cl2Tnl 4oU11r/Pc+IfvlR+tSlC37nczBm6UxbuBI5YXpUV5Cd8aqm/mwWolus1Kos5EWiGi+No c+xIfmK9cckuLo4WZbpFDwkRhHAz95/gT+fH/61DX5V2eW5bNv24+x++H+cHkj6OpPX2 /6fA== X-Gm-Message-State: AAQBX9crLl+KXJVuBDp7J/Iw3iZkO3aZCN/QampO+5XPA2tig3Dy9Zqd 9mP+t0VcM1MvRY2P9AgcjwUwMo+reA8/LL+fJOo= X-Received: by 2002:a17:902:ecc4:b0:19a:9880:175f with SMTP id a4-20020a170902ecc400b0019a9880175fmr18666014plh.51.1680044301003; Tue, 28 Mar 2023 15:58:21 -0700 (PDT) Received: from stoup.. ([2602:ae:1541:f901:c23d:b6:6be1:f147]) by smtp.gmail.com with ESMTPSA id jw1-20020a170903278100b0019cd1ee1523sm21670633plb.30.2023.03.28.15.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 15:58:20 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 14/15] softmmu/watchpoint: Add missing 'qemu/error-report.h' include Date: Tue, 28 Mar 2023 15:58:05 -0700 Message-Id: <20230328225806.2278728-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230328225806.2278728-1-richard.henderson@linaro.org> References: <20230328225806.2278728-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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=ham 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 From: Philippe Mathieu-Daudé cpu_watchpoint_insert() calls error_report() which is declared in "qemu/error-report.h". When moving this code in commit 2609ec2868 ("softmmu: Extract watchpoint API from physmem.c") we neglected to include this header. This works so far because it is indirectly included by TCG headers -> "qemu/plugin.h" -> "qemu/error-report.h". Currently cpu_watchpoint_insert() is only built with the TCG accelerator. When building it with other ones (or without TCG) we get: softmmu/watchpoint.c:38:9: error: implicit declaration of function 'error_report' is invalid in C99 [-Werror,-Wimplicit-function-declaration] error_report("tried to set invalid watchpoint at %" ^ Include "qemu/error-report.h" in order to fix this for non-TCG builds. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20230328173117.15226-3-philmd@linaro.org> Signed-off-by: Richard Henderson --- softmmu/watchpoint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/softmmu/watchpoint.c b/softmmu/watchpoint.c index ad58736787..9d6ae68499 100644 --- a/softmmu/watchpoint.c +++ b/softmmu/watchpoint.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "qemu/main-loop.h" +#include "qemu/error-report.h" #include "exec/exec-all.h" #include "exec/translate-all.h" #include "sysemu/tcg.h"