Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp46946rwe; Thu, 13 Apr 2023 21:57:59 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEQ9DWNszB1dECidheEaLJUMGgYFkxm9kusB/zd3VZR9xetEwJ5eyOiBuAb2LJaQJfun0I X-Received: by 2002:a17:90b:1d05:b0:23d:158c:a60c with SMTP id on5-20020a17090b1d0500b0023d158ca60cmr4255977pjb.44.1681448278934; Thu, 13 Apr 2023 21:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681448278; cv=none; d=google.com; s=arc-20160816; b=h93tfkoBR1i8f4ERGYFVXsGmqqua/5D5oPjIENIKKyMzcHyEs0Sd2cS4Q/kZEnADex wpajjSmif7cvtKhsmyZYHztSzMojWcdPzvBVqE1KMut6ZC5+2uDP5yC8xLXTxADW4Iyd 1woP8Vi0uSojdYxZbCLXO6UniqkT9LLc1l2JmRmu7OqOsd+11UnWHxFskqOQ/CHmDxFb 0t96AzFQd22C3dlWvNPyaX6Ex6ywD2LUcDQXe27OhNBvN8spda/ybMgG403kN4Hl4WX0 hX3XkW2MLzz7DxZlo3qGHpXy0Q92zqp0MunaosStGjf0EwfQUrMoVC0LPxqSoCuflXfX f29A== 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=VOahN4QlawcFehI7bLkgrg/iclvzg8ErEBM3r/6qSpk=; b=O5zU317jVzTtH+Tx73Eg0Znk7FX0+CQDvHVahfaGaCXfj+UHbIX0rdtVGkpAXghAPz tlanZN32Wx959eb7K6MPUItarWfvkE1z9F7iE+0DlEK9+lv6vr2CmXf3mchrsr16NGMl mqh/RF5m3Lhlgbg+uC+KjGEk8GtZ/xh4t7wGolm9RnFdoMptQt4suBQIVuh/mVspaet3 iLEQX4zJQG3xIRk7miF7p5GyHySSnPCvk+j5NzfIy/0NGyVzz0dfl0XUQgGZGPA4GCBz HB9F6T9MyAKEb1Z7mfueSgQr3cqQzRb6Wyb413iOjIDKNodkgSCjBvlm8/5e5NtdU29R rvnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=CrORqfpg; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a170903018500b001a2911b43c7si4080296plg.273.2023.04.13.21.57.47; Thu, 13 Apr 2023 21:57:58 -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=@gmail.com header.s=20221208 header.b=CrORqfpg; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjDNE4o (ORCPT + 99 others); Fri, 14 Apr 2023 00:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbjDNE4a (ORCPT ); Fri, 14 Apr 2023 00:56:30 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB826A70; Thu, 13 Apr 2023 21:56:13 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id xi5so42685036ejb.13; Thu, 13 Apr 2023 21:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681448172; x=1684040172; 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=VOahN4QlawcFehI7bLkgrg/iclvzg8ErEBM3r/6qSpk=; b=CrORqfpgEv8CcZlXgF/ZZDgOnffuc+L7LYhC7/5nNBokxAsYwWGd2SiMnIDh06t/yn G0ISeD9fIQso5ekz4J1JfFRORTNa6aEcTAl2cgvewdhKtfiONANh7mAFaNXOFwi8mZCM Mjz4Rz/lbBn3jW1jecVUvMmuvet8mZChBaqe8tfA8p9geD0b2y61pVpH5dXgoVggy3q7 ecqW2ZO20JUowb8SaK5Et45JXOFKvaHBy760qPV7syOJzTiYT4T6SWFy6XRiThAV0vmD XyUy2cc1Z/uaKnivvTjK6cl5plFMrhqrGsoJXhZjOjIewP5xIjppd50z0w2IlgCIqiv0 8N6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681448172; x=1684040172; 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=VOahN4QlawcFehI7bLkgrg/iclvzg8ErEBM3r/6qSpk=; b=k6S6OCjOJVCWHM0RBVGjvvH5syelOZmPQ9DlyY3ONgOyKeoZ1eRrfJzCb7TSabTNyM ALNTTu/4ryTgOxEXxDzz4xhg16CH9iTxZpPqhGYPNYyKogoscTS50Kd3EcAx9Rynke31 ANYIfsNG9mtwkwsSMHZpyt7tiP3NDJ5t6V+Ke86tBUM2ykCEEZ6J83XUEqhfHFWQ+UVv fq9E4fM0LK6+BJj5AwY1Quuyc11+dHv0Nr6XpA93nHOlMz7Xy/mv/5lQ7dg+BOrAB7s0 ZrQriojRjSLImZcOhPH4lULTViTqgNtgwB07wmwhj8pLII8DGUrDAn0H9dSmO/ejp6Wy E1zQ== X-Gm-Message-State: AAQBX9dSpH8TQ0oN5GDC0jOQ/azL2EjFZUE8xtr9rEgESVcjKEFC/KnZ gkUrJuBQsv+1MBbmHsvocpQHxJdoUMpSdZs12m8= X-Received: by 2002:a17:907:968c:b0:94a:87d6:d39a with SMTP id hd12-20020a170907968c00b0094a87d6d39amr2519987ejc.3.1681448171913; Thu, 13 Apr 2023 21:56:11 -0700 (PDT) MIME-Version: 1.0 References: <20230412095912.188453-1-andrea.righi@canonical.com> In-Reply-To: <20230412095912.188453-1-andrea.righi@canonical.com> From: Alexei Starovoitov Date: Thu, 13 Apr 2023 21:56:00 -0700 Message-ID: Subject: Re: [PATCH] selftests/bpf: ignore pointer types check with clang To: Andrea Righi Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , Nathan Chancellor , Nick Desaulniers , Tom Rix , Paolo Pisati , bpf , "open list:KERNEL SELFTEST FRAMEWORK" , clang-built-linux , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Wed, Apr 12, 2023 at 2:59=E2=80=AFAM Andrea Righi wrote: > > Building bpf selftests with clang can trigger errors like the following: > > CLNG-BPF [test_maps] bpf_iter_netlink.bpf.o > progs/bpf_iter_netlink.c:32:4: error: incompatible pointer types assignin= g to 'struct sock *' from 'struct sock___17 *' [-Werror,-Wincompatible-poin= ter-types] > s =3D &nlk->sk; > ^ ~~~~~~~~ > 1 error generated. I cannot reproduce this and BPF CI doesn't complain about it either. What kind of clang do you use? Some special version and build flags?