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 394D2C433FE for ; Fri, 10 Dec 2021 14:26:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242105AbhLJOaO (ORCPT ); Fri, 10 Dec 2021 09:30:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:33790 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbhLJOaJ (ORCPT ); Fri, 10 Dec 2021 09:30:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639146394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=noxZ/W/0Xblh7NLRVhPVVF1MXLgMaduXPJ/ayJxQT44=; b=YSFJnZ1kfyt10dXunST5dxeGarAzCxjJO3nfVsgevh6IVkTVyBHhXG284tGj4ug8sAxmcv 95uEj3Sej2vf0bH3gYUhAV6NKtVKQuOT4NXA5DouWlvqWsKm+NmL0zMjB9FY2GI3IL1Iue kRYXuL/XRHRvZM/VpZZMJheyln/WEao= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-32-Y2Hq9c0dPneu7VGA9L9BCw-1; Fri, 10 Dec 2021 09:26:33 -0500 X-MC-Unique: Y2Hq9c0dPneu7VGA9L9BCw-1 Received: by mail-ed1-f71.google.com with SMTP id bx28-20020a0564020b5c00b003e7c42443dbso8285074edb.15 for ; Fri, 10 Dec 2021 06:26:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=noxZ/W/0Xblh7NLRVhPVVF1MXLgMaduXPJ/ayJxQT44=; b=8CZN4y0hX4CZlEoM8ptHrlE/z73hFytW9jAUj6d6tj+gvIrhvnC2wevZ22cAkGrJDV OYIsQ1A2ySBjEPnM/YQBExEpjFKSXXLSr5vcTUcrj7TvVyPFDOrpHBqqWnB7I7Lr64hm URstaeL3Ce2OSPS5U2+AY3vqs4cHYCY242FMu3Nl3aDkvnRZ8dpgn5xqLYDTPvdzLUk/ 301mrMQx/0Hyg22uMBLHL/mtoGEhtrHgY/xttZ4rlVEOiCJ9AFbFs7OGxQ4YCPdN0jYq ngv1xl3k90KFxTuZQBKdFWc19/Lm2Lzn53SgkbwBtIL2gy3mJjZefT8I8Q3A4Ohi0LJd W9Aw== X-Gm-Message-State: AOAM5319TEf4mgRnpxbHGqWC/Wd28dXlpRPIaHQlpXVAR2WLZkIT2DvO hdPPqDCyCUGORdxrdhtsPN81Ib8g1XycQkxQ5ojfZJb8Kn/KOvQzdmbY+2MV3kovJuUDyzij5pP OjQhoDu+bCCVr87ppqy5MOWO4 X-Received: by 2002:a05:6402:50ca:: with SMTP id h10mr37679203edb.70.1639146391874; Fri, 10 Dec 2021 06:26:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTXnanOiDzBPfrU73QKrpktq3WDMTp3GvxqnQWsi3ADVa6J+V1WYizuPyjjSzVXe0txRMJtA== X-Received: by 2002:a05:6402:50ca:: with SMTP id h10mr37679166edb.70.1639146391541; Fri, 10 Dec 2021 06:26:31 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id z22sm1567067edd.78.2021.12.10.06.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 06:26:30 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 52BAF180471; Fri, 10 Dec 2021 15:26:30 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Yihao Han , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel@vivo.com, Yihao Han Subject: Re: [PATCH v2] samples/bpf: xdpsock: fix swap.cocci warning In-Reply-To: <20211209092250.56430-1-hanyihao@vivo.com> References: <20211209092250.56430-1-hanyihao@vivo.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 10 Dec 2021 15:26:30 +0100 Message-ID: <877dccwn6x.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yihao Han writes: > Fix following swap.cocci warning: > ./samples/bpf/xdpsock_user.c:528:22-23: > WARNING opportunity for swap() > > Signed-off-by: Yihao Han Erm, did this get applied without anyone actually trying to compile samples? I'm getting build errors as: CC /home/build/linux/samples/bpf/xsk_fwd.o /home/build/linux/samples/bpf/xsk_fwd.c: In function =E2=80=98swap_mac_addr= esses=E2=80=99: /home/build/linux/samples/bpf/xsk_fwd.c:658:9: warning: implicit declaratio= n of function =E2=80=98swap=E2=80=99; did you mean =E2=80=98swab=E2=80=99? = [-Wimplicit-function-declaration] 658 | swap(*src_addr, *dst_addr); | ^~~~ | swab /usr/bin/ld: /home/build/linux/samples/bpf/xsk_fwd.o: in function `thread_f= unc': xsk_fwd.c:(.text+0x440): undefined reference to `swap' collect2: error: ld returned 1 exit status Could we maybe get samples/bpf added to the BPF CI builds? :) -Toke