[alsa-devel] [asoc:topic/rockchip 4/4] sound/soc/rockchip/rockchip_spdif.c:283:6: warning: cast from pointer to integer of different size
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rockchip head: f874b80e1571118fcf4554878633556f06f998e6 commit: f874b80e1571118fcf4554878633556f06f998e6 [4/4] ASoC: rockchip: Add rockchip SPDIF transceiver driver config: x86_64-allmodconfig (attached as .config) reproduce: git checkout f874b80e1571118fcf4554878633556f06f998e6 # save the attached .config to linux build tree make ARCH=x86_64
All warnings (new ones prefixed by >>):
sound/soc/rockchip/rockchip_spdif.c: In function 'rk_spdif_probe':
sound/soc/rockchip/rockchip_spdif.c:283:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int) match->data == RK_SPDIF_RK3288) { ^
vim +283 sound/soc/rockchip/rockchip_spdif.c
267 .writeable_reg = rk_spdif_wr_reg, 268 .readable_reg = rk_spdif_rd_reg, 269 .volatile_reg = rk_spdif_volatile_reg, 270 .cache_type = REGCACHE_FLAT, 271 }; 272 273 static int rk_spdif_probe(struct platform_device *pdev) 274 { 275 struct device_node *np = pdev->dev.of_node; 276 struct rk_spdif_dev *spdif; 277 const struct of_device_id *match; 278 struct resource *res; 279 void __iomem *regs; 280 int ret; 281 282 match = of_match_node(rk_spdif_match, np);
283 if ((int) match->data == RK_SPDIF_RK3288) {
284 struct regmap *grf; 285 286 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); 287 if (IS_ERR(grf)) { 288 dev_err(&pdev->dev, 289 "rockchip_spdif missing 'rockchip,grf' \n"); 290 return PTR_ERR(grf); 291 }
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
participants (1)
-
kbuild test robot