Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4561166img; Tue, 26 Mar 2019 11:51:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJcjSecxtPPcknnMaMUybCCLtlbKVkbVxKBhPmNE1KksyJCbkbdd6Dy6LDfmJU4HNOiIaI X-Received: by 2002:aa7:80c8:: with SMTP id a8mr31804710pfn.193.1553626299266; Tue, 26 Mar 2019 11:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553626299; cv=none; d=google.com; s=arc-20160816; b=bLuaQek+hlZpLCJkj2bqMkkdUtGViTxVCMGaxXTQ3bMP4aV0k2WjCPUIVWAYqdOqzd sNCL54XsyoX/GqSpVCl1g4fgsgCC6f/R1QqL4n/izj7LOBIk7ELipK7i7hsjmjdfmfag Vdx9nKSKKzDhjx5KpxPgUopM0eFA/36MW+NWAbjWidGyU/k7zJXYs9AktZx1C3aD1T8K TSMWJiMZzHb4qoIlzFu9EvxkuP7KqucAhdseAKWBGP5AshbT94q4cR/3v9b7X//RcDde FWWZ47OiG34IWhpHqRdVbmUgRYIlL0zGOrENHv0+m9jwvMWMmqstdsMzNzK/2QYySvEc a/ew== 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=9F4IeB6jf+9vw5lH/4HiJ40P7k4RBB1mw/tnqn6qjUo=; b=G9hRAykgFWREDFRgYZoktIqVyGRMyXNUqKmfD1Ta1/11wyHDAgzddQAqrtIfkM4GQY cn22mzbxKh/CvOtAEmNpgVCUg7rY9mkKQtpyd39zwIYRRwrU4oJ++glx+da0/qO+Yhh+ iYHKliWMioVUWs2gN/fUKichAulYHpO2/GPHqa4kqQA2NzfPT0usGYJQ2DaSyqHd0ElK qaHh+NoEn4aD7ljj/ToO/wjt3C4rvPQ65drBbgtKXUEFXDthMJL/m/pns9Rpnq9370ex B0EJpTYXUfHnw8fr3hD6ZUERoPKUoTEP2ZHch5jmPhDzm+6oAfkkpcNLaE3nAQasbzIv O0EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mUaZgiQi; 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 a5si16094791pgt.393.2019.03.26.11.51.23; Tue, 26 Mar 2019 11:51:39 -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=mUaZgiQi; 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 S1732620AbfCZSuT (ORCPT + 99 others); Tue, 26 Mar 2019 14:50:19 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:47032 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731467AbfCZSuS (ORCPT ); Tue, 26 Mar 2019 14:50:18 -0400 Received: by mail-pg1-f194.google.com with SMTP id q1so500750pgv.13 for ; Tue, 26 Mar 2019 11:50:18 -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=9F4IeB6jf+9vw5lH/4HiJ40P7k4RBB1mw/tnqn6qjUo=; b=mUaZgiQiWbGA7cBUXtQl2EW2DuZKr6j9HiZ9I7vnhE0RNTwd0jApavR1VV7ims8RfP 7qAy0txFG0oBuSeGvS6NZOg0Pb3uFQ0non85L/PK3P15rJz217yyOcyg8JDnWdexK594 5zK9gYh2LKZmaIryx9Hs3GpW2VqHDUcSNE633pX+WDXPVvZFQlpP46Bk8wMf86kSiNbf JHQZvePlccqmmtkIG0WknCWCctKlFEz4LlyKWzFEJViGtKQC1YnmXc3ZWoFC45a5JNND 8E2ByKeT/IS5TEubA59aZdtki8jaBcGcW0Hu8d8pt1ksbRAPfkQBdPQATrnTKGdhDeof OXJA== 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=9F4IeB6jf+9vw5lH/4HiJ40P7k4RBB1mw/tnqn6qjUo=; b=JyrMagJyuKd4NTre/GQTD5yqbxZmoGUJFrV5IyE7M3DGp1WPthN+cK/kc9L96ftPvG QXuvzvPjbNy9D41mfU5MrzcUrLVknF51BlyWtr0ZEsStotkQ3EcMWHImq3dcXSYApSyy KdkBeAzJ8uDeyoRb8ADcXw0jeh0vmwEp8rI2r8oO8U/0R9v8mFS9gseqVBlFlte2zCn7 doUTJATM4kC55fOJYPnf93nhqjOHWV4K0NudfP9zf0oH74vJgpaODO+jQSQBsAz1VsC4 0EG0oUINXGhWex80CqZ+g1qsOWwZtrR5iYbMG/6nn8sDbTaXW6T1jLQ2J4HlHAUas/c9 N2AQ== X-Gm-Message-State: APjAAAVaqqEcf/MhDWJDmyDwtdQxjQKGCYsdeFcc+SeVIXmVZ9o9xUC9 oJr4ZuYeEX6fxg9zehWVEGo= X-Received: by 2002:a65:6201:: with SMTP id d1mr30870583pgv.382.1553626218276; Tue, 26 Mar 2019 11:50:18 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.91.90]) by smtp.gmail.com with ESMTPSA id q207sm30131495pgq.88.2019.03.26.11.50.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 11:50:17 -0700 (PDT) Date: Wed, 27 Mar 2019 00:20:12 +0530 From: Hariprasad Kelam To: rostedt@goodmis.org, mingo@redhat.com, laoar.shao@gmail.com, davem@davemloft.net, linux-kernel@vger.kernel.org Subject: [PATCH] net: trace : fix error directive in argument list Message-ID: <20190326185012.GA7233@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/sock.h:177:1: error: directive in argument list ./include/trace/events/sock.h:184:1: error: directive in argument list ./include/trace/events/sock.h:177:1: error: directive in argument list ./include/trace/events/sock.h:184:1: error: directive in argument list Changed below two lines to signle line to avoid sparse error -#if IS_ENABLED(CONFIG_IPV6) - if (sk->sk_family == AF_INET6) { to if (IS_ENABLED(CONFIG_IPV6) && sk->sk_family == AF_INET6) { Moved address assigning of pin6 struct outside the loop. Signed-off-by: Hariprasad Kelam --- include/trace/events/sock.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/trace/events/sock.h b/include/trace/events/sock.h index a0c4b8a..22bee26 100644 --- a/include/trace/events/sock.h +++ b/include/trace/events/sock.h @@ -174,16 +174,14 @@ TRACE_EVENT(inet_sock_set_state, p32 = (__be32 *) __entry->daddr; *p32 = inet->inet_daddr; -#if IS_ENABLED(CONFIG_IPV6) - if (sk->sk_family == AF_INET6) { - pin6 = (struct in6_addr *)__entry->saddr_v6; + pin6 = (struct in6_addr *)__entry->saddr_v6; + + if (IS_ENABLED(CONFIG_IPV6) && sk->sk_family == AF_INET6) { *pin6 = sk->sk_v6_rcv_saddr; pin6 = (struct in6_addr *)__entry->daddr_v6; *pin6 = sk->sk_v6_daddr; } else -#endif { - pin6 = (struct in6_addr *)__entry->saddr_v6; ipv6_addr_set_v4mapped(inet->inet_saddr, pin6); pin6 = (struct in6_addr *)__entry->daddr_v6; ipv6_addr_set_v4mapped(inet->inet_daddr, pin6); -- 2.7.4