[PATCH] bond_main.c: fix "nocast type" warnings From: Victor Fusco Fix the sparse warning "implicit cast to nocast type" Signed-off-by: Victor Fusco Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/net/bonding/bond_main.c =================================================================== --- linux-kj.orig/drivers/net/bonding/bond_main.c +++ linux-kj/drivers/net/bonding/bond_main.c @@ -1294,7 +1294,8 @@ static void bond_mc_list_destroy(struct /* * Copy all the Multicast addresses from src to the bonding device dst */ -static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond, int gpf_flag) +static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond, + unsigned int __nocast gpf_flag) { struct dev_mc_list *dmi, *new_dmi;