error: passing argument 1 of 'of_find_property' from incompatible pointer type

drivers/pinctrl/pinctrl-xburst2.c: In function 'ingenic_gpiolib_register': drivers/pinctrl/pinctrl-xburst2.c:740:25: error: passing argument 1 of 'of_find_property' from incompatible pointer type [-Werror=incompatible-pointer-types] if (!of_find_property(fwnode, "gpio-controller", NULL)) ^~~~~~- if (!of_find_property(child, "gpio-controller", NULL)) { + if (!fwnode_property_present(child, "gpio-controller")) { + fwnode_handle_put(child);1074e1d23a5c201b6558878a09f1d2b7c9506835

error: passing argument 1 of 'of_property_read_u32' from incompatible pointer type

drivers/pinctrl/pinctrl-xburst2.c: In function 'ingenic_gpio_chip_add': drivers/pinctrl/pinctrl-xburst2.c:574:27: error: passing argument 1 of 'of_property_read_u32' from incompatible pointer type [-Werror=incompatible-pointer-types] if (of_property_read_u32(np, "ingenic,num-gpios", &ngpio)) ^~- err = of_property_read_u32(node, "reg", &bank); + err = fwnode_property_read_u32(fwnode, "reg", &bank);

error: too few arguments to function 't40_clk_init'

In file included from drivers/clk/ingenic/clk-t40.c:2:0: drivers/clk/ingenic/clk-t40.c: In function '__t40_clk_of_clk_init_declare': drivers/clk/ingenic/clk-t40.c:340:47: error: too few arguments to function 't40_clk_init' CLK_OF_DECLARE(t40_clk, "ingenic,t40-clocks", t40_clk_init); ^-static void __init t40_clk_init(struct device_node *np, void __iomem *base) +static void __init t40_clk_init(struct device_node *np) { void __iomem *reg_base; printk("t40 Clock Power Management Unit init!\n"); - reg_base = base; + reg_base = of_iomap(np, 0); + if (!reg_base) { + pr_err("%s: could not map cru region\n", __func__); + return; + }f1c506d152ff235ad621d3c25d061cb16da67214

warning: this statement may fall through

drivers/pinctrl/pinctrl-xburst2.c: In function 'ingenic_packed_config': drivers/pinctrl/pinctrl-xburst2.c:813:11: warning: this statement may fall through [-Wimplicit-fallthrough=] *config = pinconf_to_config_packed(PIN_CONFIG_INPUT_DEBOUNCE, value & 0xffff); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-xburst2.c:815:2: note: here- /* fallthrough */ + fallthrough;

error: too many arguments to function 'get_user_pages'

arch/mips/xburst2/soc-t40/libdmmu.c: In function 'dmmu_make_present': arch/mips/xburst2/soc-t40/libdmmu.c:591:8: error: too many arguments to function 'get_user_pages' ret = get_user_pages(addr, len, write, 0, NULL); ^~~~~~~~~~~~~~- ret = get_user_pages(addr, len, write, 0, NULL); + ret = get_user_pages(addr, len, write, 0);
0%