Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp32770pxu; Thu, 10 Dec 2020 17:22:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxS6Clnj57zKC1senkSQbHjPNWNbD2mHBTh1Ri7dAjPbEgbqHRGLN1AqIcauXcmf7EIADT+ X-Received: by 2002:a17:906:b24c:: with SMTP id ce12mr8815749ejb.89.1607649733820; Thu, 10 Dec 2020 17:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607649733; cv=none; d=google.com; s=arc-20160816; b=eBk5qg6M4zPBCPH2u256RBnZ876aIck8RbIFwcCAi7J0P3tTxJoRq38HNHmlve2RBU V1AqefNm87flmmrZ+XjR7vQiGYogY9qL+GvaXPN5//ADVQ9cFuLTuWU1qcWpQuBtG9PP 26PBs8aQNPexc3uGsRX+lX3BpVc+tjENtmRxOYYi66nx04SOKD06o5hbI4YAOGUvaKMV 8fRqoSgxG9c8m4t0NaW1fliQidziT6pNWqh6/B3PGHCiUY4SOTQGjrjyOIl0UcMz561a x7I76foDuVVeorCYwiCf92me2l/52hY8unXYTiAsqD0WWXtIsEe9CDc0gb9umFcThMWE 7yGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mwzWNqwukiO9666dcy5UFimaTAhAAx9w5jcf7BvZNzs=; b=YNwlXBvItw2DGLgssU9f2oW6LqJ/8hBpUBJzdvAnOmZBiaviasbeqecf0Kh4YYNW9G 2ZmIbwLQs8B4UXzrJ4A9P3MS3nJAa1Q/W9poArzKuL1FvumuQfddu+zrU0ZvQBJSiY6l CigqVev0ciKA0QOflgi2caX03hiPIzE3/2n0b6OEtbHsVf8e8PRddLHFEW23Ejm1pP6D qBvwT34rjP5bfWUwZUIYui44K+4/6D/6lhKxgGZAJozD2qQX1Y6Z171OhCw4AGI+sS/r 5mVwXemTadkTQ/G/gSDKiGDeFT0xc7FxBmgA2W77csI6m3v1JKdgj8clt1mLeGwoUWme 4i1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si3840370edw.31.2020.12.10.17.21.48; Thu, 10 Dec 2020 17:22:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389533AbgLJNhV (ORCPT + 99 others); Thu, 10 Dec 2020 08:37:21 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:38040 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389103AbgLJNhR (ORCPT ); Thu, 10 Dec 2020 08:37:17 -0500 Received: from mail-io1-f71.google.com ([209.85.166.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1knM7X-0005R3-R1 for linux-kernel@vger.kernel.org; Thu, 10 Dec 2020 13:36:36 +0000 Received: by mail-io1-f71.google.com with SMTP id y197so3919151iof.3 for ; Thu, 10 Dec 2020 05:36:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mwzWNqwukiO9666dcy5UFimaTAhAAx9w5jcf7BvZNzs=; b=l/3rpC5SFuG/PjfcHnq1gMAZS2zcOUFmoNzs/WDmFYfGIt/HFci2xC6P0ZDcgYXF3r OWW699TiDg9hg5FuHj3wOyzzQLtgb5QiCHc/B0PhapLXiQqfJlKuPOtQDulwdX2Ln03f 048xOM2S5MUJs+C+cADtgI1aA5KV3m4IqaFYZtzJaL87ZcdVkev+RwT1ssbUs5ELKmCl gVGA76JePogx+LCq5fxmaHXuVuFcK6QiO3w4fJ/rDZ5j1vPraUEGHRkJK/Q3UQSbaVl8 rBLrhWy0h4ehWnwrmnGu1qbxkMxPHJK+a002E5s98Coz6D5LOA/kDqB/gHSnQe7zVfKb HIAQ== X-Gm-Message-State: AOAM531NUxR5niqkYHgzd3grAFSNKWbv2vbiqc+AGVeqmnsZ+y7dCza8 ZEJhzhz5VJhjNza+NgW7Y+1ilgcVWrv8rC7jdJ/6295yIEvOSgqVq/bSKMLx9U6Esiu5T0VbYzO BztBVxp/buC2VYopyPOtX96fyeS8aXPNiEBfOGmKdHw== X-Received: by 2002:a05:6638:2a5:: with SMTP id d5mr8717994jaq.92.1607607394872; Thu, 10 Dec 2020 05:36:34 -0800 (PST) X-Received: by 2002:a05:6638:2a5:: with SMTP id d5mr8717977jaq.92.1607607394700; Thu, 10 Dec 2020 05:36:34 -0800 (PST) Received: from localhost ([2605:a601:ac0f:820:5f:df71:1517:60e9]) by smtp.gmail.com with ESMTPSA id y14sm3240284ilb.66.2020.12.10.05.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 05:36:34 -0800 (PST) Date: Thu, 10 Dec 2020 07:36:33 -0600 From: Seth Forshee To: Andrii Nakryiko Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , "open list:KERNEL SELFTEST FRAMEWORK" , Networking , bpf , open list Subject: Re: BPF selftests build failure in 5.10-rc Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 04:15:35PM -0800, Andrii Nakryiko wrote: > On Wed, Dec 9, 2020 at 2:24 PM Seth Forshee wrote: > > > > Building the BPF selftests with clang 11, I'm getting the following > > error: > > > > CLNG-LLC [test_maps] profiler1.o > > In file included from progs/profiler1.c:6: > > progs/profiler.inc.h:260:17: error: use of unknown builtin '__builtin_preserve_enum_value' [-Wimplicit-function-declaration] > > int cgrp_id = bpf_core_enum_value(enum cgroup_subsys_id___local, > > ^ > > /home/ubuntu/unstable/tools/testing/selftests/bpf/tools/include/bpf/bpf_core_read.h:179:2: note: expanded from macro 'bpf_core_enum_value' > > __builtin_preserve_enum_value(*(typeof(enum_type) *)enum_value, BPF_ENUMVAL_VALUE) > > ^ > > 1 error generated. > > llc: error: llc: :1:1: error: expected top-level entity > > BPF obj compilation failed > > Addressed by fb3558127cb6 ("bpf: Fix selftest compilation on clang 11") Great, thanks! > > > > > I see that test_core_reloc_enumval.c takes precautions around the use of > > __builtin_preserve_enum_value as it is currently only available in clang > > 12 nightlies. Is it possible to do something similar here? Though I see > > that the use of the builtin is not nearly so neatly localized as it is > > in test_core_reloc_enumval.c. > > > > Thanks, > > Seth