Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2438411rwd; Wed, 17 May 2023 09:49:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mV8jo5hL5IWVI8EdRil1N+pFgjtpUs8+T9etf4A4qMws3hvexRIda2uVpyc9ILkA1TPRO X-Received: by 2002:a17:90a:6b4f:b0:253:572f:79b1 with SMTP id x15-20020a17090a6b4f00b00253572f79b1mr313525pjl.28.1684342156239; Wed, 17 May 2023 09:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684342156; cv=none; d=google.com; s=arc-20160816; b=C/Rc1uK0nqrJyEHZhFRwWZwG8ViOpajZu750hkg2dIW5z5HRiCj9xT6VWI8kY387l1 HN4V08egegQFDuNbygXZMVK8EY2rbC85vz6WryqCShCbT8dJ6kBShC8AFSDfpRnCdZQM tfUN7fR2k0D+BwIVSnKGQQKBz+0xFhmdNSs/+3C2vf6NAMtNFJ9HFGv9PYIbrmV6czdK gEl5PUZNgqbuSl5Vm7l/gp5o3pQDwpKjxBFTOMCo5Nh4v9Mp2FKJTh92u9uLzuqU8Y8M pkMjCLNmhE4juIy2QO06QLucQHWd02/aP/aHWpjVscolV6VF1LEpYh82G1hQtnqfd3UX 81BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=LUiZh9vX79/8GlRHS85iCL0x+Okzafu2CQZl4ySfqrA=; b=MzHdxTaFveo0oae0CjYhXBqdr0lc9WOmhutgGG0qTPX68uzIjz8skKot4gApF1kuJF v75r7HXFXWdb9U3riqNdaZ8DTUKDajQBcboK7PLBoeBoTnQ0ZZPaKjVCZyB7o9oXKVWK Yd0mOH9tsu/yeVCjXNhlKFWVgY+68x++C6VA4rX2njtfHvRHA1Zi+yOPVA7sPAmG6pZg gnD62eCG07Dj1xWtaSqh6lH4DubaHLswlqQjbSrP6c6hVfJ3jwHunFrlD0rnGVifldKQ m0gvA/VjjsiZk42JFE6PUw/1/NNC2kBoK/8qDw5DZAPVeTaQUN34W7U3PBGeVYjAdxvK DbAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=hJSArDsA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z128-20020a633386000000b00530743695d6si14947699pgz.725.2023.05.17.09.49.04; Wed, 17 May 2023 09:49:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=hJSArDsA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjEQQkE (ORCPT + 99 others); Wed, 17 May 2023 12:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjEQQkD (ORCPT ); Wed, 17 May 2023 12:40:03 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF0E735A5 for ; Wed, 17 May 2023 09:40:01 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9659443fb56so146170966b.2 for ; Wed, 17 May 2023 09:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1684341600; x=1686933600; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LUiZh9vX79/8GlRHS85iCL0x+Okzafu2CQZl4ySfqrA=; b=hJSArDsACQfgIfZm5gUboXLfaag3Cc98UHAkpAcbwjSjIyOWcTjMzYULTRwkLUsTBc Q6moqtReX3RXB65vJn4njVt1VF18bbqLOFraNA9bXXXFXhtZu7AqZ8icPXS/yqMHtGN0 4E+pzVP7uoj7+5A2t9EcRD7+lOjwJP7YYHZoM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684341600; x=1686933600; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LUiZh9vX79/8GlRHS85iCL0x+Okzafu2CQZl4ySfqrA=; b=du8x7E8yMANvF65e3Za1Yedo03RnCKU1MXT/8JsMA7b4dUR09s4tkNScrzeT5VeGR2 lR1AGvj15krGm04mFx9sL2Gu2HNluTG55Hj1+CnQQj6wIHqwsxfWRnkfb9OzTXE42lHE /K2dABbj5RMdJqQ33v9f+1/W5poiBxJ3u2psW2k6ddNhOT/c46D33JuBaUWhqa0p312D q94M5lpHwrZxqlqle7OEobOj/kIZNz+BB6IqvC+pVjE7EriI183OSyEJ/6fgsWU7zRJG 1o/me5mp5XwU+H6IlT1RobJeCr3va3Ar5qC04LHlqAZLRPa0sHQf73XzNT1F5Dki+2V3 5djw== X-Gm-Message-State: AC+VfDzRoOoAaw+0LM1G6/tv5Kqcerygh3DJi5GzzAg3hAkt/MMfmECS pcmwtuqmf+A5MmzGdzg3roaC8ppP9s8cSb1bAo8xtBAB X-Received: by 2002:a17:907:868f:b0:969:f9e8:a77c with SMTP id qa15-20020a170907868f00b00969f9e8a77cmr31038204ejc.64.1684341599898; Wed, 17 May 2023 09:39:59 -0700 (PDT) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com. [209.85.218.54]) by smtp.gmail.com with ESMTPSA id d1-20020a170907272100b0094bb4c75695sm12593048ejl.194.2023.05.17.09.39.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 09:39:59 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-9659443fb56so146166666b.2 for ; Wed, 17 May 2023 09:39:59 -0700 (PDT) X-Received: by 2002:a17:907:868f:b0:969:f9e8:a77c with SMTP id qa15-20020a170907868f00b00969f9e8a77cmr31038132ejc.64.1684341598769; Wed, 17 May 2023 09:39:58 -0700 (PDT) MIME-Version: 1.0 References: <20230517124721.929540-1-arnd@kernel.org> In-Reply-To: <20230517124721.929540-1-arnd@kernel.org> From: Linus Torvalds Date: Wed, 17 May 2023 09:39:41 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tracing: make ftrace_likely_update() declaration visible To: Arnd Bergmann Cc: Steven Rostedt , Masami Hiramatsu , linux-trace-kernel@vger.kernel.org, Arnd Bergmann , Luc Van Oostenryck , Kees Cook , Bart Van Assche , Sami Tolvanen , "Peter Zijlstra (Intel)" , linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2023 at 5:47=E2=80=AFAM Arnd Bergmann wro= te: > > From: Arnd Bergmann > > This function is only used when CONFIG_TRACE_BRANCH_PROFILING is > set, and the declaration is hidden behind this Kconfig symbol, > which causes a warning if disabled: That explanation is not very clear. The problem is that the tracing code itself is built with DISABLE_BRANCH_PROFILING, in order to not recurse. And that hides the declaration when the definition is compiled, leading to the problem. CONFIG_TRACE_BRANCH_PROFILING isn't the problem in itself - *that* part of the test is consistent (not used, not declared, and not compiled if it is off). The problem is that DISABLE_BRANCH_PROFILING case, where it is used elsewhere, but not declared when it is itself compiled. I applied the patch, but I tried to reword the explanation to be more clear. I may have failed. Linus