Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cnic: Fix __symbol_get() build error.

Ingo molnar <mingo@elte.hu> reported the error

drivers/net/cnic.c:2520: error: implicit declaration of function ‘__symbol_get’

when CONFIG_MODULES is not defined. Fix by using symbol_get() instead.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

Michael Chan and committed by
James Bottomley
e2ee3616 7cbdca23

+4 -2
+2 -2
drivers/net/cnic.c
··· 2519 2519 struct cnic_dev *cdev; 2520 2520 struct cnic_local *cp; 2521 2521 struct cnic_eth_dev *ethdev = NULL; 2522 - struct cnic_eth_dev *(*probe)(void *) = NULL; 2522 + struct cnic_eth_dev *(*probe)(struct net_device *) = NULL; 2523 2523 2524 - probe = __symbol_get("bnx2_cnic_probe"); 2524 + probe = symbol_get(bnx2_cnic_probe); 2525 2525 if (probe) { 2526 2526 ethdev = (*probe)(dev); 2527 2527 symbol_put_addr(probe);
+2
drivers/net/cnic_if.h
··· 296 296 297 297 extern int cnic_unregister_driver(int ulp_type); 298 298 299 + extern struct cnic_eth_dev *bnx2_cnic_probe(struct net_device *dev); 300 + 299 301 #endif