Received: by 10.192.165.148 with SMTP id m20csp1318329imm; Wed, 25 Apr 2018 16:45:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqSscHRuNynKx9v0M7599Yo8WtcbUHdXbzFs9GBFFgain8oPaqqhssZHsjrgnwj2OOTIBDL X-Received: by 10.98.18.17 with SMTP id a17mr3843611pfj.104.1524699936051; Wed, 25 Apr 2018 16:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524699936; cv=none; d=google.com; s=arc-20160816; b=JIMBV9UC8xq1bPxuEToZ/mlxFF3oWntzNni5WlAFzbv0qmIYr4dTvXmRXF+kBnK8Ap WQjDfDwHXQeFjfy0988d2bS4AjLZaPhCUyyJnXGfxzXLuW54CSzrrzJQd8wLHLjb2IEf drXsPR/m9h5r+svyZfT28MI1Y8Bn3x8ECzUru90X0Stxay2PvzyFVj4vYQ7rZcIdfj52 SFlmbrmWmOe0lAwDUn+DXVleqe8yFc2bLE9fiYWwfDnlPHB0TPxxFnOyVpuZSeWr9r7B lCaq1XadNXe46831WZXqpzibtI0te7imsF+3rIeYnXU5GXvH2TSSm7U1Cnc06kkdF+Ll RFKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=OjfAoNnt1SF0q6uraQMp8jgzYNG/3Ezi55gWZRERlbA=; b=pPVqLUa0axnIfhdzZuOJxYcx2a+aG6MA6p4u+SwF0cjisSXRgnYmAqLtVIrTlCHIiY j0vvTdT+i9Y5I20TF4DKlcMMWGxXZWBTw9Zaz1imXFMhONq0RRtqSSDLnwHJT602wJE2 JobBQnSlHTo/52o49swkB4AX35ZW4ZVAAr8UWMVQffPw1phYzs+fcgD/zrxXJJXAfg3s S7mbwZy77Exjb2mZx81vlXJ5DOb6HO3Nkv4+ngrEVbZvJXUUggCcyc+M6OClw5CaVObn tgRclv7uIN+NcmHHNUM8l9emNu1dkameXRI7R2HDlzM9AnOJDeA3GVVNX52gf/U25MF+ niqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=l4EPCpFe; dkim=pass header.i=@codeaurora.org header.s=default header.b=CA7pUt53; 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 y64si1484245pfj.239.2018.04.25.16.45.21; Wed, 25 Apr 2018 16:45:36 -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=@codeaurora.org header.s=default header.b=l4EPCpFe; dkim=pass header.i=@codeaurora.org header.s=default header.b=CA7pUt53; 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 S1754173AbeDYXnB (ORCPT + 99 others); Wed, 25 Apr 2018 19:43:01 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33382 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753349AbeDYXm4 (ORCPT ); Wed, 25 Apr 2018 19:42:56 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 70F3260227; Wed, 25 Apr 2018 23:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524699776; bh=YY9ACRngjpjEvMXn233Ow7sPW+wNtzrBdWd+GlYXZzY=; h=From:To:Cc:Subject:Date:From; b=l4EPCpFel2aT51/N0qBrgmf/5SZLZnu3r65qa8ldLBC2pilS1cIP0ITY2GFa4EN7C t90+ulmYvtxT0Q/UdzQvasXcDr+m+3bldyZvxhtRAdUK3r9qnJ7oZIA++IXl7PuoND dtWv/wR4RQVmsKDmgn5ycmaPqwez6DuF26kj/jzE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from rishabhb-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rishabhb@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7C13C60264; Wed, 25 Apr 2018 23:42:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524699775; bh=YY9ACRngjpjEvMXn233Ow7sPW+wNtzrBdWd+GlYXZzY=; h=From:To:Cc:Subject:Date:From; b=CA7pUt534cB1E3nk31btH5dpoIU+gL7Otm0g/C066DsfIXC6OnjJvQ+KbIMnmtZy1 TRjJk72UQhVf+XWGq3Ys/3JremrehpJmaLWEJ2gJNT7S4zmZLum8wgsXPEcmqDLVfO 77VFN+eBLfAJDBUz1Pt5hxvyrJkjgfsI2sG+P4QY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7C13C60264 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rishabhb@codeaurora.org From: Rishabh Bhatnagar To: rostedt@goodmis.org, abderrahmane.benbachir@polymtl.ca Cc: linux-kernel@vger.kernel.org, tsoni@codeaurora.org, ckadabi@codeaurora.org, Rishabh Bhatnagar Subject: [PATCH] trace: initcall: Ordered comparison of function pointers Date: Wed, 25 Apr 2018 16:42:35 -0700 Message-Id: <1524699755-29388-1-git-send-email-rishabhb@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using initcall_t in the __field macro generates the follwing warning with clang version 6.0: include/trace/events/initcall.h:34:3: warning: ordered comparison of function pointers ('initcall_t' (aka 'int (*)(void)') and 'initcall_t') __field macro expands to __field_ext macro which does is_signed_type check on the type argument. Since initcall_t is defined as a function pointer, using it as the type in the __field macro, leads to an ordered comparison of function pointer warning, inside the check. Using __field_struct macro avoids the issue. Signed-off-by: Rishabh Bhatnagar --- include/trace/events/initcall.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/events/initcall.h b/include/trace/events/initcall.h index 8d6cf10..46f5f7c 100644 --- a/include/trace/events/initcall.h +++ b/include/trace/events/initcall.h @@ -31,7 +31,7 @@ TP_ARGS(func), TP_STRUCT__entry( - __field(initcall_t, func) + __field_struct(initcall_t, func) ), TP_fast_assign( @@ -48,7 +48,7 @@ TP_ARGS(func, ret), TP_STRUCT__entry( - __field(initcall_t, func) + __field_struct(initcall_t, func) __field(int, ret) ), -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project