Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4793171img; Tue, 26 Mar 2019 17:29:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7OvOp1vbpQnUQ5mFP3NjGCKIOg+NYhe0En3qX0CijrwW0CLCtEn6Ei23monNAQpGiNnpk X-Received: by 2002:a17:902:2a0b:: with SMTP id i11mr33948205plb.324.1553646545689; Tue, 26 Mar 2019 17:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553646545; cv=none; d=google.com; s=arc-20160816; b=Qzmp28cr2Yi6wcTcEA5q6r5sDGNnc2hwOQcTFg0mHOMzL5gBznuGlzFObR0od2Uum6 zvAwWGNbXHHdC2T+yabooL4+rzQnBWlR3TOxMy3qoPGs7dSz50Uos8IW/Yd9xQ21BFCI KdOeMM7CnpECy+XhlU1pji2+pV7yT7Gkl59WtTsVjP6J3iWaXJ1kWCSQTkSgFYwGBmCD 6xyeczCJVurFJrLyyNLGI8VWtTDqXwr9uBfmeWmy8CpSaA6LY+oStUoarxiM6wbUHPFA INR478q+2hyn2TZ4tWjPLi2iG71OLUl97FqBlNAqqUvsBZAubz9/aelvYAfcea8C+NBP /B1g== 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=ttGnYcamR0cFlhmYOSzuiu48CUxfLJ6Eyuv45erjiFc=; b=LEWXFDtiiNkVI0wTDKUKVsI9Q+jbz/ACh4fYIVoet2Tld2RTWOFP591f71spaUVIKq ljosJGohO4F2bv7Iw+tBMwMreq6nDacAYi7qqFk7WiGa/tSF9d2iM27SzzGwpu+vehZC sMBRkLm8raXvZfSkwpMKLI8QcAHvD8imCSY/H2mSJ/hp65VqRxDIgwQjocRNUMFDQ556 VrVVcPlishYA9D12tw4KZi/uboULxqDWZMvHb/U+OuOaxv8Ersnva4hklDgIlDmyHW2S KLEJjkdOA40/8aHkhlJCnK74emDTT479EdVFD+df16KfZmapliPeDCGOIFe11zk5i/dX KzmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=HPnG45s6; 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=NONE dis=NONE) header.from=cumulusnetworks.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13si16820513pgp.271.2019.03.26.17.28.50; Tue, 26 Mar 2019 17:29:05 -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=@cumulusnetworks.com header.s=google header.b=HPnG45s6; 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=NONE dis=NONE) header.from=cumulusnetworks.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732920AbfC0A2B (ORCPT + 99 others); Tue, 26 Mar 2019 20:28:01 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:46293 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731159AbfC0A1w (ORCPT ); Tue, 26 Mar 2019 20:27:52 -0400 Received: by mail-ed1-f68.google.com with SMTP id d1so12431888edd.13 for ; Tue, 26 Mar 2019 17:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ttGnYcamR0cFlhmYOSzuiu48CUxfLJ6Eyuv45erjiFc=; b=HPnG45s6cpc3Z4nLBLBjURLtumOKkpNHAAMHpoA8xQXdFKBfs5vUleyMSQ20MsdPcM HyG/07tGdZ9wreMGK8A/hJC1SC4Wn1j2GmscS9SAkEvPHlYH481w+/OpeZQZ/8SlS6BP 4FuqaQY2fFM7McDZCcE0xqmo2JKU8IIvmtCpg= 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=ttGnYcamR0cFlhmYOSzuiu48CUxfLJ6Eyuv45erjiFc=; b=dtPGadFtNMb3NJ5Y3wIP5HIEbneAE7K2X6LOD7Mich0E4KlA2sq5N1vxkNr/efnv+T ztiaVgpCMzJgZjcF2PyGYb0c2Y8udxkdhH0EzmkeMN7UBY/+ijizZg+rACJ7P2oMMZ1x rVKO1U5zuZDQrs3UJO4mfx4k+tKZ3VPRaIRVfC0lRS0l9o8jVeI9O904twgby559Lq7p YP+9cA77jT+vlQ58hhBo3XyqerW5fp8ftdtMgzU4j7COiolB/UzGCmcyil45GWsEUBgX j38lM4E+r2ZRroNeinmwCOW5NUuaL0D8TXJeSwtZjyv03Ex34/A78RToQ5ZUFD5nketV tpIw== X-Gm-Message-State: APjAAAWrx2V9n4KsaEeOZBWGubL5yFTobi9cGaK7zk30O/bKQ4POnawi DQ4viRRH0ZCo6s1i2kUFIHdORZP8Qrc6pQuYtMqKsg== X-Received: by 2002:a17:906:33c7:: with SMTP id w7mr19363750eja.191.1553646023643; Tue, 26 Mar 2019 17:20:23 -0700 (PDT) MIME-Version: 1.0 References: <20190325195303.GA20629@hari-Inspiron-1545> <20190325161114.6a54bed0@gandalf.local.home> In-Reply-To: <20190325161114.6a54bed0@gandalf.local.home> From: Roopa Prabhu Date: Tue, 26 Mar 2019 17:20:12 -0700 Message-ID: Subject: Re: [PATCH] trace: events: fix error directive in argument list To: Steven Rostedt Cc: Hariprasad Kelam , mingo@redhat.com, David Miller , Linux Kernel Mailing List 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 On Mon, Mar 25, 2019 at 1:11 PM Steven Rostedt wrote: > > 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. yes, agree. I will send a follow up patch to remove the redundant pin6 assignment.