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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FD62C433F5 for ; Fri, 12 Nov 2021 05:06:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 358E260FBF for ; Fri, 12 Nov 2021 05:06:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230439AbhKLFJc (ORCPT ); Fri, 12 Nov 2021 00:09:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbhKLFJa (ORCPT ); Fri, 12 Nov 2021 00:09:30 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4DE5C061766; Thu, 11 Nov 2021 21:06:39 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id n85so7491055pfd.10; Thu, 11 Nov 2021 21:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/n+GN0QL32ZPG4TXED297nA7LqFZql5MFrW4dGLFaWU=; b=kyImFrLY7nztfPU+Fic0Iz1UiJOcf+NrBP40K0Drnv2IUQqHM7HVuWtZm0sbf6Wvb3 l8Q1Hg4lI/tFLw0MTOnHnA6fVb7jwQimraXKNUX+K/0P2UDOjI8tT/CbPFvo9fIjGtJd YSf8Efkws2ons0TdbXw9/Rob4JctFiOkZ3dDdowcurGjbkKLcDaN7oc4E9BEjc/uDeaY Fex/1TxTxiRpFaeK/txB+epvlkTvCnH2tTIAxWCaYLjJGdS7foGDk+YJ50ofEvAZ+B2b e+mVR5D0GuyzXYc09rHd6SoX3/SQ1NC8O5i9Sf/2zytRsQ/ycww8hV6ecYRuIvDWREoP Zc1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/n+GN0QL32ZPG4TXED297nA7LqFZql5MFrW4dGLFaWU=; b=WEw2K72grd7qnk/4o6boYpVdXvy6xig7RVMj9J1F+yHI0PkfJBRriQ2tgCHajII5W3 uOprhFtmCC9dA1FhIE3/j7EhbsjyDj9egZkHCcRnTB8gDVdbGYkscBIU+d3IgwsrXLGx JP5rIQhsbXZq2RXCSNRztEJnUrbgalJj1GHJLzKJZAAGqic4t6kFMYeDr1lv5V439dhy joLbcUQXR354a5hOw9wgwVfVylUKiQU/C7MzNT2xpcvB2S36wBPhWYc7qf8YSapJqhdu /UhlKf/o2SUEj3x+rJcIVQdW0J/M3CkERV2psCSV5eS4syoIdk1NLiT0WMa9ayCO0WbD L62w== X-Gm-Message-State: AOAM532lc/4YYMDnY2reTOKTRur4tSnZNn4ZNKPJ3k9RKsj6JMj4vXVd X2LhqvbxVvx/TqN7ndAWuPaYNEzBQM2imvuEp4M= X-Google-Smtp-Source: ABdhPJwjASYotgwsahISTtFJ+UEq2OrcDTFdcqWJsYYHCQGtoCuNCus82SrbXfrtqy8PARFf94k0Xl0yF0QylVOtaFE= X-Received: by 2002:aa7:9a4e:0:b0:4a2:71f9:21e0 with SMTP id x14-20020aa79a4e000000b004a271f921e0mr1918802pfj.77.1636693598591; Thu, 11 Nov 2021 21:06:38 -0800 (PST) MIME-Version: 1.0 References: <20211112032704.4658-1-hanyihao@vivo.com> In-Reply-To: <20211112032704.4658-1-hanyihao@vivo.com> From: Alexei Starovoitov Date: Thu, 11 Nov 2021 21:06:27 -0800 Message-ID: Subject: Re: [PATCH] selftests/bpf: use swap() to make code cleaner To: Yihao Han Cc: Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Shuah Khan , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Network Development , bpf , "open list:KERNEL SELFTEST FRAMEWORK" , LKML , kernel@vivo.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 11, 2021 at 7:27 PM Yihao Han wrote: > > Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid > opencoding it. > > Signed-off-by: Yihao Han The point of the selftest is to open code it.