Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2005200ybb; Fri, 29 Mar 2019 16:25:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiCYxkf2/lYEth+92fJhphOGsJAkagEx9sMZxtpTft5hT6N//m1ODxnSM80ZplQw0H/V6y X-Received: by 2002:a17:902:9a43:: with SMTP id x3mr50830445plv.173.1553901919790; Fri, 29 Mar 2019 16:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553901919; cv=none; d=google.com; s=arc-20160816; b=sySiAcms9Qg4nF8bM1etPpNIcdQ6kQCu0yDs7JqL6MltTfFI/22+phBBkBOQMqpv4d D+mK4M0DLctZbT0R428pmM9FCJ16EZPZYPkTo/lFQan86E6z1qoWeZkdFWDhLxSHZa/E oRPWU+Z7DSznXH9Rh5HbYdFTe6/VQ9dNOdbVPjD9uPvPvE4El/6Ze04lpTASrXPwD4xw f88FEpKotxfdLPkVlRbq0G+gDdLsgmK8EbPvYwmGmo11raIrXWJDr7/Y/cU6YNRhwH35 k7hgBDDeqs1hvh4a7XtJuosuvPSew6X1lomasTZ6a7k6pksqTVF/IuT+Q3fxNTdFIqtT 80DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zaAIfx8A2P7eqRpChzRBlxwPBjwz7FUntPJf2jPzeZs=; b=oII4th5DscspjfH39k9ozQJZjrIu7SMOy7pBsBjcFpx8Bd0tIPtQNik0ioE/IBTVnT 1XfkhN89qqWU1Y+FvwuSt6BNRW50Q1HlC27HXB7d4vqhRkEucT3zykUIqRvpaxU83fnD n0Qkpah7SIpHo5a8h3Z0g/5Tk9ZmAHHxj9BKjMyHB7r8YhXX+LRpxkeLqoKD13xU8VEf qvTtPjHQfPrWxtY0c++83FjFgMowuaHg5UejTvBRApg64tyCP0Wf7Ri8yknmd8nd9b8Q Me4+KszAVl8SqNw/ag3k5rmChaCJm1pUoLjrdqFObnU1glvy0ipWebgHNrOo65/J/V6Z j4Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hS5pceNi; 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 l91si2951860plb.336.2019.03.29.16.24.51; Fri, 29 Mar 2019 16:25:19 -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=hS5pceNi; 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 S1730044AbfC2XWV (ORCPT + 99 others); Fri, 29 Mar 2019 19:22:21 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:33618 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729932AbfC2XWV (ORCPT ); Fri, 29 Mar 2019 19:22:21 -0400 Received: by mail-ed1-f66.google.com with SMTP id q3so3445958edg.0 for ; Fri, 29 Mar 2019 16:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zaAIfx8A2P7eqRpChzRBlxwPBjwz7FUntPJf2jPzeZs=; b=hS5pceNiQuq6YEHwYPmqHeX3U69gqhf3OHng+zS+43DQ+/w2LiHRtGXgMlNPaBdgaL Rq6VgQMuyShGRhOvjKbCE5+J9JAj8h+Y3b1m4WEpQWr+nsfrfYiw1k07wP4ko1SlV+CI ksHJyC/gpABljKVP1yaZkeX0ieY5P9aZ6xyGtRiQxYVY+z/KydWRvPP1fvg8BTZnuKhw 9npuHzuVBdOwJwMYgQvfcmEXEEI55p2PoONLxl3SC5YoprgWNY8sVXDSM/2fMMs1EBrN DfQzy9A6Cdhu4R3H3pDIX24P08UWIoH1VOgp49ORoZYkEX8oQSNq9pWsCM33qNTcOkg0 sVhg== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zaAIfx8A2P7eqRpChzRBlxwPBjwz7FUntPJf2jPzeZs=; b=TNt5Ijt4TcRm06OCw76nBwMIi1eFiwkdgCmJu3RZJXZ5YI5J6JjDY9GCV6slngxum8 OuSycxpvVIc/N5XhW4CMjY0B96E3YvSCt+TH7bHNi50f+1FmOwJVkO2kN4RuIC77w04P a57bUvFXw24mNOgmn/Cs51UKUur0FrYASf95TgrdH/xuxz/5XJFXCaAs9CFQ+L1okO99 y38+69+Fwg0jLaDVNSI1qq55qQxOAJGthaWi8EbkUsrwrLxdTM1rTpL7owdgfp+17Lkd XE0ZgoMPD8bU0qVmGD7XAnBrbfMEu3DgN5wguQNP7AhhSAy19SpXeuvf694P+UOEOpNv YiGw== X-Gm-Message-State: APjAAAXHXUfzdgPq3YNvg6VtVFbiDCiKzUy5i6rsCZL+2VTiia4mRJdU TzyWQeSeamNodRWcnfygMdCnar6v X-Received: by 2002:a17:906:48c8:: with SMTP id d8mr28629269ejt.208.1553901739528; Fri, 29 Mar 2019 16:22:19 -0700 (PDT) Received: from ltop.local ([2a02:a03f:4079:2f00:a405:18aa:2541:8cdc]) by smtp.gmail.com with ESMTPSA id y9sm581482ejj.60.2019.03.29.16.22.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 16:22:18 -0700 (PDT) Date: Sat, 30 Mar 2019 00:22:17 +0100 From: Luc Van Oostenryck To: Hariprasad Kelam Cc: rostedt@goodmis.org, 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: <20190329232215.itsvo3jj3lu4gr7k@ltop.local> References: <20190325195303.GA20629@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190325195303.GA20629@hari-Inspiron-1545> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 01:23:03AM +0530, Hariprasad Kelam wrote: > 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 IS_ENABLED(CONFIG_IPV6) > if (n->tbl->family == AF_INET6) { > to if (IS_ENABLED(CONFIG_IPV6) && n->tbl->family == AF_INET6) > > and removes reassigning pin6 pointer when IPV6 is enabled > > Signed-off-by: Hariprasad Kelam > --- > 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; Why removing the line wheer pin6 is assigned? IMO, the patch should be: -#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; > @@ -147,15 +143,10 @@ DECLARE_EVENT_CLASS(neigh__update, > else > *p32 = 0; > > -#if IS_ENABLED(CONFIG_IPV6) > - if (n->tbl->family == AF_INET6) { > - pin6 = (struct in6_addr *)__entry->primary_key6; Same here. -- Luc Van Oostenryck