Message ID | 1443518479-2864-2-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Geert Uytterhoeven |
Headers | show
Return-Path: <linux-sh-owner@kernel.org> X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4B1B19F32B for <patchwork-linux-sh@patchwork.kernel.org>; Tue, 29 Sep 2015 09:21:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 70AEC206D0 for <patchwork-linux-sh@patchwork.kernel.org>; Tue, 29 Sep 2015 09:21:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 885C4206CC for <patchwork-linux-sh@patchwork.kernel.org>; Tue, 29 Sep 2015 09:21:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933728AbbI2JVn (ORCPT <rfc822;patchwork-linux-sh@patchwork.kernel.org>); Tue, 29 Sep 2015 05:21:43 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:42022 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933513AbbI2JVk (ORCPT <rfc822;linux-sh@vger.kernel.org>); Tue, 29 Sep 2015 05:21:40 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 29 Sep 2015 18:21:38 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 1A84243D76; Tue, 29 Sep 2015 18:21:38 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 0F2AB480A4; Tue, 29 Sep 2015 18:21:38 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 053A048014; Tue, 29 Sep 2015 18:21:38 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id UAG01088; Tue, 29 Sep 2015 18:21:37 +0900 X-IronPort-AV: E=Sophos;i="5.17,607,1437404400"; d="scan'";a="196538100" Received: from mail-sg2apc01lp0241.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.241]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 29 Sep 2015 18:21:36 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost (211.11.155.144) by HK2PR06MB0914.apcprd06.prod.outlook.com (10.162.246.29) with Microsoft SMTP Server (TLS) id 15.1.280.20; Tue, 29 Sep 2015 09:21:34 +0000 From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> To: <gregkh@linuxfoundation.org>, <balbi@ti.com>, <robh+dt@kernel.org>, <pawel.moll@arm.com>, <mark.rutland@arm.com>, <ijc+devicetree@hellion.org.uk>, <galak@codeaurora.org> CC: <linux-usb@vger.kernel.org>, <linux-sh@vger.kernel.org>, <devicetree@vger.kernel.org>, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Subject: [PATCH v2 1/2] usb: renesas_usbhs: fix build warning if 64-bit architecture Date: Tue, 29 Sep 2015 18:21:18 +0900 Message-ID: <1443518479-2864-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1443518479-2864-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1443518479-2864-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0009.jpnprd01.prod.outlook.com (25.161.225.147) To HK2PR06MB0914.apcprd06.prod.outlook.com (25.162.246.29) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0914; 2:uOBnN1Se6jTBQ99sj3/oD+7w78ltko3grW1QKORi3HwbF++jKFDRseJfw2LXuF41sf07HVtU5imSm9WqTiaEK3fyHq0tixZIcOT30XHZzgey/+3fHyc739UNmLERrL9dhoXcTalso9fyq1hliIdpXuXjVySxrm1iEySbTObQp8k=; 3:zwpclykWZ4Wh6MAGSeMDkfhoEi5yM4cHIXpKFoo4IWlAjoFo6jjNW7/aEJTUE7yJB/ScpHqsf4GuSrulMICzRGetaOkJ4UyRgxcgFdfOZ94whdOK8g1dffENr8hU3nTJOqqNt47gG885a74S9AlNtQ==; 25:nsVuFQyVlF4ZukGOkgJxYW43FJQbZw2hCVIB/OpbTrXD4oVqeSXold96+EFs4RgBMdba7gZ3OLu2Hsxmyo+zvA0c6CDqGW185PVz5HN+1p0SfdVxFv99PyCGLUrSwNyNPyT0X9WdKp5yn7233APVy5ZEjKDaqdLWOQPL1VhCM+EuK1+Ge17AlGJ00K4O4SKkh9Y1M5CiR/mAAcxjx7JhjkiCyldChJyKsLSGkyfyBP6orH08s4w2PxEJLNBxa8KPhS89IIyraDq8VxmrfIVinw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HK2PR06MB0914; X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0914; 20:DWMmeROhWsHriLmmEMDgmpiNJ23UfxIx5SlYORmcna92gxk1QcH8FmALo9mv9tN1YxGWXsRNqGBuqgGcND9AoWUmEu0GXM7DrOQ2FTDMIUvqsQCXoHH+oFFRQI49IP55V+WKB4qip1HnGknRYBKm3cT2R9kNm913S0nfvWE+1dn0QhoUlzt7y9lIQ1tH2be4v1CLKez5Azs7fVVAIZOhmA2WspbOmrrQ+f4jOcqZKoabv+7qfNmKH0XvOgtzX/la6wFt5eutSLycrvrESVw+Smd2yDaBRA1Sd0ybGNfFFINhvQQuEtlMg5tyeLGVhlPhIgfaqk0Fb7ZWnDtfkVMdDfEt+WDVcHy+w8I6pm0S7n2T+Ds8aQslrPvOuuLiwKh0f2JcpNKnNtiGKNcXc0LAO9i6WCc50ToSqlKhtGYj3uA90gFH2nztgXdX0kPtoKwlKxYj5D5nOEfu4IYiAtL4UmdsxB7rtap5aCpH4bHh/hjqV6P/eHiaovuDOuPm4lr5; 4:L5p+IQagXOYVJScD1ycXH4W11ZUCQLo6XguZ3ba8EZ7+EnHFYt7jG5Iny99VTo3vuWorFDXeAICc5bJevvsG11ZWJfrrKUAohwbfnGkOjDdSSMx+Yqx80U96GeZdlTj21Mn+iqbTrFNYLgxtq66qd5vcfcbY2bUBTqdC0WottogGySLYM9YMH67drvd0AsHYpgmwpktTdX6dCldmD0c9ROQCn7d11/hKT+5t7QJkbCsR0khvqx+S6lxa/2bjx8ojmChcpDb4cl9lJ56snBttd8miGIrU89NHuEllDSOentkOitiZohv6XGKOTiumFgVfYW+xye4aa3azsvdXvNlxTiCw/nbOXFtJeooDusq1zj0= X-Microsoft-Antispam-PRVS: <HK2PR06MB0914CAF577178FF65963BA9AB84E0@HK2PR06MB0914.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001); SRVR:HK2PR06MB0914; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0914; X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(6069001)(199003)(189002)(5001770100001)(33646002)(42382002)(97736004)(87976001)(81156007)(92566002)(19580395003)(19580405001)(40100003)(122386002)(2950100001)(4001540100001)(5004730100002)(5001830100001)(42186005)(5007970100001)(64706001)(47776003)(66066001)(78352002)(5003940100001)(76506005)(101416001)(48376002)(189998001)(76176999)(50466002)(50226001)(50986999)(5001960100002)(62966003)(46102003)(105586002)(5001860100001)(5001920100001)(77096005)(36756003)(106356001)(77156002)(68736005)(229853001)(107886002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0914; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:0; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB0914; 23:ium0kGa7K5P7lUKia72ukZKEerDq2Xs/CCv0TcXWf?= =?us-ascii?Q?3SYtaY7rW12ciASv1u41yV8r1pQ5gKJlJdDuj0YbS8sbnZQ5GVUM0yJjySZw?= =?us-ascii?Q?4sk52rBASAa64I/0gBaSA31qvY3cujOe2hxrGI9iBJQ/4sM4kSs6zvqvI00r?= =?us-ascii?Q?P0Dj5lNzR/2G63ypmZjax4Sx+Q1d5+Ksf/8GQ+9q1WvzmvSNiBa/pphFNOqt?= =?us-ascii?Q?CcPOH6zOVdQQi1fXCSPYojes9OCkRD23wGBCONkX78YfHzv8Ht7udPD6Llks?= =?us-ascii?Q?7qioq6NPPMnksDYcsHro2GM6Y/gvaHV4r8XCl49MTMlmI/RtC2skfr19Yg3O?= =?us-ascii?Q?DVRRjDtAscBcCOQ4XayNxnl1SVWooWNmNA4cswHyQnDOF8ZE+RBNR9IbNbkI?= =?us-ascii?Q?zQoaQufLqBAKg9XWCesIjU7aO7FSGurRnYrt0MGtBIzPCFwOGS96d6RvwIjA?= =?us-ascii?Q?phDyFh6OYGc6dKTzhcXkd8LFniKmHDw167mU3gwdBHDSmVrghncyLQyJdWPS?= =?us-ascii?Q?dHtA3fGqKPzew0QwPUjPr7hPvCGfzvPfo8Xww1PwJpE1nND7RQ2m7CZyU+R/?= =?us-ascii?Q?fBE5TrDbCLqFgdkwT9UKj5aTlK2syw4BrkblmvplrZGpbPzqadP1BLnIqS9a?= =?us-ascii?Q?1M5Aquq3YpA+leRMRyD84vY0mWCkV54aVDVWP/Vvmtco3bX29i+1hu455HME?= =?us-ascii?Q?4U+DT8Qpf8CfETDJHp7bMpZCF+zzvXoJ3pSfLoNxG8ZY1gl7vXZHU/+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oZuyVialndWAjVR21Rmngj/51pJQ4MWZGwHKRkmjHKKkb8GgjGzBO+8U/Qvb99RWynZ5+oX5aEWUty+M5wVya18nmSJeMkVYT4CD+dPJndu4l7a+OYp4+HGT8Jk= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2015 09:21:34.1856 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0914 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: <linux-sh.vger.kernel.org> X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-4.1 required=5.0 tests=AXB_X_OUTLOOKPROT_ENVSDR, BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 7b98e1d..0ce398c 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -493,7 +493,7 @@ static struct renesas_usbhs_platform_info *usbhs_parse_dt(struct device *dev) return NULL; dparam = &info->driver_param; - dparam->type = of_id ? (u32)of_id->data : 0; + dparam->type = of_id ? (uintptr_t)of_id->data : 0; if (!of_property_read_u32(dev->of_node, "renesas,buswait", &tmp)) dparam->buswait_bwait = tmp; gpio = of_get_named_gpio_flags(dev->of_node, "renesas,enable-gpio", 0, diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h index 3dd5a78..bfb7472 100644 --- a/include/linux/usb/renesas_usbhs.h +++ b/include/linux/usb/renesas_usbhs.h @@ -157,7 +157,7 @@ struct renesas_usbhs_driver_param { */ int pio_dma_border; /* default is 64byte */ - u32 type; + uintptr_t type; u32 enable_gpio; /*
This patch fixes the following warning if 64-bit architecture environment: ./drivers/usb/renesas_usbhs/common.c:496:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] dparam->type = of_id ? (u32)of_id->data : 0; Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> --- drivers/usb/renesas_usbhs/common.c | 2 +- include/linux/usb/renesas_usbhs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)