Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5507324ybe; Tue, 10 Sep 2019 04:59:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwo+UYrWFGCEQcilO2Om0PBd5OC2nqYqw3djFrrm+JOgkOR9EvNIUbx7FwYb59AiMtDuINl X-Received: by 2002:a17:906:eb92:: with SMTP id mh18mr24602698ejb.298.1568116773745; Tue, 10 Sep 2019 04:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568116773; cv=none; d=google.com; s=arc-20160816; b=Edj61yFreNX8c5RTsGGHG/J6N4hs/4n/iEYFPk7OCzhKBocEmACUD5UJdiPgBaVoer C/+8GChrwAaqJgjG4Gay7LEp3D7vsHrHEelMY7pxJxAGhMxvLQgutsh0RUpwoOsrYNvm B4st7h1UJz42EMoDkjLFySaRDEyb4zB6lnJMo5sY7XZsWzmCrBGnznSOHMRqx14M7P1c gwal+JRXVfgpxNI9AoJzUCXznfuGSTt3zfdy230WbUy6o627kseZukKSdfDiHPHXNEN0 50q/ygrF7FhmoTTNI+O8ocMUEldIPRNaHXl4U3+b8Xxk39EAGLQHaFVfbNSkeCQgkfb8 vZaQ== 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; bh=XevURw9117WHTqnYXmmUagEJuXchiohLiw5R++HFmLg=; b=gZKwdlSZBb29FSiOUKWlm1csklB4ynLXCt3d+5PH8gW9Iq58gVXq0AoP+8UVjSrMl/ 3Uf8rrX+Lv9zNFF6ornR+3DA06G7udLeCi9N/7qHE9OF3tBZSIfOmcRnM9PU9XGm+Bbu Mf3pazmnYmMzkcFR16S0lY1Cg+7IM6DGLDzf8rbsHmEuIQYGc6Qc0qRBKxxmKtHLkjKD i54QhdMeKW2JHgRf1KnZNO5mDoNk5QgPyl5ElhDuua+FIqI3VPwYe1BERi+7jc6Zrpcl cwdYLvAL03n+RzceC9O8LJL4pG9WVQstwA5SxRzHY6JAv9dcId03s9AeoHl+3xA+O82E MQsQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si8372979edp.306.2019.09.10.04.59.09; Tue, 10 Sep 2019 04:59:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727528AbfIJJLq (ORCPT + 99 others); Tue, 10 Sep 2019 05:11:46 -0400 Received: from 8bytes.org ([81.169.241.247]:53750 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfIJJLp (ORCPT ); Tue, 10 Sep 2019 05:11:45 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 9816B386; Tue, 10 Sep 2019 11:11:44 +0200 (CEST) Date: Tue, 10 Sep 2019 11:11:42 +0200 From: Joerg Roedel To: Adam Zerella Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu/amd: Fix sparse warnings Message-ID: <20190910091142.GA10821@8bytes.org> References: <20190907065812.19505-1-adam.zerella@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190907065812.19505-1-adam.zerella@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 07, 2019 at 04:58:12PM +1000, Adam Zerella wrote: > There was some simple Sparse warnings related to making some > signatures static. And unapplied both of your patches as they causes build failures: arch/x86/events/amd/iommu.o: In function `perf_iommu_read': iommu.c:(.text+0xba): undefined reference to `amd_iommu_pc_get_reg' arch/x86/events/amd/iommu.o: In function `perf_iommu_start': iommu.c:(.text+0x2df): undefined reference to `amd_iommu_pc_set_reg' iommu.c:(.text+0x324): undefined reference to `amd_iommu_pc_set_reg' iommu.c:(.text+0x36b): undefined reference to `amd_iommu_pc_set_reg' iommu.c:(.text+0x3b0): undefined reference to `amd_iommu_pc_set_reg' iommu.c:(.text+0x424): undefined reference to `amd_iommu_pc_set_reg' arch/x86/events/amd/iommu.o:iommu.c:(.text+0x4e4): more undefined references to `amd_iommu_pc_set_reg' follow arch/x86/events/amd/iommu.o: In function `amd_iommu_pc_init': iommu.c:(.init.text+0xc): undefined reference to `amd_iommu_pc_supported' iommu.c:(.init.text+0x131): undefined reference to `get_amd_iommu' iommu.c:(.init.text+0x140): undefined reference to `amd_iommu_pc_get_max_banks' iommu.c:(.init.text+0x14f): undefined reference to `amd_iommu_pc_get_max_counters' drivers/char/agp/intel-gtt.o: In function `intel_gmch_probe': intel-gtt.c:(.text+0x135d): undefined reference to `intel_iommu_gfx_mapped' drivers/iommu/amd_iommu_init.o: In function `state_next': amd_iommu_init.c:(.init.text+0x1ace): undefined reference to `amd_iommu_ops' drivers/iommu/dmar.o: In function `dmar_parse_one_drhd': dmar.c:(.text+0x125c): undefined reference to `intel_iommu_ops' drivers/gpu/drm/i915/intel_device_info.o: In function `intel_device_info_runtime_init': intel_device_info.c:(.text+0xd89): undefined reference to `intel_iommu_gfx_mapped' drivers/gpu/drm/i915/gem/i915_gem_stolen.o: In function `i915_gem_init_stolen': i915_gem_stolen.c:(.text+0x33a): undefined reference to `intel_iommu_gfx_mapped' drivers/gpu/drm/i915/i915_gem_gtt.o: In function `i915_ggtt_probe_hw': i915_gem_gtt.c:(.text+0x4f61): undefined reference to `intel_iommu_gfx_mapped' i915_gem_gtt.c:(.text+0x5127): undefined reference to `intel_iommu_gfx_mapped' i915_gem_gtt.c:(.text+0x52d1): undefined reference to `intel_iommu_gfx_mapped' drivers/gpu/drm/i915/i915_gem_gtt.o:i915_gem_gtt.c:(.text+0x53b3): more undefined references to `intel_iommu_gfx_mapped' follow Please compile-test your patches next time.