[alsa-devel] [asoc:topic/rt5645 22/22] sound/soc/codecs/rt5645.c:3230:27: warning: passing argument 1 of 'device_property_read_bool' from incompatible pointer type
tree: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rt5645 head: d35b41b504096eba03a3b2d58e27ba2a2806f9de commit: d35b41b504096eba03a3b2d58e27ba2a2806f9de [22/22] ASoC: rt5645: add device tree support config: xtensa-allyesconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/ma... -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout d35b41b504096eba03a3b2d58e27ba2a2806f9de # save the attached .config to linux build tree make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
sound/soc/codecs/rt5645.c: In function 'rt5645_parse_dt':
sound/soc/codecs/rt5645.c:3230:27: warning: passing argument 1 of 'device_property_read_bool' from incompatible pointer type
rt5645->pdata.in2_diff = device_property_read_bool(np, ^ In file included from include/linux/of.h:26:0, from include/linux/i2c.h:33, from sound/soc/codecs/rt5645.c:17: include/linux/property.h:74:20: note: expected 'struct device *' but argument is of type 'struct device_node *' static inline bool device_property_read_bool(struct device *dev, ^
sound/soc/codecs/rt5645.c:3232:2: warning: passing argument 1 of 'device_property_read_u32' from incompatible pointer type
device_property_read_u32(np, ^ In file included from include/linux/of.h:26:0, from include/linux/i2c.h:33, from sound/soc/codecs/rt5645.c:17: include/linux/property.h:92:19: note: expected 'struct device *' but argument is of type 'struct device_node *' static inline int device_property_read_u32(struct device *dev, ^ sound/soc/codecs/rt5645.c:3234:2: warning: passing argument 1 of 'device_property_read_u32' from incompatible pointer type device_property_read_u32(np, ^ In file included from include/linux/of.h:26:0, from include/linux/i2c.h:33, from sound/soc/codecs/rt5645.c:17: include/linux/property.h:92:19: note: expected 'struct device *' but argument is of type 'struct device_node *' static inline int device_property_read_u32(struct device *dev, ^ sound/soc/codecs/rt5645.c:3236:2: warning: passing argument 1 of 'device_property_read_u32' from incompatible pointer type device_property_read_u32(np, ^ In file included from include/linux/of.h:26:0, from include/linux/i2c.h:33, from sound/soc/codecs/rt5645.c:17: include/linux/property.h:92:19: note: expected 'struct device *' but argument is of type 'struct device_node *' static inline int device_property_read_u32(struct device *dev, ^
vim +/device_property_read_bool +3230 sound/soc/codecs/rt5645.c
3224 }, 3225 { } 3226 }; 3227 3228 static int rt5645_parse_dt(struct rt5645_priv *rt5645, struct device_node *np) 3229 {
3230 rt5645->pdata.in2_diff = device_property_read_bool(np,
3231 "realtek,in2-differential");
3232 device_property_read_u32(np,
3233 "realtek,dmic1-data-pin", &rt5645->pdata.dmic1_data_pin); 3234 device_property_read_u32(np, 3235 "realtek,dmic2-data-pin", &rt5645->pdata.dmic2_data_pin);
--- 0-DAY kernel test infrastructure Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
participants (1)
-
kbuild test robot