Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp975367lqt; Tue, 19 Mar 2024 09:09:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/+rJd9I6c8Eh18s+rTZm6jZplgm4U1YbHPoUXAcRgf3U57myAK4Feh8mFIe5H5Z+GNm16js+fzoZj4S2GOV+p6qAnU2vP8OWmIhp1AQ== X-Google-Smtp-Source: AGHT+IFS5f6vyABgLnEnqV3OswCqUXLw020YfF1xvVUtoBovINqRY7OuPiqI54a5BxTKVP6v3bue X-Received: by 2002:a05:620a:ec1:b0:788:2b1c:1e57 with SMTP id x1-20020a05620a0ec100b007882b1c1e57mr15910622qkm.55.1710864545242; Tue, 19 Mar 2024 09:09:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710864545; cv=pass; d=google.com; s=arc-20160816; b=kjWefDB4OamUCsRkunm5qi9/FDgt+sWzpG4HwVoRMYGs5nJ3SCW5ubm599ue9IyuuX A4He4zwiVi1Ctodn9LbAGMOXfChVhqqTP+nybgBUdDlFbn1EOCsyEvdnitqguOkA/8he 6m2/ToSLUJApQZz2Q43lt9Ng4HUEn2yrgAYInR17ItWKyzecoGjgBERr6qfQrk1Zk4kf r/Ul4ani2rdsFJwPPzgN4vvkCIJBtUMoJz6jXpf1+wqL6g5wHRfEFmLa6aCxVleidWmi N/WA1yTtEbW6anOVZLvUubKKIBDjnP6SLGAcVN8DQHZ4pwhHM9iqjybjOnCkZ5S04a4n ggsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=XSMqvTCUPc9edzDyW9dRYq+mQrfZmeulX6P7RHrSlsA=; fh=XYIuYyu9J35hnibZGdaxC18BXHuBhvSNoe6vWwHKcJg=; b=fG6SjHab1uWZZY5fz83qHRgc4NAA2B1WzOAed1Pek/qZG3M4ALu4FxVgLGtnP3oBTU kdsJ1wMbzFrWeF7a89pBmuKE9XDa1dKcO7scdBdA+Qi1nwMlJXxvyEuvhx38CVcPG8Nz LnS1L4Y1uWaUGTQ+ZmRqxrgIs167wQ31xSzGZ49QqydrcAqS3BrZWOMQk129IOzo0MBP dIjsPMNlLjWuiVi2DkRF5Oky1QqWn+9v4xixpUSEmlMO181lTiK5JBjIPMUynBya/ax1 2YQrdsMJPzviXfhWhkPu+wTnqWyvavyc7FAq+xajZcrLsK9TWdo7yqmvLK92RQRU2mhp XSXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aT7MUnOa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107773-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 wm24-20020a05620a581800b00789f52311dbsi6160472qkn.468.2024.03.19.09.09.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:09:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107773-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=aT7MUnOa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107773-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 F146A1C22CA8 for ; Tue, 19 Mar 2024 16:09:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF17F823B1; Tue, 19 Mar 2024 16:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aT7MUnOa" 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 E8AAD657D2; Tue, 19 Mar 2024 16:08:00 +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=fjP5J4xltmpUgSXH/alSrTvw3yy9IJUhydqxvx8Y+sSMbmRGJn/pgGOVYFo73RST6ZclohSGgrkZNCWcrp9qcQIC9EQTpiRSfNZHphRcf58r4DwWqsuZHd6xL3SZecc/FHG4id8KP5MxtZKU6DPIDtwhyj7PgLk02keFtFozZAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864481; c=relaxed/simple; bh=o/PKCSwUsZmuWmeVx/z89aLoA51oNzjLUoOwlNrR4Q4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=BKC7MiosAxwsuQYq9JtrUlkQzTNP9AY77ntRisUR4BqOb44mIJVWczdsw94iIYbpjPrvWSJ/YQSK6sVExpdQovveU55F703otgop8P280vxpbRbecwSv7wo1Ie6Vcl1+xmvZRhyYDKVurCDs7+xIG80j6Sp7JyNpKN6WeJuZySs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aT7MUnOa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDFD1C433F1; Tue, 19 Mar 2024 16:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710864480; bh=o/PKCSwUsZmuWmeVx/z89aLoA51oNzjLUoOwlNrR4Q4=; h=From:Subject:Date:To:Cc:From; b=aT7MUnOatlsU3iLFb7x1PFqJgBginmUC4r8wAuI4JKGyjf5QUTcKtSmnaZFHhKFUB 7vSTm+NrH/l0L7AYy9oLfOHy1g1FoKKuU1NqBluqPThoXZa/0LKVumIUZnl9GJURRv S0u4FmRxKF5+QjMMePm/WjrNz7bEKTp1KjNnAdec3k+pRBItr+B8sDCSrqDnVTq3PE w8G+WQM/7grQkHMfrEAkfLLHJpBL/5ph7g3NGo1N9vyUzJ2gFHK3r3XeV6Z4+i3ta1 ilsZSOnrLDiqQ8+sDFz5CrWusvcc9yDVtfAzQlCkIneJqPtbYHSigV4f5cBelqdKcO gIy/iSgk+j0Qw== From: Nathan Chancellor Subject: [PATCH 0/2] tracing: Fully silence instance of -Wstring-compare Date: Tue, 19 Mar 2024 09:07:51 -0700 Message-Id: <20240319-tracing-fully-silence-wstring-compare-v1-0-81adb44403f5@kernel.org> 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 X-B4-Tracking: v=1; b=H4sIAFe4+WUC/x2NzQ6CMBAGX4Xs2U1oNSH6KsZDLV9xk1rILv4Qw rtTPc4cZlYyqMDo0qykeIvJWCq4Q0PxEcoAlr4y+daf2qM786whShk4vXJe2CSjRPDHZv3ZOD6 noGB0Dj71rrv7QLU1KZJ8/5/rbdt2MTfEmXcAAAA= 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 , Linux Kernel Functional Testing X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1503; i=nathan@kernel.org; h=from:subject:message-id; bh=o/PKCSwUsZmuWmeVx/z89aLoA51oNzjLUoOwlNrR4Q4=; b=owGbwMvMwCUmm602sfCA1DTG02pJDKk/d8St4s5M47fmk5Y1C/YxPHX/grao2pZTr+Uj+eP01 CzOf5DvKGVhEONikBVTZKl+rHrc0HDOWcYbpybBzGFlAhnCwMUpABM5GcHwv3id0tkgheCbM09E zom5p8B6Qkz9Pus9yVxDxq2lbDr/gxl+MT/cP819qvZs9okvt4ibCG7j5PF6yZoauOSuvvnz0mc zGQA= X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 Hi all, This series fully resolves the new instance of -Wstring-compare from within the __assign_str() macro. The first patch resolves a build failure with GCC that would be seen with just the second patch applied. The second patch actually hides the warning. NOTE: This is based on trace/for-next, which does not contain the minimum LLVM version bump that occurred later in the current merge window, so this uses __diag_ignore(clang, 11, ... instead of __diag_ignore(clang, 13, ... which will be required when this is merged into Linus's tree. If you can base this series on a tree that has the merge commit e5eb28f6d1af ("Merge tag 'mm-nonmm-stable-2024-03-14-09-36' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm") in it, then that change can be done at application time, rather than merge time (or I can send a v2). It would be really nice for this to make the merge window so that this warning does not proliferate into other trees that base on -rc1. --- Nathan Chancellor (2): compiler_types: Ensure __diag_clang() is always available tracing: Ignore -Wstring-compare with diagnostic macros include/linux/compiler_types.h | 4 ++++ include/trace/stages/stage6_event_callback.h | 5 +++++ 2 files changed, 9 insertions(+) --- base-commit: 7604256cecef34a82333d9f78262d3180f4eb525 change-id: 20240319-tracing-fully-silence-wstring-compare-e71e2fd17b2a Best regards, -- Nathan Chancellor