From: David S. Miller Date: Sat, 24 Jan 2009 06:28:48 +0000 (-0800) Subject: com20020: Fix allyesconfig build failure. X-Git-Tag: firefly_0821_release~15237^2~900 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0db155de988031f925096a7df1bf9633790a2c18;p=firefly-linux-kernel-4.4.55.git com20020: Fix allyesconfig build failure. Reported by Stephen Rothwell. Due to missing 'extern' in the com20020_netdev_ops declaration, each file that includes linux/com20020.h gets another copy defined in it's resulting object file. Signed-off-by: David S. Miller --- diff --git a/include/linux/com20020.h b/include/linux/com20020.h index 350afa773f8f..5dcfb944b6ce 100644 --- a/include/linux/com20020.h +++ b/include/linux/com20020.h @@ -29,7 +29,7 @@ int com20020_check(struct net_device *dev); int com20020_found(struct net_device *dev, int shared); -const struct net_device_ops com20020_netdev_ops; +extern const struct net_device_ops com20020_netdev_ops; /* The number of low I/O ports used by the card. */ #define ARCNET_TOTAL_SIZE 8