Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2696345ybb; Sat, 30 Mar 2019 11:19:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyq4Fqk4p58vFSSLC95y9oj6MCln3C0fTZW2dixeHv5Llekyy79cO252XhcvQIGf7y3RoRJ X-Received: by 2002:a65:664a:: with SMTP id z10mr9193177pgv.443.1553969968545; Sat, 30 Mar 2019 11:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553969968; cv=none; d=google.com; s=arc-20160816; b=sUk+VMesX2qt0CsXx4xDjZ0ipef5jMFEAmO7Dq/RKe0kl59u1VFUdUdimgZnq88xt8 BeaZiF2eK6KqtEYxY2gxD2EKkoxz4oHnii7h9kgXc2l9GRFy1umPQuswI8OdxRhbrWFR GV9BvCFMTpLIJcQ/D6TZyKSBsom5atyUnTM5XeaQnMzmQ7An7qQh1RMrkIbjih4C49YG 0OIzO0CvRMKXuEjY3tHytGHVMAUgMVspgKTLTsFG9BxuQKvBDsmkAw4cCbc6aSiFgISY lF3moXXV/mrq1YWVgymGPdthKQ18z58qKjQAUvu5U931/ItyjOP2CRuriaQJ9gcxT8k7 E10g== 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=Y/zMe7CEV/WW0bORdE4cFBP7bCFLOnoAlCzMTpzmu+8=; b=CcLBmkTcFIoOuRmdx4Iu/U7A6bFcrM07Xwe6LELSlZ277WyRS0yptIDVNJyYOX3sLh C5N8lOsl+dmZ2spzqp6n+lF3VdfKVPEecmRQE9p3Quneox7Kr76LyufoJrY2YRPC6let 6esXY0VCA9tJNABXNRGg8Dl1nQr8gvW/8BoW1t/5WMerZewCX81rgTg5UZQfxEvghNMJ VaCLaNBWtCMmdqBZ/YUQ8yFsKp9G4Eei9TgqsypMSgyP931HxiYVpEjoKg+ySpqR8QRO yufS3IRHp/Wtm6QmY+2BA7Ghgt+ZZF2ZAsleZ/Ucdu9wCjc9ofu4aQDpND6ZOmKRt4CY kYGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OlT9KYmj; 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 u10si4832477pgr.112.2019.03.30.11.19.13; Sat, 30 Mar 2019 11:19:28 -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=OlT9KYmj; 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 S1730973AbfC3SSa (ORCPT + 99 others); Sat, 30 Mar 2019 14:18:30 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45078 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730675AbfC3SSa (ORCPT ); Sat, 30 Mar 2019 14:18:30 -0400 Received: by mail-pf1-f194.google.com with SMTP id e24so2532874pfi.12 for ; Sat, 30 Mar 2019 11:18:29 -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=Y/zMe7CEV/WW0bORdE4cFBP7bCFLOnoAlCzMTpzmu+8=; b=OlT9KYmjnG3E2pswSco7230OvmXylxsUvvp7lBV34sLw7KJTO+39G5nI/WNOiOvKbI mg/7JvwPiJ5C3Uox/ZYZbOif6dA/66OHZ4YgAhYRvPEVF6w7N3ZqwGEmgkYHjGOBSryv fituCBuwU1pwqmg3NfpqjXzHFnVtTbT9kXyu494qxyihVB9DNvW4Wlg1lNd2ybDecgY8 vyUR8kD4N92LWFcrtaScu7IroRrKXNzDlFBjYlsrQGTUA/g+Qn+NjfAqwm/X2bMG5ECO Imee6AgeIxmievajR9tYgRpmRck7NOx4Klqy7lEePKKqy55AQnx/UfJJMylstBIAW/uT WTdw== 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=Y/zMe7CEV/WW0bORdE4cFBP7bCFLOnoAlCzMTpzmu+8=; b=ENH0nCOsPvKtL6HHA3Cf5ci0bSf0Hy5Qk6qp+RSc07lbsPY3ff8ucvPHENFEUFPoLG OuaeVo2QD6rFemOdlvUTjJoJ1hf1lRfWqW56o7Ii5JynqeAEYXWokBR7NmrixVJrholW DeiqkEEqRl7LFFN3KINCYfBaunD3CvFdj4904Hbvuhku3zhhbHD6zRrigpfmB1mxs8e4 dvhxUpA+qEZBL7VCHfuKRHGW6gebL5pUPruTyI5gu9uFz8U80Eh8JCvHtqKYfHrENETG P2YB2VK7jjSzn6wft/c/520CZEILgOGMgO6LTNea/fSwDQoq07TdW4Zz+p81KlRjdQku dOOA== X-Gm-Message-State: APjAAAWOA3LpmWQ9qREBUAzZpCdl4+IUZmvIQgluX/w/wJVYoaSP5t69 WkwJIhTF1bR0q65cPqE+yCs= X-Received: by 2002:aa7:82cb:: with SMTP id f11mr47889969pfn.0.1553969909355; Sat, 30 Mar 2019 11:18:29 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.91.90]) by smtp.gmail.com with ESMTPSA id o68sm17953722pfi.140.2019.03.30.11.18.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Mar 2019 11:18:28 -0700 (PDT) Date: Sat, 30 Mar 2019 23:48:23 +0530 From: Hariprasad Kelam To: luc.vanoostenryck@gmail.com, rostedt@goodmis.org, mingo@redhat.com, roopa@cumulusnetworks.com, davem@davemloft.net, linux-kernel@vger.kernel.org Subject: [PATCH v2] trace: events: fix error directive in argument list Message-ID: <20190330181823.GA16263@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/neigh.h:73:1: error: directive in argument list ./include/trace/events/neigh.h:78:1: error: directive in argument list ./include/trace/events/neigh.h:150:1: error: directive in argument list ./include/trace/events/neigh.h:155:1: error: directive in argument list Changes below two lines to signle line to avoid sparse error if (n->tbl->family == AF_INET6) { to if (IS_ENABLED(CONFIG_IPV6) && n->tbl->family == AF_INET6) Signed-off-by: Hariprasad Kelam --- Changes in V2: -Divide patch to only address spare error --- include/trace/events/neigh.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/trace/events/neigh.h b/include/trace/events/neigh.h index 0bdb085..2ca0180 100644 --- a/include/trace/events/neigh.h +++ b/include/trace/events/neigh.h @@ -70,12 +70,10 @@ TRACE_EVENT(neigh_update, else *p32 = 0; -#if IS_ENABLED(CONFIG_IPV6) - if (n->tbl->family == AF_INET6) { + if (IS_ENABLED(CONFIG_IPV6) && n->tbl->family == AF_INET6) { pin6 = (struct in6_addr *)__entry->primary_key6; *pin6 = *(struct in6_addr *)n->primary_key; } else -#endif { ipv6_addr_set_v4mapped(*p32, pin6); } @@ -147,12 +145,10 @@ DECLARE_EVENT_CLASS(neigh__update, else *p32 = 0; -#if IS_ENABLED(CONFIG_IPV6) - if (n->tbl->family == AF_INET6) { + if (IS_ENABLED(CONFIG_IPV6) && n->tbl->family == AF_INET6) { pin6 = (struct in6_addr *)__entry->primary_key6; *pin6 = *(struct in6_addr *)n->primary_key; } else -#endif { ipv6_addr_set_v4mapped(*p32, pin6); } -- 2.7.4