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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0E36C00140 for ; Thu, 18 Aug 2022 15:59:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343831AbiHRP7S (ORCPT ); Thu, 18 Aug 2022 11:59:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245730AbiHRP7P (ORCPT ); Thu, 18 Aug 2022 11:59:15 -0400 Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C4064A137; Thu, 18 Aug 2022 08:59:14 -0700 (PDT) Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-11cab7d7e0fso1089880fac.6; Thu, 18 Aug 2022 08:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=BvvW0Kg0W3K042unQaj9CEGknRtz7aMFSz438VmibVU=; b=RmVhYc0pWrMGubJCniWTfVv9jPCrnvdIJM60ylF8YlT3bO1sKIlmn6HvsHgW5vYccX bYG7yPEz14hI6iD6X5FpJUJCaxjac+C6nXXIf1dXpG5O/9REUkIgJymo/wsy2fGXF0Dc OINlhDg1lVIX3JI1pplvHnb9R8YgMtMlhazrnEBSOgqlYSVYTalLZWeUNaBCoacgfkpM trjwEToSyFAW9ofzovbnyOzguXHtMiupblKayGuZGI6uHSWgJ23AcS45TVAiFU3KrsNZ rmBBFVS0mD8A/g8ZzeRlKGSB3sE6V7b7mUYZ+fj3FuqRNHqoyCyJvHvJLI7nWA1T1jcM 0G7A== X-Gm-Message-State: ACgBeo05T0vrPlv1Q2Zjk95F8OSXrYblQIN4fzn5V4DENroqoQD3QwWg tiu7UkyxfJvKMaQmT8hGfuEFdPm7tUypTR1sNVM= X-Google-Smtp-Source: AA6agR6czoG2IuIpJT0uN8EiCBtNFl5v6joWRtCVtnbHFBg88ktpsFC0VyRExdFR7njpEy9CEVrKQpWafFOs3JSLo1E= X-Received: by 2002:a05:6870:5b84:b0:10c:d1fa:2f52 with SMTP id em4-20020a0568705b8400b0010cd1fa2f52mr1748656oab.92.1660838353887; Thu, 18 Aug 2022 08:59:13 -0700 (PDT) MIME-Version: 1.0 References: <20220817053930.769840-1-irogers@google.com> <20220817053930.769840-7-irogers@google.com> In-Reply-To: From: Namhyung Kim Date: Thu, 18 Aug 2022 08:59:01 -0700 Message-ID: Subject: Re: [PATCH v1 6/6] perf build: Enable -Wthread-safety with clang To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Thomas Gleixner , Darren Hart , Davidlohr Bueso , =?UTF-8?Q?Andr=C3=A9_Almeida?= , Nathan Chancellor , Nick Desaulniers , Tom Rix , Athira Rajeev , Weiguo Li , Pavithra Gurushankar , Thomas Richter , Ravi Bangoria , Dario Petrillo , Wenyu Liu , Hewenliang , yaowenbin , Dave Marchevsky , Andrii Nakryiko , Alexandre Truong , Kim Phillips , Leo Yan , Quentin Monnet , William Cohen , Andres Freund , Song Liu , Adrian Hunter , =?UTF-8?Q?Martin_Li=C5=A1ka?= , Colin Ian King , James Clark , Fangrui Song , Stephane Eranian , Kajol Jain , Andi Kleen , Alexey Bayduraev , Riccardo Mancini , Masami Hiramatsu , Christophe JAILLET , Zechuan Chen , Jason Wang , Lexi Shao , Remi Bernon , linux-kernel , linux-perf-users , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 18, 2022 at 6:17 AM Ian Rogers wrote: > > On Wed, Aug 17, 2022, 11:11 PM Namhyung Kim wrote: > > > > Hi Ian, > > > > On Tue, Aug 16, 2022 at 10:39 PM Ian Rogers wrote: > > > > > > If building with clang then enable -Wthread-safety warnings. > > > > Do you know the minimal supported version for the option? > > I'm not sure we have a check for that kind of thing. > > > It has been supported for a long time, close to 10 years. Looking > around it looks like clang 3.5 had the support. For context, BPF was > supported after clang 3.7. Given this long support, and we don't > version check for BPF, I think it is okay to assume the flag is > supported. Good, thanks for checking it.