Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4612994ybb; Tue, 24 Mar 2020 01:57:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvTGDfcRcy+/+LogPLt05mJfY6zvmhWwjDP5w4aXf+yPj3+arTA05ppx0DtXzpem4ZB96Gf X-Received: by 2002:a9d:798d:: with SMTP id h13mr21852468otm.25.1585040220124; Tue, 24 Mar 2020 01:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585040220; cv=none; d=google.com; s=arc-20160816; b=GyhDDPJVMJazzbWGSoHGt4Hjyi7aWRjlzznOVmyIioV52P/QlDifoAhKqpvTkgR3bJ 6KtsyhJ0Q6TPbnqq2ewIpoBWSwyHFmO4GeCFevL6ZLlP2OHXQeknk/0Ak4krO6pbv7Ai LPIc03z3rOuT8XPcvToNJAN6GryNahbrEMrrqTq6WdJUlBXnMbTpHuUlmKsXzuvSr4QT 2Nhepdy4Fazj0M/gFJ5h3hbAFt54bF0lKSTVaOgolxzMvAV7Q61HoVJ2TGrAMpI/RE3D 8KYIiAzOUSmGCcUr64rXWJtSL9TTnLBMiOGSbkdF8tZoM+4epZ437QdrRcpiADR7YyOC EKrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=O2/2BeGLfOXUYC+AjdgCFRQqF06zHm6BUh3zIA84yC4=; b=S9CpeuymOMls1unaC0c+ohsYMJT5fxYaY355+0YpxsmlTCe0qF33NeT9fvDHv3RJ2U eTDXNO5RniIKLCFPerPCZv3sBzyLBpRUtfud5w2iahOYc7QKDFz7lOg/TAb4gF/8rfM6 ezctU4pzuJnLK31TOyiroZ8xp+tBY24jJh3HKFdCpwsIVKWmDCL8Vx2u/s6QV61dhbyb 2MSralTDpfvZLZZrQp+WpYaXz4HL4wEK+B6G4TKeIjgHyRHJXi8hDAFKTbTRs0/LmRrM h1DnJmLPHmhKZvaKsO3Q76Pxzj9bE8JRUyDlqoa/OH+ham8Q6a8GT5p+kltKVsoq1Zix j2dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rloMJQCz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 79si659199oty.232.2020.03.24.01.56.46; Tue, 24 Mar 2020 01:57:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rloMJQCz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727119AbgCXI4K (ORCPT + 99 others); Tue, 24 Mar 2020 04:56:10 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:35968 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbgCXI4J (ORCPT ); Tue, 24 Mar 2020 04:56:09 -0400 Received: by mail-ed1-f66.google.com with SMTP id b18so19845118edu.3; Tue, 24 Mar 2020 01:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O2/2BeGLfOXUYC+AjdgCFRQqF06zHm6BUh3zIA84yC4=; b=rloMJQCzcKN/KWDmwLQrsQutxGlUJgYqDAzryx/3G4oOZC2N1awjEZzucypp+QD61U TvkYuCH7ljj+rELuWdmCC5U10/Q5u34SoS1BoE70sglMcdEj19wYjWyj0MHjTDtUxWIr QKro/WjjMZq4b7wyrpVqOIGOiI5KmjRFqHb0KAIcHINkDB9jI5Lmp9WXZsBytza30CCx BNc68v6x2p04dm1qZaXQLBnIEgBENOiWB5HMIkyfprpOY30mb/CSU4hjhAOIpCEbuRyN tj+aVfHZmApijYKIKJS1fI0mlinmIvT30agCkMa9wa7zqhZAaupAypnePtZoXWz2OBK1 sM3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O2/2BeGLfOXUYC+AjdgCFRQqF06zHm6BUh3zIA84yC4=; b=OrnC010OPrZaKUW65TEL0sKvyqORKHvN+LZ0GFuuCbeYaPZL9RBCoR4M5czJReXMRB ZEjPNBVJa0/MYMYIwMJ2n//IbCvfS1faiwXMKo6mBtbe6hikxnaFRX1Obx5SWyAG+Mjc YCAuNQ3ogvEwNcqrDUDECfUyISHAyxt5OPBZHo2LHkBzx45W0Hl63STOYRfXC/AloLEM gZOKv+7rJW8+Xjakain3geRdyMorTT3qeO+hiGllU0r00rO6/tROqoLpxj9B18kVeWwX d04lhHl1TdIxoWabS3ADcX01FKEsFvKSpjkFVOYyoDhVBZEE9/S9ySeT6lJ0oPfEv5DY skkQ== X-Gm-Message-State: ANhLgQ2zZ4JIytNUVa07RpHhix2c8Wjm7w9jUbNgLLLnD5ayfW+ca/6j XuQNTMSgx6mwIgcnEgVGB6k1Hk1oa0xxVgf/rjo= X-Received: by 2002:a05:6402:1c0c:: with SMTP id ck12mr25647923edb.145.1585040166289; Tue, 24 Mar 2020 01:56:06 -0700 (PDT) MIME-Version: 1.0 References: <20200324041920.GA7068@asgard.redhat.com> In-Reply-To: <20200324041920.GA7068@asgard.redhat.com> From: Vladimir Oltean Date: Tue, 24 Mar 2020 10:55:55 +0200 Message-ID: Subject: Re: [PATCH net-next] taprio: do not use BIT() in TCA_TAPRIO_ATTR_FLAG_* definitions To: Eugene Syromiatnikov Cc: lkml , netdev , "David S. Miller" , Vinicius Costa Gomes , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Voon Weifeng , "Dmitry V. Levin" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eugene, On Tue, 24 Mar 2020 at 06:19, Eugene Syromiatnikov wrote: > > BIT() macro definition is internal to the Linux kernel and is not > to be used in UAPI headers; replace its usage with the _BITUL() macro > that is already used elsewhere in the header. > > Cc: # v5.4+ > Fixes: 9c66d1564676 ("taprio: Add support for hardware offloading") > Signed-off-by: Eugene Syromiatnikov > --- I see this mirrors what was done in commit commit 9903c8dc734265689d5770ff28c84a7228fe5890 Author: Vedang Patel Date: Tue Jun 25 15:07:13 2019 -0700 etf: Don't use BIT() in UAPI headers. The BIT() macro isn't exported as part of the UAPI interface. So, the compile-test to ensure they are self contained fails. So, use _BITUL() instead. Signed-off-by: Vedang Patel Signed-off-by: David S. Miller so Acked-by: Vladimir Oltean > include/uapi/linux/pkt_sched.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h > index bbe791b..0e43f67 100644 > --- a/include/uapi/linux/pkt_sched.h > +++ b/include/uapi/linux/pkt_sched.h > @@ -1197,8 +1197,8 @@ enum { > * [TCA_TAPRIO_ATTR_SCHED_ENTRY_INTERVAL] > */ > > -#define TCA_TAPRIO_ATTR_FLAG_TXTIME_ASSIST BIT(0) > -#define TCA_TAPRIO_ATTR_FLAG_FULL_OFFLOAD BIT(1) > +#define TCA_TAPRIO_ATTR_FLAG_TXTIME_ASSIST _BITUL(0) > +#define TCA_TAPRIO_ATTR_FLAG_FULL_OFFLOAD _BITUL(1) > > enum { > TCA_TAPRIO_ATTR_UNSPEC, > -- > 2.1.4 > Regards, -Vladimir