From patchwork Mon Jul 9 15:57:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 141461 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2829727ljj; Mon, 9 Jul 2018 08:59:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdTq8qM4s8NEYLu2DM12tZh5hD7h2Nyr6AtqKmJ3z66fOPDIZOIZ3ArOdGuvrAnpF9wWQNj X-Received: by 2002:aa7:87d0:: with SMTP id i16-v6mr21823215pfo.82.1531151951482; Mon, 09 Jul 2018 08:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531151951; cv=none; d=google.com; s=arc-20160816; b=nO/OjoLAw9Y6K8KSiMblShwnQPm+jMZd26mDnksUAuyvlYUWkSCa3OFIoNcsU+HDSH chMRFIgFoWAj+6LNH1CFLUM1KWc7mUJujacc76ma+oVSkSPlNwZ+I0w4ZY7sSMYUm9j+ 2tDG1nb/5NeedIBQYHZR/g/z1YHH1VjLU0f5Rbp+BKq7gSj6brVVzieudfF4AGoUyq9c M6VLrZn8fQJKCL+8L6Ah6dj2f913csBLSp6rK2oMWXctmTDa0+9aoBGFGTTBjtWR9x4P x/rv91Jaf8irGFNDjadjjTwxi97hjiNly3/h56xKy2kqvy7Pa+iUMGPl/kHe3Mrk/Gm0 sZMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=XsyZlqHV8CYgXLh7WgaYV24I+ZXyQ5Nj1+W2IVCvtmE=; b=zhpzRj4DvVnntJZYJW2nlhICc5bBmHh8gf5Y7PKfQ1NmWybzJGd9dLwbwnesDtDq29 A2diRTqopdXg/z8PTki4mm6SHyMl1VR9dkrLg3YjcjvwSAK8lEnyRE3wU85ycGaBZPol bVRWa/5T73jfwZyHcSt50wqMb+w6jsXwGJkHGBJk2nT9g+CME3F75bfsPbbsWCmOlbVm lI2SqhqmBuqbQy0GRU7CZwztVcHIzm2GOK46CVdVcawcwzPIYpOUjkJpEsPJvx2JdpVB Zwatr9cD78F+ilHM2nzCLFcOBqqfaoku1XZKpkc2GJTf4C4cOUm9w0F4U1woTxVIDZ2i pa4g== 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 3-v6si14808305plx.351.2018.07.09.08.59.11; Mon, 09 Jul 2018 08:59:11 -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 S934048AbeGIP7K (ORCPT + 29 others); Mon, 9 Jul 2018 11:59:10 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:35877 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933025AbeGIP7E (ORCPT ); Mon, 9 Jul 2018 11:59:04 -0400 Received: from wuerfel.lan ([46.223.138.35]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LhNMu-1gOrsJ3LlI-00maWp; Mon, 09 Jul 2018 17:58:04 +0200 From: Arnd Bergmann To: Boris Brezillon Cc: Arnd Bergmann , Wenyou Yang , Josh Wu , Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Nicolas Ferre , Alexandre Belloni , Masahiro Yamada , Gregory CLEMENT , Peter Rosin , Romain Izard , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] mtd: atmel nand: fix build warning on 64-bit Date: Mon, 9 Jul 2018 17:57:03 +0200 Message-Id: <20180709155730.2422841-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180709155730.2422841-1-arnd@arndb.de> References: <20180709155730.2422841-1-arnd@arndb.de> X-Provags-ID: V03:K1:c+dyJrgBfWh82vW2V2LsrYOJDpfCWcJnKt7zsAaCGvu5HDWD4UZ 4Wpdd7nX+So7cJLlksTteChSOs+kLr8WUcKUIo5zRjWMgiyjwBNseoZ3mGQav2UMeJrDCox fQj7nIJqBllgbW8Mw5BEVdotBxaygHHJW/tHBhJfIbr08viTfntFCZxOxQH/Y5V7AWLtbVg OmlGwuLWqxVaLbW0/kxlQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:tN3BDP4gkMo=:gxpR7gzPxnst2CeETPdXhc 3Z1+rDyiqthkDyuWxCjSSMmfDYqW14SijW0wbrG/Ndk/CUAaE3BnG0OcArX0Foi/Px4GgAqhf CfR7AmGwelVFlF4RJjafyrHCuCHjPMidp6Yei8nR/4fqbK2HaLT1ZvsRXh6k07+YxUCorT+Ze kpfTkONYv5lxTjU0EpF1viO/PUZksrLBtEQ8d8Fy1PA47jo7CkVizkcQx54C+jVfuvGZK7Ct7 1sV31Zpf0QsWeuiomGJxvwmBqNd2hnWQj32kxgdKenJKuqBFE0+XUyNk0Cm1OesJK9zm7HnML unLVbJ3jEO/q5X7anHSSHXt54f8mKoBe6FSqqkZkVE7fnXOqQWsIFZi+4QutxbNZ/8n/voXFI nd85sa+o7a4LfSuao1bzkB1sL6MN09X2tWZdiVbTvk/HlTsuMmcZkbhuBJmqaXS5XhjEF0FiL XMnNdFpyo9UqrgT2Er4IcmSJzG3bG9qHeq/i0p3GW1QVLHhF0fj7AkGkwT6X+VbIsTv9lWaxg Nf0LK5eMphS/55R8HPzM6AnAJuufJly+bJZR8TzA05RYzsP3gN9C3UwBXAFtgc0V4X6zkkF1C uydq3ul9gILTZh3eG5qaIYv0zngoy4I0E1hj30yjco0hTAT6ayzZ0r0FHndwoFuvuKr30FXbr bZP6BUKBeumldwpSJsXTC/rv+OGW6DENyBHeaGdQiQn7xNXPasi2Q4TVMozh+34VCkU0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Build-testing this driver on a 64-bit architecture produces a harmless warning: drivers/mtd/nand/raw/atmel/nand-controller.c: In function 'atmel_smc_nand_controller_init': drivers/mtd/nand/raw/atmel/nand-controller.c:2053:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] To cast the pointer correctly, the destination type should be uintptr_t rather than a 32-bit int. Fixes: c2f3d0b913a5 ("mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y") Signed-off-by: Arnd Bergmann --- drivers/mtd/nand/raw/atmel/nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c index e686fe73159e..e8f7549d0354 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -2050,7 +2050,7 @@ atmel_smc_nand_controller_init(struct atmel_smc_nand_controller *nc) return ret; } - nc->ebi_csa_offs = (unsigned int)match->data; + nc->ebi_csa_offs = (uintptr_t)match->data; /* * The at91sam9263 has 2 EBIs, if the NAND controller is under EBI1