Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp98085img; Thu, 21 Mar 2019 15:04:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKIs0aCJxWNmYNH5fJ6o8XCJ0zIuIoOIGBzU8ZomtID1NzKNR4mahYJdH0sbgqY22omHsB X-Received: by 2002:aa7:8609:: with SMTP id p9mr5657398pfn.166.1553205873871; Thu, 21 Mar 2019 15:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553205873; cv=none; d=google.com; s=arc-20160816; b=AfO77SPZAfeQV8EPV3MueXi0g8WJOLB68uu4yDweHMV2qIq4Icx6YmaQYGGRgCVmI0 eXE9wxukmeIvrZAL4Vxw7FXX89h1uXYKwXkoCgtmv+Tqr/4r9kuxP/0jRCYcvb2G8G2j Q+4WeMghtm28TxiJyKjZNadAin9Up5kbML/PJz4cuunYxeD/YWEujDDFkBux4U75spGM 6cXkr0N1z5Zct2nNPUEH2M5OfWfnawNOk8n9H4y8bN2eZ+B29FZYJEbYGXvOXLTT3fwE kRFtnHLX3M5QxsDt5nKNPCk65RZj31zDftkA/QLVnMHw8z0Zk1T71HjCoiRUutzuq2bF +uWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5lp/c2QXfDO8oxHHnHdfiJ8pLRnog5kACIGNJZK2xLw=; b=EPHuV88Dvupa/zUI5GHRKlmPe2FQ66DVci/X705gS0ol8LU/dYTyEgq1kHrjKxaKpP zW0Qqx2bV2mqc8m10UhLndhKiaNWGYH7FAmKysowsKavgeHwZX9XHq44YdbssZY/j9xG 3gkWHa+rZtHFWn7T1dwlJuc1FtPCqVTk28QzQKAtGi1/QrkAbjOOV9eIsf++9dUVHsjh pSqeJbu/WF37Cvqq83MoQDWdNN+iGr5Zmjo4vDegjb8l2Tal+aH8TGlD6KwoYAEjcrni 2taSGr6t1mN9xqDLsK2hSTCqBlpU+X8hJVjdCXyShbjtHfisMKKtJtBk8t4gisVVBkdG om+w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n19si4616843pgj.426.2019.03.21.15.04.15; Thu, 21 Mar 2019 15:04: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727558AbfCUWB2 (ORCPT + 99 others); Thu, 21 Mar 2019 18:01:28 -0400 Received: from mga06.intel.com ([134.134.136.31]:53197 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727203AbfCUWA0 (ORCPT ); Thu, 21 Mar 2019 18:00:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 15:00:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,254,1549958400"; d="scan'208";a="216357239" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga001.jf.intel.com with ESMTP; 21 Mar 2019 15:00:23 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 3901E30214C; Thu, 21 Mar 2019 15:00:23 -0700 (PDT) From: Andi Kleen To: x86@kernel.org Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Andi Kleen , Yong.Zhao@amd.com, alexander.deucher@amd.com, airlied@redhat.com Subject: [PATCH 07/17] amdkfd: Fix extern declaration Date: Thu, 21 Mar 2019 14:59:59 -0700 Message-Id: <20190321220009.29334-8-andi@firstfloor.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321220009.29334-1-andi@firstfloor.org> References: <20190321220009.29334-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen When you use bare externs outside include files, need to at least specify matching types. This fixes a type confusion between u16 and unsigned. Cc: Yong.Zhao@amd.com Cc: alexander.deucher@amd.com Cc: airlied@redhat.com Signed-off-by: Andi Kleen --- drivers/gpu/drm/amd/amdkfd/kfd_iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c b/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c index 01494752c36a..a8cba8d3714d 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c @@ -341,8 +341,8 @@ int kfd_iommu_resume(struct kfd_dev *kfd) } extern bool amd_iommu_pc_supported(void); -extern u8 amd_iommu_pc_get_max_banks(u16 devid); -extern u8 amd_iommu_pc_get_max_counters(u16 devid); +extern u8 amd_iommu_pc_get_max_banks(unsigned devid); +extern u8 amd_iommu_pc_get_max_counters(unsigned devid); /** kfd_iommu_add_perf_counters - Add IOMMU performance counters to topology */ -- 2.20.1