From patchwork Mon Oct 24 17:35:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 9946 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp606870wru; Mon, 24 Oct 2022 12:05:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7858t6ZMBlvum+Vm0MIX6ly8aX5kRLRTbt4/mfPuID8FvXoVIXev4oBX/Oss/nNYNGOxpP X-Received: by 2002:a63:8bc2:0:b0:464:69c9:9eca with SMTP id j185-20020a638bc2000000b0046469c99ecamr29636348pge.210.1666638332476; Mon, 24 Oct 2022 12:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666638332; cv=none; d=google.com; s=arc-20160816; b=uvE++2W2E1G8vK5jDqK33Ptw7HDqfMUN8YD1rfTWH6l/95IDu1RMut8MLWcBT6H+Os /ILYxhfr9UgvfqGPpW1mksubnUYgHfvg9ZP927ymaaB62GeNoUM4i1sPwGlWuDtr4fIJ BUF3nwc3bLaCmDpyK7tXem1S1Mc+UHr/9ADx4cFIagVtjk6JoBoG4eP2bh6oo5XBd4Sq OTfbJ6kXYSCrUhrSxjhQ0zg+Wlxz6SehJQgHwl1cXghI0+USPaDbqfdJb7fvwMzOKVlc vAkDeR+TnxFBI+ti+2WJQwQckdTY+Bo/DH8rG+kjYEknVguyx7EhQHdgnCESwklweHy4 HlRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=yf//nKniGE2IxHdCyFgbypJdJyKGDk5InFKRkZy7usI=; b=lW9z7sD3SaS9JC4/zoGuxZ1DOagD/s+9SmU+RHhXBkwWI5DDDqWu7s6j7tZytJO1X7 1yNBwW/VDVfXzpm/gsvhSf7mYXguHlZx+MWtT3NJPwjTKEnbp7Zd3DaLLlEuzHBFQcq1 IIDYpaj+d3OIvXlYNXbcAL+qH2JgcZq/X7jbs++yG5oHsaxHNj+QGQJSz0D1Niyo7Ss3 uyaXoNK6LWXhjrLB3lPoxLXFVqpVF5cpsc0ncLEdOlPulRnJ4XoMLh3R7VzNwNv9I/7D RONNMO3Pn4Jwon7nudu33WFpR98RCBJ+4IcGerxz/15jE7wD8i+K+Beb9WVewThF1lme lTrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bkFsx7xR; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a63194e000000b0046ec9d03aaasi261892pgz.589.2022.10.24.12.05.18; Mon, 24 Oct 2022 12:05:32 -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=@google.com header.s=20210112 header.b=bkFsx7xR; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232641AbiJXS5Z (ORCPT + 99 others); Mon, 24 Oct 2022 14:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232704AbiJXS45 (ORCPT ); Mon, 24 Oct 2022 14:56:57 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B005ACBFDB for ; Mon, 24 Oct 2022 10:36:59 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id q62-20020a25d941000000b006cac1a4000cso4360820ybg.14 for ; Mon, 24 Oct 2022 10:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=yf//nKniGE2IxHdCyFgbypJdJyKGDk5InFKRkZy7usI=; b=bkFsx7xRDT4SOzYnBWia39BL6PfxRv41NyEx8ZpXPvEJYtzo9fD7KHXUZq7dZ0kSp+ Cb52tElChTP5b28SYmcB5d9ym6Xy42R3VF0Ln930bKL9ke9DhtRKIIj95iTOkT7ehVgJ hSggoy02P/39UXt24GxVtWyl2QObBaYL2BAmTtIolM+YJ++faLGH2iBBfPtYnK7ZtOUm 0CH2aOJb0eXXsFA0urZ42cb0ZzLHirPS5E5WFPYWibD3/LMGxhPsBWW3gHfyZJl9Fcuu ou2vxzk0+j+CYMcIiAA/4ZOc/qL+YRdYHKuvBaoUeBWquw8scpTG1PNaCPz9/VIf1/+K l6eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yf//nKniGE2IxHdCyFgbypJdJyKGDk5InFKRkZy7usI=; b=38zy9mWLFXqkXDPXboj3I441nYchHUu6LjfvDSaTiGAkP88xmdF9K8+FFRBzFl5Pra FShNfoZvliZXHrNHHwQjwOL0GFHfqx2/AAZEWZ9zG8uT0KjyQ//S14sN2DyrR6AnrbGE x0qcZfsnBmD2+aSO3UwXNCgyqQ/N/p1nAc6UnZggS/M45+VBO+472lqUX6SRUnT8zK+G M/NibXyHI8xzMZkW02Vqr1a1jogrT2XeJ7ZjXMRoujGFElmQYh4F0nJhnx9pX2my9jym bDAo2291Fe3VbJv4EsRwIddGUdthalJEK55VkJ9VAi754T1x8v7esizoMyf0zG5wQzGI KFuQ== X-Gm-Message-State: ACrzQf1elBXh+1t31O0DaElhfQbbSFtvr2ALF4+O3z4SRoeNN8nLKz4K acImnMUmHFeWJBr1c7Dh51uuBzzsjxT/ X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:b8bc:a57d:a2a2:efdc]) (user=irogers job=sendgmr) by 2002:a25:bd8b:0:b0:6cb:d10:a5b6 with SMTP id f11-20020a25bd8b000000b006cb0d10a5b6mr5711316ybh.173.1666632951410; Mon, 24 Oct 2022 10:35:51 -0700 (PDT) Date: Mon, 24 Oct 2022 10:35:16 -0700 In-Reply-To: <20221024173523.602064-1-irogers@google.com> Message-Id: <20221024173523.602064-2-irogers@google.com> Mime-Version: 1.0 References: <20221024173523.602064-1-irogers@google.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog Subject: [PATCH v1 1/8] perf build: Update to C standard to gnu11 From: Ian Rogers To: Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Alexey Bayduraev , German Gomez , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stephane Eranian , Ian Rogers X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747596956429617115?= X-GMAIL-MSGID: =?utf-8?q?1747596956429617115?= C11 has become the standard for mainstream kernel development [1], allowing it in the perf build enables libraries like stdatomic.h to be assumed to be present. This came up in the context of [2]. [1] https://lore.kernel.org/lkml/CAHk-=whWbENRz-vLY6vpESDLj6kGUTKO3khGtVfipHqwewh2HQ@mail.gmail.com/ [2] https://lore.kernel.org/lkml/20221024011024.462518-1-irogers@google.com/ Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 6fd4b1384b97..29c49e6e76a1 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -307,7 +307,7 @@ CORE_CFLAGS += -ggdb3 CORE_CFLAGS += -funwind-tables CORE_CFLAGS += -Wall CORE_CFLAGS += -Wextra -CORE_CFLAGS += -std=gnu99 +CORE_CFLAGS += -std=gnu11 CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti CXXFLAGS += -Wall