From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEF59C4321E for ; Sun, 4 Dec 2022 15:07:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7C8CE85326; Sun, 4 Dec 2022 16:06:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="fakEcaiG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F2F57852FD; Sun, 4 Dec 2022 16:06:08 +0100 (CET) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0F651852F4 for ; Sun, 4 Dec 2022 16:06:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ed1-x529.google.com with SMTP id m19so12552316edj.8 for ; Sun, 04 Dec 2022 07:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kPULq3hIMFscu+3icQaVEsEHckVZvpAehfbrYTXQ998=; b=fakEcaiG7Rk48KEQ2Ybo4wrEN9ifvAiYcR2I+JCQWJ99sQqGf44cW2tW9+dZ2OX3Fc 6iCmpCuoT/gRZZJul55JQFw6vhDH9wAexaPnL5B30pppGJJn2Cz/r63d4rm9EVbGUe/Q 7F1jJRNifEk7PepP8jTVl394PLHSn6SC2T2NQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kPULq3hIMFscu+3icQaVEsEHckVZvpAehfbrYTXQ998=; b=OigzcYkHHz9mGt+2tU7J9LxR0Nz+49M2XUbTUd2qNWvlIjlUjcO1QQX45Mo8e52ROm Hg76KaH57pzlHVQESVG/1sDsSHFICCChOsUhn/3paoAYrz6Qc/EL4zD7ozuUE3QOFxbA Pb0bv2pcaCB20NAA0oahecrLJvNbbx0rM/bOoyVYLnIa0oM+vT/o011C2UfxL7trUAoU A/SKMOMzKfLVulKpFsNe+sS7iC0H24gz6eknFzamZTQRxxEdgz3qQYQqGJM9l4MR0Qbb F2QkkWllAA6kXfZ5YjlsIux4SOUpU7Uu9Gx+3Vhv6yrKejNVM2Bjrptz65upjZsgWiSm yG/w== X-Gm-Message-State: ANoB5pkPmOuD6TTgLItmp07hKFbAhVTHYXYfvhkPLk6V3kuBIhRmFA6j LMg8dxCdDTrI2Q6npEa3R5sq+HlUcTOOp4PZ X-Google-Smtp-Source: AA0mqf4IGbybB+SIHOb3uU9MPOC5cylugA3LIckL2G3zqNKucpPC/4pvyIdi8vJkFs3afFI6BcuIiQ== X-Received: by 2002:aa7:dc19:0:b0:461:f94:913 with SMTP id b25-20020aa7dc19000000b004610f940913mr55288599edu.102.1670166364305; Sun, 04 Dec 2022 07:06:04 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-61c7-2644-b62d-0af3.res6.spectrum.com. [2603:6081:7b00:6400:61c7:2644:b62d:af3]) by smtp.gmail.com with ESMTPSA id g1-20020a17090604c100b0073dc5bb7c32sm5240058eja.64.2022.12.04.07.06.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 07:06:03 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 007/149] valgrind: Rework test for unsupported platforms Date: Sun, 4 Dec 2022 10:03:32 -0500 Message-Id: <20221204150554.4165941-7-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221204150554.4165941-1-trini@konsulko.com> References: <20221202214251.3027264-41-trini@konsulko.com> <20221204150554.4165941-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Change things so that on an unsupported platform we will #error rather than undef the feature. Signed-off-by: Tom Rini --- include/valgrind/valgrind.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/valgrind/valgrind.h b/include/valgrind/valgrind.h index e59a7fde3211..5d4fa5f43b47 100644 --- a/include/valgrind/valgrind.h +++ b/include/valgrind/valgrind.h @@ -121,7 +121,9 @@ #else /* If we're not compiling for our target platform, don't generate any inline asms. */ -# undef CONFIG_VALGRIND +# if IS_ENABLED(CONFIG_VALGRIND) +# error "Unsupported platform for valgrind" +# endif #endif -- 2.25.1