From patchwork Tue Dec 8 15:12:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7798561 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D41AFBEEE1 for ; Tue, 8 Dec 2015 15:13:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0773A20524 for ; Tue, 8 Dec 2015 15:13:21 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 82049202F2 for ; Tue, 8 Dec 2015 15:13:18 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F25B726049B; Tue, 8 Dec 2015 16:13:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D767C260449; Tue, 8 Dec 2015 16:13:08 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4B6FB260476; Tue, 8 Dec 2015 16:13:07 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by alsa0.perex.cz (Postfix) with ESMTP id AFA35260442 for ; Tue, 8 Dec 2015 16:12:59 +0100 (CET) Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0Lgpny-1aZHZ827NO-00oEiL; Tue, 08 Dec 2015 16:12:56 +0100 From: Arnd Bergmann To: Mark Brown , alsa-devel@alsa-project.org Date: Tue, 08 Dec 2015 16:12:54 +0100 Message-ID: <3548574.qiC2AlzHH4@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:n58oYi+xQiMl45tUp9g/hWgwLf4Sk6Pwg3hOeW7O3t3oXAyNoe4 R26OGwIyrYb0qnQGxGe2W8RibpDPMbh4dI6KLLL9QBqjIfe5RJAx9QitrrYbntac0P7n8HR NRBrI1eFw1ek7YrtCggXwcbfPmW/uxQApq1Debt8KzS60EEShMRFE/H4Le6HNczr8Xlvb7S EKkTjHEGJ/DzUWcMzMk3g== X-UI-Out-Filterresults: notjunk:1; V01:K0:tUFKBjrWFbY=:5C7jBu/Q4O/3lzN2FTWK7E XIjh/zDNxSN2/bfyZcJ+54dmMwKPkwP/xdJKOPXCb62mt/J2keF6kD+AoUeQa50ZnNKWBjZ6f wyN3DnciCc+T0P6FnzIXZBoAlp6DVzXJcNymo6PuukiYmLn5T/KN8IClVINPUp4IoUi5M9tuV Pax9hBf/OsJSMVQbCLlSOXktwH+cF67aphmktwRiSkcnvJVs+5Z1nGwQFmI+kUXyeELv6dgVW zw5EyI6tG9FiF2MCWPVSLM+5N7xjHBdQPphBlKp5j1QZ/ryxHM0tSmJmBRilNXTMkwFawz65D 6F1JLnfuGGGao2MDIvOCJYUMG4WYy45asIlFEWK1EkwL6f5BL0qEqIxn4afUaDyCN1lFFQNta BcZKAppguz2Fn7Wv7FAmyG3ZBZl6ZtwGkbvbqx7uL5U/2d98wpqpSZxxXhzT4UpFRO/vZqQli H7FOr812Zd+SdzMZUIMAX4hopeaQ5OZUrBAupi1BvDLakEUO4zZ0GUfL9I8HMDnP0/BmiesZI rYMZi42MPArzRAkt1BhDHSsQ2MerIHARJz50+cYs6Aqp9b7JqOd5cyRiClvxSWjmVqpJgmbxQ svQXSvSGee/8CBEaD7uIHLPz3RJjU/TSXdw5+DKBZ0bJ4MxZWJc/prLPpj6XtdvTdr1EjB4Rj uFBsfBQQOg5hDUp5FedF/kUjfKp63ug2R2aGx6TcJ7sdwtgxG1FZAm4ismsr24e8v7LEHbKbp 7aDTnVXD2ZJpgQx7 Cc: linux-kernel@vger.kernel.org, Adam Thomson , Support Opensource , linux-arm-kernel@lists.infradead.org, Liam Girdwood Subject: [alsa-devel] [PATCH 01/19] ASoC: da7218: avoid 64-bit compile warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP When building the da7218 driver on a 64-bit architecture, we get a harmless warning: sound/soc/codecs/da7218.c: In function 'da7218_of_get_id': sound/soc/codecs/da7218.c:2261:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This changes the code to use uintptr_t to ensure we have an integer type of the same size as a pointer and won't get a warning on any architecture. Signed-off-by: Arnd Bergmann Fixes: 4d50934abd22 ("ASoC: da7218: Add da7218 codec driver") --- sound/soc/codecs/da7218.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/da7218.c b/sound/soc/codecs/da7218.c index 4fee7aeaadc7..eacde128c4d6 100644 --- a/sound/soc/codecs/da7218.c +++ b/sound/soc/codecs/da7218.c @@ -2258,7 +2258,7 @@ static inline int da7218_of_get_id(struct device *dev) const struct of_device_id *id = of_match_device(da7218_of_match, dev); if (id) - return (int) id->data; + return (uintptr_t)id->data; else return -EINVAL; }