Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5971707ybi; Wed, 12 Jun 2019 11:37:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR4miahlENz3moTe76lqkpkSXpcwfDst0hwtyeM3SaIl6AArRVZbIR1XvmA+GqcfjqhEeQ X-Received: by 2002:a17:90a:af8b:: with SMTP id w11mr577381pjq.135.1560364660041; Wed, 12 Jun 2019 11:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560364660; cv=none; d=google.com; s=arc-20160816; b=GQETZwb38tW5/lRg2z4FPNLqkudPepcqCRtpfgMzD9uF2tBmgyLY6GLFD3e8BgTRLA 1RpO31Up26y7uVi+QCQfTYO29a4uB36SZ0mAlPv6J19fW3QW63TygU9OuNqYc1ilhZhU usoZg5MmP7kQCDatmM3pI3gg9hOKhRQRh1PZh6kgzTfg4LivRHWpWTYEzIdP1I3cMyZu jmyWWNCof3E/TXfvVE8vPh//Km2dfkuf/H3cH32rHlHtekh32137cSMh7ZCLbgODfx1x A8nSSiy9lUA6tcl7Yk2Mg2l1JFXh7iNA0RqsGV2GPN1hWLVpBIzLA06H7FIaD7d5Hjlu dMRw== 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:to :from:date:dkim-signature; bh=DXItd4QKKcMyTRkmGL6RVgljzEiWFbcFIOw7FfH00GY=; b=Mfttl5+ycAeN/lQxdzShCpvesPXxnVywhwKZY9sTJCl8WGgjNiYbtDfBMPvjjpn5Hr MgBlzLPMcImqonH5Q58B+VWzpq7mApKEigviYDOtAcftcb7ehg+s8Q7wkMqZO3ttzOSZ WBDdD+pPLjZ7WERDp7mGEjVKItSmgGmy9IcC9TYd/bhBeYQRi827BLCZfU4k+1B+Bmv9 ksh4MTbTXI14/YxdaFcpxXnHQUHjNgydLJ7ctbLcu2eolICBoD+wJCQsbW+VK1iZ1zo4 daamQClxb2KO7kNqeHy9bzsxNdZZ5PW6VHNPC1g6voPaD/LfjkdQxq/WtBHRxo9TLFaE wF1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V1ykHWXu; 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 w11si493263pjq.17.2019.06.12.11.37.24; Wed, 12 Jun 2019 11:37:40 -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=V1ykHWXu; 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 S1727102AbfFLShE (ORCPT + 99 others); Wed, 12 Jun 2019 14:37:04 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39833 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfFLShC (ORCPT ); Wed, 12 Jun 2019 14:37:02 -0400 Received: by mail-pf1-f196.google.com with SMTP id j2so10179381pfe.6 for ; Wed, 12 Jun 2019 11:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DXItd4QKKcMyTRkmGL6RVgljzEiWFbcFIOw7FfH00GY=; b=V1ykHWXuVctHxVCMZR31Lhf3ekEW5RMkXg6I05eaOkPCMQsvEUB1GVZaePVtkB/AkR bWSJpUjVq7yRTAKhi/PaorCVoSomgKPHQvsWCaE+dw/19ArzU5MGJLobYMvq1YBz3bCg CaZVseF+pNS62h+aqbO+KjLTbqJwEe1uqAAfLm39CR4/eXxMhNmm0pN471EUwlAs+qhh leT90bOaEEsVRv/62wmo+FKl1YZoiEhxSA+DsweI4ZqY6+So33HOn5cK68e3IKzNWBAp JcPEAhEDlISCS4ivdeUEp8kSAGLMQzJI513eyyHD1dHe8C150IH+AaURoTChf1U7GI+R M53A== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DXItd4QKKcMyTRkmGL6RVgljzEiWFbcFIOw7FfH00GY=; b=p7KopVlq8LrqXTJgT9hXWY1KWqaZnVgvSWbQkMjHvIxSpXtwaHk8GJv07Zp46OdDXK diwrBmaDJ4FNEUmxTUvCw3odpC7VLO2UtAWEBFOyCHhliwKHV1X1sRhGKLlXrxHm44ZA s4Yojdb1TTyEEl4tiYU0e1cVN2ifJrzRni6a5bblIuGagJSIkgc21gDWhIBsIvS6Eh/3 Vg0SJoI9Qopvf/aa8VDnh1w6uIxJca8STBOckO4qIshOJHBffYUYHJtgrlSpKAii/M7i dUQYdggL3+rhljwKpUaOXTHYVRdKRXP03YiaTkEtqqbbAxEzWLzb8LUejdn+sT73c0uB U2Rw== X-Gm-Message-State: APjAAAVY2P0Bh43tEbz+aMoQnq+Gqsoe7wwlNJeP+4DCqIG3khgxWeTi P6Ge/mV6Y+jXR6CepP3wQ+c= X-Received: by 2002:a62:4d04:: with SMTP id a4mr87702880pfb.177.1560364621102; Wed, 12 Jun 2019 11:37:01 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id 3sm250910pfp.114.2019.06.12.11.36.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jun 2019 11:37:00 -0700 (PDT) Date: Thu, 13 Jun 2019 00:06:55 +0530 From: Hariprasad Kelam To: Zhenyu Wang , Zhi Wang , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/i915/gvt: remove duplicate entry of trace Message-ID: <20190612183654.GA16750@hari-Inspiron-1545> References: <20190526075633.GA9245@hari-Inspiron-1545> <20190612032236.GH9684@zhen-hp.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612032236.GH9684@zhen-hp.sh.intel.com> 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 On Wed, Jun 12, 2019 at 11:22:36AM +0800, Zhenyu Wang wrote: > On 2019.05.26 13:26:33 +0530, Hariprasad Kelam wrote: > > Remove duplicate include of trace.h > > > > Issue identified by includecheck > > > > Signed-off-by: Hariprasad Kelam > > --- > > drivers/gpu/drm/i915/gvt/trace_points.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/i915/gvt/trace_points.c b/drivers/gpu/drm/i915/gvt/trace_points.c > > index a3deed69..569f5e3 100644 > > --- a/drivers/gpu/drm/i915/gvt/trace_points.c > > +++ b/drivers/gpu/drm/i915/gvt/trace_points.c > > @@ -32,5 +32,4 @@ > > > > #ifndef __CHECKER__ > > #define CREATE_TRACE_POINTS > > -#include "trace.h" > > #endif > > -- > > This actually caused build issue like > ERROR: "__tracepoint_gma_index" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_render_mmio" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_gvt_command" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_spt_guest_change" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_gma_translate" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_spt_alloc" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_spt_change" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_oos_sync" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_write_ir" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_propagate_event" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_inject_msi" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_spt_refcount" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_spt_free" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__tracepoint_oos_change" [drivers/gpu/drm/i915/i915.ko] undefined! > scripts/Makefile.modpost:91: recipe for target '__modpost' failed > > Looks we need fix like below. > > Subject: [PATCH] drm/i915/gvt: remove duplicate include of trace.h > > This removes duplicate include of trace.h. Found by Hariprasad Kelam > with includecheck. > > Reported-by: Hariprasad Kelam > Signed-off-by: Zhenyu Wang > --- > drivers/gpu/drm/i915/gvt/trace_points.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/gvt/trace_points.c b/drivers/gpu/drm/i915/gvt/trace_points.c > index a3deed692b9c..fe552e877e09 100644 > --- a/drivers/gpu/drm/i915/gvt/trace_points.c > +++ b/drivers/gpu/drm/i915/gvt/trace_points.c > @@ -28,8 +28,6 @@ > * > */ > > -#include "trace.h" > - > #ifndef __CHECKER__ > #define CREATE_TRACE_POINTS > #include "trace.h" > -- > 2.20.1 > > -- > Open Source Technology Center, Intel ltd. > > $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 Hi Zhenyu Wang, Thanks for correcting the patch. It seems we should first define CREATE_TRACE_POINTS and include trace.h as per documentation. Thanks, Hariprasad k