From patchwork Fri Jan 12 15:51:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 124363 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2211149qgn; Fri, 12 Jan 2018 07:51:34 -0800 (PST) X-Google-Smtp-Source: ACJfBouWxUkPtpyEx/UQB1qSgXdgOIiPOOJ1f1EqEo0i7VLnZADAi7FuH+9fSkG8NAM4F0RG+H6G X-Received: by 10.99.51.77 with SMTP id z74mr21149544pgz.324.1515772294645; Fri, 12 Jan 2018 07:51:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515772294; cv=none; d=google.com; s=arc-20160816; b=fmm5E9GO/3GkTdTPWkX/Bl20JOmlYz8595kPpRFqrOeBtYnRBlN1+ha+ziTTJtGJAG lhPp17TcpLv267dlcojnUtxJm6xd1JzQ9usHVyaHrLWkvSv842hnTrEv2VwUabuYvTX2 0da7ajn+Vl/Q8OSlJPvXtMqOVATEBlmTYObrpLbyZJvlaSNXpXeqhLwBlGPLBeOfYt9R GZf5ToPM0BT3kacgNYwPW8+KA/BIqgHJgF7rBZqyZ1SIKcDf+rBMpkOBQi1P+n7ZwtJg AABUw4kHosXx98nTbMNr+UYvld9mThcWIaRmDeO/Ar4iOXQkQYAPL2MdD0tJr1BHkozV GotQ== 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 :arc-authentication-results; bh=F3FCI/uIpo6T2GkRyaxPOiaJi7jl2JKAFjjoYrXeBp0=; b=L1Br8wGth76RWEyJTgbH4u5YYgRilSZEbJOVnOsvz3BHQAbwG9ETNqczrBCucRIk0o 5YvF7hJGx6IXVRqAYmp3oAFQywHpobeOvO83fcQkKo1swvvpcPoziuCwmsrFTIDnw0eV DeW7Io1UljSSODkwPjVMiACHOZYNDbdiiI3E1F7Qkx39gpPLIc81W5jo2uq06y7ts6dT YOg2YRfnCVP4RJ9HQwloMNmCaHGvMIvvpngbtN8Wkj708iQfLutUc43bLmT+vzGAYbXK dowHOUJervkto65bpDzh0c5XQdLgXjkqHz4HS8ol8Ey7LWTCPgbZiXRP/HThxrqYs6i4 3DLg== 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 l14si13845116pgc.42.2018.01.12.07.51.33; Fri, 12 Jan 2018 07:51:34 -0800 (PST) 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 S934181AbeALPvc (ORCPT + 28 others); Fri, 12 Jan 2018 10:51:32 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:59722 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933997AbeALPva (ORCPT ); Fri, 12 Jan 2018 10:51:30 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MSa4i-1eSILx1om4-00RXea; Fri, 12 Jan 2018 16:51:25 +0100 From: Arnd Bergmann To: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Greg Kroah-Hartman Cc: Arnd Bergmann , devel@linuxdriverproject.org, linux-kernel@vger.kernel.org Subject: [PATCH] uio_hv_generic: fix new type mismatch warnings Date: Fri, 12 Jan 2018 16:51:14 +0100 Message-Id: <20180112155123.3745347-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:vVS9Ax8wb0ZtQq3mshQZz4crYqOPCCe+fnNm1tyA3Xo6lWEpgpT 4BTxiNuF02ZFUfhJVBZxhQoJmCGWHBoHJ0eiwHOLGFerRGLyrxwmicnAcTxmpU+VEG7BJfi ErSh/t1nQKfUdimz0haPo92KSEI5IdEtQRCY+MbpfAoTnFlFXsTpm8cH3jZ+HTl/NnPDkwD /njFzeOrFvL/5zVytPogA== X-UI-Out-Filterresults: notjunk:1; V01:K0:/NhGIURbW9U=:8gj550jHsTMcxngTjQekF+ MQqCLdGh9TrZbXwifAihCo/V18+DlO9L77NYchteX1RKqYvhCgvYk8yVa7yngIs2ZkcHHK1om QC5eY1VwVqM+t5iT1P5sMs0ZVv3iboyWpqHPC0c6cRUSSVxOzHpCEYLYgtwfWZGmF5veFyA8Q Lsx69K9QDQQDibRuFjorTIwX6nvucnwyslZz67Nn8fOR9zhFraXeONwpaXOspi739yaniLy1p yvYwyjdD67ZoKWWoLkyRtCrqo13byv4hzKguMlyEOZ+e7/NCCGSRRQw+TzWD9ltI0W0mXvlEb szreEHoDtivTS0qhPmG5+54o3E0z/u97Y6frnynb+mRzWz75IeoKf/VUTbQ+0JHXnyhw878KQ rwwOL2eRS4HACxutHyvRVfl67lU9Jd05XgKRE3057HEcRSx+VNgp839aFdJl5nSgPS9Ur+Szj MnmgiDOidbwEYZGimUmCZ1Ktz4Bsqvou2jufZ+zZyF0piydsDjze9aZw0hKiRbK8flvsFvV68 jIqM5XF/1dTMhISnbxoGmVBa/QWmzpbM7JvDLEVUXZQiCcOYp2Ogc6RzK18XbX4k8oG93FShr g6xZIQGfL1xh+9hyuUxU7490bin7Z+TMCllyrltyLJ3A+K5i9FOt0jX1JoNSVlM8C1OTTjAzl LvOGr8j7r+mix3D3rfG+mI9rCXqJbawovFXC8MZvMLJI7ZT9HtE8lkLqe2ri/ldQJpqse0rCM UbnQIeBHw2Sl2G2/Sxz2GZJzsQL5JgimYb+zrw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit 72d146578950 ("uio_hv_generic: fix type mismatch warnings"), I addressed some warnings that show up with CONFIG_X86_PAE, now a new change has added more of the same: drivers/uio/uio_hv_generic.c: In function 'hv_uio_probe': drivers/uio/uio_hv_generic.c:205:5: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] drivers/uio/uio_hv_generic.c:225:5: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] The fix is the same as before, casting to uintptr_t as an intermediate. Fixes: e7d214642a19 ("uio_hv_generic: create send and receive buffers") Signed-off-by: Arnd Bergmann --- drivers/uio/uio_hv_generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c index 787598ad933d..8ca549032c27 100644 --- a/drivers/uio/uio_hv_generic.c +++ b/drivers/uio/uio_hv_generic.c @@ -202,7 +202,7 @@ hv_uio_probe(struct hv_device *dev, "recv:%u", pdata->recv_gpadl); pdata->info.mem[RECV_BUF_MAP].name = pdata->recv_name; pdata->info.mem[RECV_BUF_MAP].addr - = (phys_addr_t)pdata->recv_buf; + = (uintptr_t)pdata->recv_buf; pdata->info.mem[RECV_BUF_MAP].size = RECV_BUFFER_SIZE; pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL; @@ -222,7 +222,7 @@ hv_uio_probe(struct hv_device *dev, "send:%u", pdata->send_gpadl); pdata->info.mem[SEND_BUF_MAP].name = pdata->send_name; pdata->info.mem[SEND_BUF_MAP].addr - = (phys_addr_t)pdata->send_buf; + = (uintptr_t)pdata->send_buf; pdata->info.mem[SEND_BUF_MAP].size = SEND_BUFFER_SIZE; pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL;