Files
kernel_xiaomi_sm8250/include/linux
Guenter Roeck 65b3841b9c of_net.h: Provide empty functions if OF_NET is not configured
of_get_mac_address() and of_get_phy_mode() are only provided if OF_NET
is configured. While most callers check for the define, not all do, and those
who do require #ifdef around the code. For those who don't, the missing check
can result in errors such as

arch/powerpc/sysdev/tsi108_dev.c:107:3: error: implicit declaration of
	function 'of_get_mac_address' [-Werror=implicit-function-declaration]
arch/powerpc/sysdev/mv64x60_dev.c:253:2: error: implicit declaration of
	function 'of_get_mac_address' [-Werror=implicit-function-declaration]

Provide empty functions if OF_NET is not configured.
This is safe because all callers do check the return values.

Cc: David Daney <david.daney@cavium.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-02 16:43:09 -04:00
..
2013-03-01 13:39:00 -08:00
2013-02-25 09:24:55 -05:00
2013-02-26 02:46:08 -05:00
2013-02-22 23:31:31 -05:00
2013-03-06 14:55:20 -05:00
2013-03-28 01:20:42 -04:00
2013-03-22 16:41:20 -07:00
2013-03-12 11:40:53 -04:00
2013-02-19 08:43:34 +01:00
2013-03-29 15:31:30 -04:00
2013-03-10 22:20:05 +01:00
2013-02-14 09:21:15 -05:00
2013-03-21 11:47:51 -04:00
2013-03-20 12:10:38 -04:00
2013-02-08 18:28:04 +01:00