Commit ebe26aca authored by Moritz Fischer's avatar Moritz Fischer Committed by David S. Miller

net: fixed_phy: Add forward declaration for struct gpio_desc;

Add forward declaration for struct gpio_desc in order to address
the following:

./include/linux/phy_fixed.h:48:17: error: 'struct gpio_desc' declared inside parameter list [-Werror]
./include/linux/phy_fixed.h:48:17: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]

Fixes: 71bd106d ("net: fixed-phy: Add fixed_phy_register_with_gpiod() API")
Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 42dec1db
...@@ -11,6 +11,7 @@ struct fixed_phy_status { ...@@ -11,6 +11,7 @@ struct fixed_phy_status {
}; };
struct device_node; struct device_node;
struct gpio_desc;
#if IS_ENABLED(CONFIG_FIXED_PHY) #if IS_ENABLED(CONFIG_FIXED_PHY)
extern int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier); extern int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment