]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: Fix dp83640 build warning when building statically
authorJohn Stultz <john.stultz@linaro.org>
Mon, 23 May 2011 20:32:11 +0000 (13:32 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 23 May 2011 20:32:11 +0000 (13:32 -0700)
commit95add6e6b340ba6eb54d34055b7d83a8e877bbcc
tree24e79b267dba9b906323614e30af12838e9525a2
parent5066165364458ca7d5f7b169b00a8c24618d415e
ptp: Fix dp83640 build warning when building statically

If the dp83640 driver is not built as a module, the
MODULE_DEVICE_TABLE reference to dp83640_tbl nops out.

Since the table isn't referenced elsewhere, it it causes
the following warning:
drivers/net/phy/dp83640.c:1095: warning: ‘dp83640_tbl’ defined but not used

This apparently is common with mdio_device_id table structures,
and is avoided by using __maybe_unused annotation.

Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/net/phy/dp83640.c