Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965103AbbLHPWy (ORCPT ); Tue, 8 Dec 2015 10:22:54 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:58910 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932665AbbLHPWw (ORCPT ); Tue, 8 Dec 2015 10:22:52 -0500 From: Arnd Bergmann To: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christoph Hellwig , Keith Busch , Jens Axboe Subject: [PATCH] nvme: fix another 32-bit build warning Date: Tue, 08 Dec 2015 16:22:17 +0100 Message-ID: <8914775.foiT9pJv7s@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:Bdd5AEWziNtnEHhip1KUgndlzK785s2xf3CsseHp2LYUg0xwRRu xsHfZt6zEhx2Bl+Cl8EdsHEzMHnxGEsn2perSZEKDkDpXZoY8JWnjGAT7RxAw3dQLqq5p+H UykTrQ4U1zgsaFaCHwmCASIk9rZLSKB7GIpk7bkYfi3ChtwqomKkGDTW+FZPhqU5iXS4ss3 M9gdP5PFimGzg5YV9PiSw== X-UI-Out-Filterresults: notjunk:1;V01:K0:1iupSgAvZNQ=:aH8Db0c+ztgh3o0T1lXTfG 14TjQy6pyzlJ/400IB7md3ubLEit/Vf/FKSialNxrFRr2UCX5Bshp9glpPTZ2BK/C8eGvejMP RWAllS9YhpnusGAsvUyFlL9NN7yvAzcYh1/yH1GrHz2KW4E8I8XcHqbOtVl9yU0meIh4DFrL4 ZMlHxogVQGFzPmIDlaXgNQmb9dMqJt7JZjgWWw1R9aFA+NSelA+LjxDnfR8/tvSNGfHCz1Rky gAb21T3s7G1LlyGtK5jfVo969c09ddlgIe1uI0th6AGX7cpNNFUjxKfVqj4H6JST7uPeTA5VD //mq2k+5WMaXyTHW8HSigpmoyCV/hha+SHA8QnR9C81+M9KtoysvDD7u5RNX4hL1CTjn84K6P opZYPp+jh/ool8YiEaLLWrXRDDWMIHITT6NniUNxz288O9shU12V8vo2bhRO8IHcd8vGc52QL ByBEdU8zLfHvZtcmX3xdlsIXGzDFCANZN9yvgQl7mMn5DJniKycuVailthETk5tlxu0JzBOjy EdIraCezB/awci9XYJ4U2EMxcaQNI22u0D39xbc/k53DPTptl5SRhPXgAbTowSmJQ/mMnhb0k NCTZbMg5MEzBQtcufiD3ivzt1gQForop8Q5trV9dL+Uqj0PSYA1lqTv0gVJUELQfqXYv8EeGU 9ZSR2N7Iwa44PG0E/XhRkDSMWluUlu4ZFqbf9rv5ACP1GXcitRi0bHhSAnA2A06VRXs57varb j2wf5FTLn0ggQ+yE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1515 Lines: 39 The nvme_user_cmd function was recently moved around from one file to another, which made a warning reappear that I had fixed before at some point: drivers/nvme/host/core.c: In function 'nvme_user_cmd': drivers/nvme/host/core.c:424:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] This applies the same workaround that we have elsewhere in the driver with an extra type cast to uintptr_t. Signed-off-by: Arnd Bergmann Fixes: 1673f1f08c88 ("nvme: move block_device_operations and ns/ctrl freeing to common code") Link: https://lkml.org/lkml/2015/10/9/611 --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index f9c4e80c2441..47ebfb85b14b 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -421,7 +421,7 @@ static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, timeout = msecs_to_jiffies(cmd.timeout_ms); status = nvme_submit_user_cmd(ns ? ns->queue : ctrl->admin_q, &c, - (void __user *)cmd.addr, cmd.data_len, + (void __user *)(uintptr_t)cmd.addr, cmd.data_len, &cmd.result, timeout); if (status >= 0) { if (put_user(cmd.result, &ucmd->result)) -- 2.1.0.rc2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/