From patchwork Thu May 13 12:20:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 437322 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp278208jao; Thu, 13 May 2021 05:22:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynq/CUr39fY51GD6pvYZAbAiDQy8pr8gmltMyu9XL0yEAoru+qgBjl7PiAN6ebFDeqkIsm X-Received: by 2002:a6b:dc16:: with SMTP id s22mr30289289ioc.170.1620908532305; Thu, 13 May 2021 05:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620908532; cv=none; d=google.com; s=arc-20160816; b=gOkz60SAsmZJsspuyblW1WAqOMzTZmBnZ/hnx/8yv/Cd+FUH+uOPMrBJvx6O1RwOqj 1Cqp8lzhkyhqW6Q9gJIk8LFeWcu8SFqAo1c/x+wKozxNx2F16DxbesONXuSy6J3lMHcI obHrl297V2JqlcCI9N6bc0134/PVI9BeU2t56pmysiRJ2aVMy/fGBHvugLhRS3AKykPh 10FLZOytkShpN93SWHeDMf7OFA+CqVCRWtK3P8KGDoPUc9GLY6BB5JOAC7Kb0moCDmaD q0ONX/lgqUBtj3dxsi6iUnv+7trZVonSFzwKc5EqKQcxWbvHKtHesFUZ8y5hcxYBuTUW biww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=KdbIg3rlUjFYkOGX6SZXklYcLzrscr/66Cx3ugBj720=; b=gOL6l8VQ2ulyQ5ix/1YxruS8+/1J68JXEBmAOQCRs7xHUQNKSsOgKEEM4hCGG6T5FU 1AaVmgIKOZTa6CukfMWggDSgo3l5KNSu0OiL2amRzGcyF5BNALsDVVrOmTUIkVraXZjN 2XaVU2Ae/EGsFHoCGdF27Yi6gCObPOx39Zjhdr1gNWceINAbzBYHZiDt7nKZDMkdWGbI 1JP/EPyAZeHuYbPxCtIWjVtb53Hf2EjBL3UIYLugMNLJ2256WbxZPYBv4QSlXbJPzuac 4kwJCborXzPGMm3ILfEuHviszRemWC3EAOO8HliowbvJIbWftul7M/Sg8mlrHjBzfOTw rbfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PJ7Lz7Bd; 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 r13si3887651ill.120.2021.05.13.05.22.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 May 2021 05:22:12 -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=PJ7Lz7Bd; 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]:59418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhALz-00063X-PA for patch@linaro.org; Thu, 13 May 2021 08:22:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhAK8-00061R-D3 for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:16 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:39877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhAK6-0001GP-0F for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:16 -0400 Received: by mail-qt1-x82a.google.com with SMTP id f8so15384943qth.6 for ; Thu, 13 May 2021 05:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KdbIg3rlUjFYkOGX6SZXklYcLzrscr/66Cx3ugBj720=; b=PJ7Lz7Bd7b5BSpNPvo0QQJRA5+3vWxRdZtApO5sC3SZbjThpRGRgdcpN3wwPSChHtF hM7ZcUZETux1U9Ply8PcFjGxO5S6u8m9yew87G08AgvIdzGfQgwNXDVst8Bnkt5GsVvm hqknfF9xriH92KC2ZOzQu11DeWSskiELPUrt9qnGABN2+yPkfEANbZQNMMaO/KsfgWNk 8Bi8JH1hYmp9lnYHVpmm0UQgLa4jqmoPCpMSdL1i1y9aDW/ZMkT7yQxe9uDtNYNfI/cc Il1mj0Izcxo5pJHd9QyeEkE/lZMOtvXIYy9gdTlwg4tmYh0flF1jgKapZTaHq30JdWUH Et2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KdbIg3rlUjFYkOGX6SZXklYcLzrscr/66Cx3ugBj720=; b=YVulL7Xs3Txtmt+0jx3YtO8bFojv31TiH3x7fiKaEAicRJXHda72F7rOvy1eELCBoN 7xd7MYgWyFMkxl0u56C8k1qQFFrIxHvhI2HDWmYDzmNRUB2ChTaImB3OZRnQ80976LXc wocfXmqNTYtL0hrW9r06LqzYPtMij60DyDkqO1TMou0/SGkM+ZbkqZEtO9AE/WlzkpL9 CRgHuI2/QJVrDcChWbu2aFmgwI9cu+hl6DmkpkMENhl+R4iP/drpWWu1e+CETHh0Mo2x 0K/0a+fEoiU+3ZCMFOsVTlKjfDAT/8X9jzQVkveq17lK+al6lP+F0ihNCrz87KmWgaog rf1g== X-Gm-Message-State: AOAM533+a+OaZaEjQebJMHqTH3CByJP4wFWNIkVM8lrLQ7R8FZ416qiF GuO5VDG+BrJqmX9JOh1A5fCVC+jbWs6I8eBGDhw= X-Received: by 2002:ac8:1014:: with SMTP id z20mr37695654qti.65.1620908412208; Thu, 13 May 2021 05:20:12 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id b3sm847262qtg.55.2021.05.13.05.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 05:20:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 2/4] exec/gen-icount.h: Add missing "exec/exec-all.h" include Date: Thu, 13 May 2021 07:20:06 -0500 Message-Id: <20210513122008.207491-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513122008.207491-1-richard.henderson@linaro.org> References: <20210513122008.207491-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x82a.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé When including "exec/gen-icount.h" we get: include/exec/gen-icount.h: In function ‘gen_tb_start’: include/exec/gen-icount.h:40:9: error: implicit declaration of function ‘tb_cflags’ [-Werror=implicit-function-declaration] 40 | if (tb_cflags(tb) & CF_USE_ICOUNT) { | ^~~~~~~~~ include/exec/gen-icount.h:40:9: error: nested extern declaration of ‘tb_cflags’ [-Werror=nested-externs] include/exec/gen-icount.h:40:25: error: ‘CF_USE_ICOUNT’ undeclared (first use in this function); did you mean ‘CPU_COUNT’? 40 | if (tb_cflags(tb) & CF_USE_ICOUNT) { | ^~~~~~~~~~~~~ | CPU_COUNT Since tb_cflags() is declared in "exec/exec-all.h", include this header in "exec/gen-icount.h". Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210422064128.2318616-3-f4bug@amsat.org> Signed-off-by: Richard Henderson --- include/exec/gen-icount.h | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 298e01eef4..467529d84c 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -1,6 +1,7 @@ #ifndef GEN_ICOUNT_H #define GEN_ICOUNT_H +#include "exec/exec-all.h" #include "qemu/timer.h" /* Helpers for instruction counting code generation. */