Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4599849img; Tue, 26 Mar 2019 12:39:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxK2JsOvblBJrA5eZ9S9S90FKipds/VyRiU5ioKMnBhkYPjC/mTJsZJ25tMBdTbqJ5OxrOo X-Received: by 2002:a17:902:b60c:: with SMTP id b12mr32231303pls.261.1553629173547; Tue, 26 Mar 2019 12:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553629173; cv=none; d=google.com; s=arc-20160816; b=pHOJzsng9fsdyGxlvKK9ock5FMOEz2HWtyPL2/+Uo8S6owFG3dZql5DIpnpDVJtBvT dyQjuRY6ArxPLg8Dx6EKuu4sw6huuFfw0wbfg8FdOLG6ZzYTkikmD/8UKLqV0u8J/idB f9zTkymwlRBQVBAqtRXR7c82uc028Evb0j6QYdQg/zFAJaauUDwVPx9ak0Hafs+LceYq bDk+6psFO+B5ZFGsPjXQmlzeIEUYmXVJwQ6aFAX6IiaiZa6ITlzkZMyuo3hRxXjLwXx1 0EYNvX3qN51L+5SLA/j9dXSPwFfuXfrNdiefN825HXihvpwog3hLSs3cqTjfDCbTYA1M 2bDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=DgUudxueHTm/QW4KmBGdf24XZ1cf36j15ieGoiJGyt0=; b=j+eQ/eLGOiX01ixREiX5vPhpI1OBxD8QWqeTOclqhW9Ayug1qNU+ocNNm9egjQTVNi CD6p92l2uT7xPnJQOg/AJDAR4FsAMnDPsFaEd3cIxLta7ySimLsSorhagrkeCqsM/tD3 Ywd+bhsQwf3YJHPN+eZnycFLUrAyXYEbGt81fUEEaHdTtOzXj6s9+qF8qXwe9JOHBduO SVxnb9Evr0GV7t0qSRwNVF5a0ZjYaY75+WmuY/TbRGwz3Lb5NNnhQ4U5QxdLgjsoU+fJ W9/bb+Yu9093+rAR6UuAVCP2k+wLpyHXi2dAd8Mdws5EwhVw06hE/CFSpkWjod1cw5AP oI7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r5felNL0; 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 f1si16465116pfn.10.2019.03.26.12.39.17; Tue, 26 Mar 2019 12:39:33 -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=r5felNL0; 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 S1732003AbfCZTil (ORCPT + 99 others); Tue, 26 Mar 2019 15:38:41 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33510 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbfCZTil (ORCPT ); Tue, 26 Mar 2019 15:38:41 -0400 Received: by mail-pl1-f195.google.com with SMTP id bg8so2101118plb.0 for ; Tue, 26 Mar 2019 12:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=DgUudxueHTm/QW4KmBGdf24XZ1cf36j15ieGoiJGyt0=; b=r5felNL0VK5UkhOOqGyDvuBMNRfNffjUCMk5OBPVirXv+TttCFc0Bo3cDgvrjgBZHN isIk+L9FXT0ld8vXynrBHKQHCZ3rstzq5g9f64ipj8DZUbO6xL1kClqFlYnDQKkA5rz/ 9PSwnITePwJQWTu6kcBYCLQeA+u9Mu0brrIVDrbfJ3XUrm4HSyR+GLd5GBDiTYqIvDAA A7zMSX7ZqUq9eJtrENhNMGSTRxkv8x3sdLp/j3HBWacyf7DSxob322eF3Kssngf5TylD q09BlYNWaVsLVaXOBc3LV/IaWcz1gFeQsD5txjPUK6YKHZcY4AabptVaSiB1DX4/0Br/ GJ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=DgUudxueHTm/QW4KmBGdf24XZ1cf36j15ieGoiJGyt0=; b=LSVj9WlASycjjD4p3eVaPhUxLJPusQC2cXvw66UIChq51+eHOTJ1E3SoJFoOEGgTJw G2mwgvAYMSo3Y7RHt5/o/scVTYio36vuIIB3t0H/vX+rPiAHWXPhLnjIf9A4SNBjiGM/ 7f9Wi134mpc/yOUKjLKbmw/pd13kHRiyO6lTVQiY7zCCNTZFctaIqGVbAfJ6TZell+pl Gw80LzvMsifrTovxU+ZbhqkWhcJ+r1uzm69rCXoU46mP8tP6w0GLr8dG5WGU+1UcVRrN OC7C8JGLDwKw+oEabxSp8s5dt6XyJBRn+ula6nWyh4rfuxpRNVFezfQj2uieaScLXg5c NHWg== X-Gm-Message-State: APjAAAXJw4rxItT0WHxRlmUOf0ZuwJE/ffDDt1VSiQyA5cY8fRoIxU7N 9Qv04UbWZjD1DtU4wOjZH0c= X-Received: by 2002:a17:902:a5c3:: with SMTP id t3mr33218338plq.293.1553629120756; Tue, 26 Mar 2019 12:38:40 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.91.90]) by smtp.gmail.com with ESMTPSA id e1sm25088804pfn.73.2019.03.26.12.38.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 12:38:39 -0700 (PDT) Date: Wed, 27 Mar 2019 01:08:34 +0530 From: Hariprasad Kelam To: Steven Rostedt , Ingo Molnar , "David S. Miller" , Edward Cree , gbastien@versatic.net, linux-kernel@vger.kernel.org Subject: [PATCH] net: trace : fix error directive in argument list Message-ID: <20190326193834.GA13540@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below spare errors. Sparse error: make C=2 CF=-D__CHECK_ENDIAN__ M=net/core ./include/trace/events/net.h:171:1: error: directive in argument list ./include/trace/events/net.h:173:1: error: directive in argument list ./include/trace/events/net.h:175:1: error: directive in argument list ./include/trace/events/net.h:171:1: error: directive in argument list ./include/trace/events/net.h:173:1: error: directive in argument list ./include/trace/events/net.h:175:1: error: directive in argument list To avoid sparse error changed to if (IS_ENABLED(CONFIG_NET_RX_BUSY_POLL)) Signed-off-by: Hariprasad Kelam --- include/trace/events/net.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/trace/events/net.h b/include/trace/events/net.h index 1efd7d9..49e6003 100644 --- a/include/trace/events/net.h +++ b/include/trace/events/net.h @@ -168,11 +168,12 @@ DECLARE_EVENT_CLASS(net_dev_rx_verbose_template, TP_fast_assign( __assign_str(name, skb->dev->name); -#ifdef CONFIG_NET_RX_BUSY_POLL - __entry->napi_id = skb->napi_id; -#else - __entry->napi_id = 0; -#endif + + if (IS_ENABLED(CONFIG_NET_RX_BUSY_POLL)) + __entry->napi_id = skb->napi_id; + else + __entry->napi_id = 0; + __entry->queue_mapping = skb->queue_mapping; __entry->skbaddr = skb; __entry->vlan_tagged = skb_vlan_tag_present(skb); -- 2.7.4