From patchwork Wed Dec 2 21:28:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 11947207 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAE54C64E7B for ; Wed, 2 Dec 2020 21:30:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 85787208FE for ; Wed, 2 Dec 2020 21:30:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387821AbgLBV3r (ORCPT ); Wed, 2 Dec 2020 16:29:47 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:58392 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727623AbgLBV3r (ORCPT ); Wed, 2 Dec 2020 16:29:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606944500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=R3y59cFkBFhJHLAJHRUlQeF2BXj1DNnEUxvigbFgejc=; b=AOd3ogqo0hIaJs0UHkGYKHzClIVQSqgzsaPRSzsizDLl7aj7iXGLZSAgN0bv5Qf8y3Btsk RJOc/v1VnjewL3zpVrRYmOrsvpGWsnk2O641fXn+0iamKlhgOQ5HoP8y/3s7t8Ba9Zwpda hEoTLHQMA8jTXES+VuNMpxVsgApkZTY= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-516-vQ6Ip8jqMxahE12MLTjs2w-1; Wed, 02 Dec 2020 16:28:19 -0500 X-MC-Unique: vQ6Ip8jqMxahE12MLTjs2w-1 Received: by mail-qk1-f199.google.com with SMTP id a6so106894qkd.20 for ; Wed, 02 Dec 2020 13:28:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=R3y59cFkBFhJHLAJHRUlQeF2BXj1DNnEUxvigbFgejc=; b=CogW8LDtqDiCWo+xxiinO5Xk0XytQtVmVdlCH2JQCDws4Ac7jF/DAbitz4kenTAWWC RV8u0dCypSFXVxQ5ns8TRGqID214LHYjSikgnq9VZkB41N9+zoxUVGWj2WkQ298hMJlD sAIQX/pFpPcGgNXrlwJH0150qz8cd2qoceJQJj4TuE1HX/nlSgcPuvSgSomMUKFZKlo/ q2N+118fio7KIE4PMmFo7lZfDkU2NkKy8/JBl2GBwv6y5Ccz1OvhT40ZfYeqI6byEdFY OtZKURezccmTZGj4idi/heZfM5AXPala2YIAgj18sjCArE/I1L2exuTNW382Q/DKJnJw IAvA== X-Gm-Message-State: AOAM533hCR7ZaR933h0a62mKB/elpbIGxTlVp8qhLVP1UD1Pd/7wDGap 42jIzZq3CITRVslemoFlfDYsO8rQ0dUOtmXaJvjNOi/a2qT/C6jpdL42oZSoQZriaPr2PWNl3Th REeY/yozlol0F X-Received: by 2002:aed:308a:: with SMTP id 10mr141341qtf.312.1606944498915; Wed, 02 Dec 2020 13:28:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMQAv9tZIsxapcS/KocPHAZTfaCE23GVIln0P+rFylEHpjwCBMxSLkJjYKU3ZJT2kBE1904g== X-Received: by 2002:aed:308a:: with SMTP id 10mr141308qtf.312.1606944498652; Wed, 02 Dec 2020 13:28:18 -0800 (PST) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id q20sm2873760qke.0.2020.12.02.13.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 13:28:17 -0800 (PST) From: trix@redhat.com To: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@chromium.org, davem@davemloft.net, kuba@kernel.org, hawk@kernel.org, rostedt@goodmis.org, mingo@redhat.com Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH v2] bpf: remove trailing semicolon in macro definition Date: Wed, 2 Dec 2020 13:28:10 -0800 Message-Id: <20201202212810.3774614-1-trix@redhat.com> X-Mailer: git-send-email 2.18.4 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net From: Tom Rix The macro use will already have a semicolon. Clean up escaped newlines Signed-off-by: Tom Rix --- v2: more macros fixed, escaped newlines cleaned --- include/trace/events/xdp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/trace/events/xdp.h b/include/trace/events/xdp.h index cd24e8a59529..76a97176ab81 100644 --- a/include/trace/events/xdp.h +++ b/include/trace/events/xdp.h @@ -145,17 +145,17 @@ DEFINE_EVENT(xdp_redirect_template, xdp_redirect_err, TP_ARGS(dev, xdp, tgt, err, map, index) ); -#define _trace_xdp_redirect(dev, xdp, to) \ - trace_xdp_redirect(dev, xdp, NULL, 0, NULL, to); +#define _trace_xdp_redirect(dev, xdp, to) \ + trace_xdp_redirect(dev, xdp, NULL, 0, NULL, to) -#define _trace_xdp_redirect_err(dev, xdp, to, err) \ - trace_xdp_redirect_err(dev, xdp, NULL, err, NULL, to); +#define _trace_xdp_redirect_err(dev, xdp, to, err) \ + trace_xdp_redirect_err(dev, xdp, NULL, err, NULL, to) #define _trace_xdp_redirect_map(dev, xdp, to, map, index) \ - trace_xdp_redirect(dev, xdp, to, 0, map, index); + trace_xdp_redirect(dev, xdp, to, 0, map, index) #define _trace_xdp_redirect_map_err(dev, xdp, to, map, index, err) \ - trace_xdp_redirect_err(dev, xdp, to, err, map, index); + trace_xdp_redirect_err(dev, xdp, to, err, map, index) /* not used anymore, but kept around so as not to break old programs */ DEFINE_EVENT(xdp_redirect_template, xdp_redirect_map,