Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod From: Arnd Bergmann Newsgroups: linux.kernel Subject: [PATCH] ASoC: fix rockchip 64-bit build warning Date: Fri, 13 Nov 2015 18:20:03 +0100 Message-ID: X-Original-To: Mark Brown , alsa-devel@alsa-project.org 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:Ge6A7xtuIWl3XpHG/3Y6NfvS2Y7+hXJwtxZvnm99k6qHU7ErpP5 LzTiQMVQI1o3cuKrNFkGTYIS/YUU57XVPAb3myuPNphhLK1feSnlotjvgsQEF/qANC5yVdq 3ksoDwCf1q+w0+fyqaUix0tIgnG9pCcNLnjNoANu9YefRD51PwQPhdON70+VduIKSXgV8GT 3dMF695NCzFetORvLjmnA== X-Ui-Out-Filterresults: notjunk:1;V01:K0:ub+1WyRlQBk=:mkp2VydJ22zAZBB+XmqgEl Bb1bap7diyuYloH5OeruuszCTlQorDM0upb+DeinKrY0U+4HtOWCO+0s2+S9p426H7S3norl+ 2xefVHanJr5lJQggOBjUjV7Zx6vr6mvQBRzxA9FyoaAc1loB9Ioe4Sj9S1H56VfoSVSJUz7cj NkNYS746/+l5e4cx3lIKC74/SFQfL3+zrJXb52telNf4yWIXKRjaoZIIvMipDxJKQjwuGd/hw tm7z91GPDnIHCA78RwH5Dc4YIMpYFfYXBMmU/vu6cAjGkck6Pe2Oki3N/WUIoQKLZsP5gjLpd z2eCdrFgQLuTCC0pBZoj2T/yJibGtBY3Gcdm5akIK3Phjqhi4WlSlJW29jn6C6ToBrM4MfuBo wrE5oeKwfnXyulbOxSqgeybqUT6qf2A3zRReQkY8IJv2mrTQPvUSeht5EPj0VVWP4owuQuYMC NOjJLb/pGSYMjg/1rU1K0Ey/1Tb7q2zwZFAwZzTFlu82/xYzQX0CZjLjnI0jF2UxdC6wK1q7m +om2mRdNIGsEEZiwdK3s+kwZGiP3tdYMhLkt78nxKPYpyp3ZtTCXVAgBAouA3CX8gTef56qGc rAN125SU+8pfnoSFp7u87CtHHYi72YX6dCQxCjfPw9EOjsYCSr0KUEf8BX/747kv89/7CBoRc ZoJOBD5pWKh4xjvdvd9rTGFWfyzmB/1KU8we4uIMkmZYaE9mkHXtwnpDF03PIMnzV/shXuf+5 FKs62xwpXodsi3fv Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway X-Original-Cc: Liam Girdwood , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org X-Original-Date: Fri, 13 Nov 2015 18:15:56 +0100 X-Original-Message-ID: <5376543.c9BV6sJg6q@wuerfel> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1269105 The rk_spdif_probe uses the device match data as a token to identify a particular device, but accidentally casts a pointer to 'int', which is not portable, as gcc points out in this warning on arm64: rockchip_spdif.c: In function 'rk_spdif_probe': rockchip_spdif.c:283:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This changes the logic to compare two pointer values instead, using the same cast that was used for initializing the value in the first place. Signed-off-by: Arnd Bergmann diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index a38a3029062c..ac72ff5055bb 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c @@ -280,7 +280,7 @@ static int rk_spdif_probe(struct platform_device *pdev) int ret; match = of_match_node(rk_spdif_match, np); - if ((int) match->data == RK_SPDIF_RK3288) { + if (match->data == (void *)RK_SPDIF_RK3288) { struct regmap *grf; grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); -- 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/