Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp975427lqt; Tue, 19 Mar 2024 09:09:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFL9OMdGzy6gemgkAK+QZ8SS19ZGHzih/smY1hhEQNu0d2nOU8TyynyJN2R0fFBDAVIYMQi7hnKv+kMQbSggkA/94HERfBpRDZTMpvag== X-Google-Smtp-Source: AGHT+IF1RCYdx7iCiQCEjgMHpqVw/SH6vZdz8qr4++yWYyH8UfmCjqxFwyeXuzbxmA7xEhlY9Qy0 X-Received: by 2002:a0c:df0b:0:b0:690:b2c1:83d6 with SMTP id g11-20020a0cdf0b000000b00690b2c183d6mr19598887qvl.25.1710864549791; Tue, 19 Mar 2024 09:09:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710864549; cv=pass; d=google.com; s=arc-20160816; b=vE2MScDxo1z7fp8Tq0dSu6cSY6nrkxDL+pBolNxc0Tfe7F4sepaZMqU6nkBqg51DVT a6KkEHO1vibEs3nTeTrRvaOlsOklqMirkVpEkNSAa5X/4/SLB37nef5NGH+KBrHBNJ4s drXW2b5Tb4WyOSorY4rMOnYYPq2zriHx20IzDdrIUTAMhoqxce9cwuX2hO12FsPZeuel 0sH8lL6sZhNUtdP0+ZnSJ/KW0fiBTyizjf9C+BmES4fZ2hRuOKu5lRteejW4VcTbQTjj +OMiBOx5l6AxQrVdyZ8BylohrNE1n2gj/BgEhqbFoFB83lHbAVC/jKNX6SW6xrwKikoS ioKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=nOzuWaGcgH2ANnaXxYKRIs9Wjx+WvdhATqxmcqleChM=; fh=c2eB1wP815Si4KTYK+w40EGGRmiK6xtueTpHSzIbIII=; b=p03/pAqU4iOVlKVUni/XCJVb8P9gstSruYC4zYedB21xSQiW7AO6QRvS21B8/Dc9qk DGSEzROPSYHdbu/oDmL6R4NKlGZfoACySHHGsEMwgMMlaYtOE9hQRRao/7YZdgnLR39e e+0OvcSmqM+gGRGqS4dVSUT1KTy8GX0jVWJqJwa/uZ10j6fsqKYVI4Gh6terO3m5inEO KdO1SyKvorhFzfsKrV2wXbuUXCxarE12pFs5v7UbhDpx7b6wFyaYX5T2gYK6bXZPDGfG sD5hkhrVPZOLzA7Ied8BWZQkRLIm/QcQ5K18YWAJW63CNKuEPeGGcctfxx9l7x/g9DM3 UZYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HVz/p9rB"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j14-20020a05621419ce00b0069613dc9ee7si5161105qvc.168.2024.03.19.09.09.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:09:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HVz/p9rB"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 840EF1C22EEF for ; Tue, 19 Mar 2024 16:09:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 785E6823AE; Tue, 19 Mar 2024 16:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HVz/p9rB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94A1681AAA; Tue, 19 Mar 2024 16:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864481; cv=none; b=OeI3vMNdg6yjVMmtiq0tKq56xPDg4kqfKI9CQbCUsOrsV5dXBgPB50WamC4kSQLeA++3O+w1JZRfQ7qf92QkvYQgFxZu14dIiM5G85UpvbQqJqUokqle/6YfyIbM+BF6Ue/V0soGStqYFUX4OZbo3yXIwi7yj0BxNls0jOXUVJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864481; c=relaxed/simple; bh=2oPRCy2jisk83BK9tWeY8QIf69NClUJuFjLh49eN6r0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ln38dstdQImXd5xm7mIcahK3WihL3Wm/Y1hlmfzWgoLJ91EY14GOCP6vn2FBwv9nOy2Wf52ja+z7Rc9P7My1TxsFTI3+48/6vpydgolNBmEATvJUkMucfO+3DmpV8WmCR2VNdDxNURNwRpdfVAxUXHGch7UvT+xdILfR1BAwtgA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HVz/p9rB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99459C433C7; Tue, 19 Mar 2024 16:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710864481; bh=2oPRCy2jisk83BK9tWeY8QIf69NClUJuFjLh49eN6r0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HVz/p9rBxhLOlLri5i/0BzV9oAyPFuWl446RsG5glK2Fb9QuyrYeK7iDpNGAceUDs JpybmA6kMskp7XblzeigLRxUDb+lmOCHKYF1apEwS37IalkjmeqTWYxJrLMwsS5vTW 9z2czcLT7o7SgrGFr1Q4nC2TyQTJ9a4VsD434q4LjXDbI9Um8yF8Qw92uyHbLTX/ix PM5QjPXgSNHDt6ejmQJXKjavZcGLrwdeIr2H4JdVpNa79lZ6z3W+qpaAPqvKmMrwxC PWPxgkgeLTncmtrBmZAEfAdeJ9NgCqTaAALcq5T5FD+kCUBrGletNb2NLWxWUJtDH+ FQUlwBq30YgzQ== From: Nathan Chancellor Date: Tue, 19 Mar 2024 09:07:52 -0700 Subject: [PATCH 1/2] compiler_types: Ensure __diag_clang() is always available Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240319-tracing-fully-silence-wstring-compare-v1-1-81adb44403f5@kernel.org> References: <20240319-tracing-fully-silence-wstring-compare-v1-0-81adb44403f5@kernel.org> In-Reply-To: <20240319-tracing-fully-silence-wstring-compare-v1-0-81adb44403f5@kernel.org> To: rostedt@goodmis.org, mhiramat@kernel.org Cc: mathieu.desnoyers@efficios.com, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Nathan Chancellor X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1458; i=nathan@kernel.org; h=from:subject:message-id; bh=2oPRCy2jisk83BK9tWeY8QIf69NClUJuFjLh49eN6r0=; b=owGbwMvMwCUmm602sfCA1DTG02pJDKk/d8QHGN6Jk5eUfuqdlPjaq3AGg+KDv2ttSu+cev9MU I214s2jjlIWBjEuBlkxRZbqx6rHDQ3nnGW8cWoSzBxWJpAhDFycAjARhWhGhpZp8t/DEvb8m8t9 vnPloyumYmcbDZ+3eOrzbnGwljmRGMDwz1Jnh+aRY8KHrITq/WL6vGxK7/EVVFR6XVqRqu4a7zW RCQA= X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 Attempting to use __diag_clang() and build with GCC results in a build error: include/linux/compiler_types.h:468:38: error: 'ignore' undeclared (first use in this function); did you mean 'inode'? 468 | __diag_ ## compiler(version, ignore, option) | ^~~~~~ This error occurs because __diag_clang() is only defined in compiler-clang.h, which is only included when using clang as the compiler. This error has not been seen before because __diag_clang() has only been used in __diag_ignore_all(), which is defined in both compiler-clang.h and compiler-gcc.h. Add an empty stub for __diag_clang() in compiler_types.h, so that it is always defined and just becomes a no-op when using GCC. Fixes: f014a00bbeb0 ("compiler-clang.h: Add __diag infrastructure for clang") Signed-off-by: Nathan Chancellor --- include/linux/compiler_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 3e64ec0f7ac8..fb0c3ff5497d 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -461,6 +461,10 @@ struct ftrace_likely_data { #define __diag_GCC(version, severity, string) #endif +#ifndef __diag_clang +#define __diag_clang(version, severity, string) +#endif + #define __diag_push() __diag(push) #define __diag_pop() __diag(pop) -- 2.44.0