Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2ee3616 authored by Michael Chan's avatar Michael Chan Committed by James Bottomley
Browse files

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: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 7cbdca23
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2519,9 +2519,9 @@ static struct cnic_dev *init_bnx2_cnic(struct net_device *dev)
	struct cnic_dev *cdev;
	struct cnic_dev *cdev;
	struct cnic_local *cp;
	struct cnic_local *cp;
	struct cnic_eth_dev *ethdev = NULL;
	struct cnic_eth_dev *ethdev = NULL;
	struct cnic_eth_dev *(*probe)(void *) = NULL;
	struct cnic_eth_dev *(*probe)(struct net_device *) = NULL;


	probe = __symbol_get("bnx2_cnic_probe");
	probe = symbol_get(bnx2_cnic_probe);
	if (probe) {
	if (probe) {
		ethdev = (*probe)(dev);
		ethdev = (*probe)(dev);
		symbol_put_addr(probe);
		symbol_put_addr(probe);
+2 −0
Original line number Original line Diff line number Diff line
@@ -296,4 +296,6 @@ extern int cnic_register_driver(int ulp_type, struct cnic_ulp_ops *ulp_ops);


extern int cnic_unregister_driver(int ulp_type);
extern int cnic_unregister_driver(int ulp_type);


extern struct cnic_eth_dev *bnx2_cnic_probe(struct net_device *dev);

#endif
#endif