Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3581123img; Mon, 25 Mar 2019 13:13:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzER8+BT9YbDGFod/xKjvxg+HCZQa6t1O6T0s3I1pldjvUmNdQ/R1lYeYaT/ECg/A4S+vlX X-Received: by 2002:a17:902:20eb:: with SMTP id v40mr27136373plg.20.1553544821754; Mon, 25 Mar 2019 13:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553544821; cv=none; d=google.com; s=arc-20160816; b=OiPlam9QCc70Zm4+Gah2F+2rgIfIjYDRxRCSVLcOMY9SrUzffgHc0X4ITchu+IKmBI so1HRI6jWv79DVO1gprB3sstCjxAQuSgpAORt7++IrlkCuoOaxQQCi6faPLB3zUVl5cx z4Y6F2/RZ79UXbv8eZGzMFWJkG/WAFBUl26Ebnl1QwPwXiI+7gNv72Xu5rGUia3XuwKS tn6wr4URgSLqGBjzfQg6PGhLU1ioiJKHFSi25KVYFm2dTRkOsKJyqKwDWhhlGhyEFQh+ X1N0i3G2CWQD1dhV7Jw3pGtVjEJ65TgHTe4r6DoGAL9NMum6VrE52KhCfQTP3ubZwV8J 44wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Cm0z0N8NsEhUzPI/gmSF6rZK4d1VYRL9um97gEILQzc=; b=OOgxa4zD6VGY8fNJeouTNx6+YQse11QlOweuqtQrL/pHsbkfpG+FXimQm1F7L3qcsz vbn+wXUXg+bElea0kK/NFaq31Fa44nFJkwi1GbXeLxMn9u/QGh5mY/vDBq2DsmMO+TjX 4CyaKBMzTmoj7TqP/ez9dVMylApvmmfY19M7yZyY41P6gu3qc91wnSawCOO8mJhGh2AV QY7Z53l9dn/elWMCe8qBUmXK1rw29Zxbv5ff1HRFH1YCGXYu1dfDo62x1LJ9XJgRAKYA O0NdIouNsux8u0+8IVmVFWp1Mp57g4iLcPj5E+raANOnH/K/+IeGsaCXDs83heuQVZVz 6Itg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q189si14485607pgq.240.2019.03.25.13.13.25; Mon, 25 Mar 2019 13:13:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729938AbfCYULR (ORCPT + 99 others); Mon, 25 Mar 2019 16:11:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:49182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729283AbfCYULR (ORCPT ); Mon, 25 Mar 2019 16:11:17 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31CAC20863; Mon, 25 Mar 2019 20:11:16 +0000 (UTC) Date: Mon, 25 Mar 2019 16:11:14 -0400 From: Steven Rostedt To: Hariprasad Kelam Cc: mingo@redhat.com, roopa@cumulusnetworks.com, davem@davemloft.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] trace: events: fix error directive in argument list Message-ID: <20190325161114.6a54bed0@gandalf.local.home> In-Reply-To: <20190325195303.GA20629@hari-Inspiron-1545> References: <20190325195303.GA20629@hari-Inspiron-1545> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Mar 2019 01:23:03 +0530 Hariprasad Kelam wrote: > --- > include/trace/events/neigh.h | 19 +++++-------------- > 1 file changed, 5 insertions(+), 14 deletions(-) > > diff --git a/include/trace/events/neigh.h b/include/trace/events/neigh.h > index 0bdb085..6e310ea 100644 > --- a/include/trace/events/neigh.h > +++ b/include/trace/events/neigh.h > @@ -70,15 +70,11 @@ TRACE_EVENT(neigh_update, > else > *p32 = 0; > > -#if IS_ENABLED(CONFIG_IPV6) > - if (n->tbl->family == AF_INET6) { > - pin6 = (struct in6_addr *)__entry->primary_key6; > + if (IS_ENABLED(CONFIG_IPV6) && n->tbl->family == AF_INET6) > *pin6 = *(struct in6_addr *)n->primary_key; > - } else > -#endif > - { > + else > ipv6_addr_set_v4mapped(*p32, pin6); > - } > + > __entry->confirmed = n->confirmed; > __entry->updated = n->updated; > __entry->used = n->used; Not sure why the added pin6 assignment was there to begin with: pin6 = (struct in6_addr *)__entry->primary_key6; p32 = (__be32 *)__entry->primary_key4; if (n->tbl->family == AF_INET) *p32 = *(__be32 *)n->primary_key; else *p32 = 0; #if IS_ENABLED(CONFIG_IPV6) if (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); } It was already assigned. Looks fine to me, at least from a tracing point of view. -- Steve