--- zzzz-none-000/linux-4.1.38/include/linux/device.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/device.h 2020-11-25 10:06:48.000000000 +0000 @@ -821,11 +821,12 @@ dev->numa_node = node; } #else -static inline int dev_to_node(struct device *dev) +static inline int dev_to_node(struct device *dev __maybe_unused) { return -1; } -static inline void set_dev_node(struct device *dev, int node) +static inline void set_dev_node(struct device *dev __maybe_unused, + int node __maybe_unused) { } #endif @@ -882,7 +883,7 @@ dev->power.ignore_children = enable; } -static inline void dev_pm_syscore_device(struct device *dev, bool val) +static inline void dev_pm_syscore_device(struct device *dev __maybe_unused, bool val __maybe_unused) { #ifdef CONFIG_PM_SLEEP dev->power.syscore = val; @@ -1020,9 +1021,18 @@ extern int devtmpfs_delete_node(struct device *dev); extern int devtmpfs_mount(const char *mntdir); #else -static inline int devtmpfs_create_node(struct device *dev) { return 0; } -static inline int devtmpfs_delete_node(struct device *dev) { return 0; } -static inline int devtmpfs_mount(const char *mountpoint) { return 0; } +static inline int devtmpfs_create_node(struct device *dev __maybe_unused) +{ + return 0; +} +static inline int devtmpfs_delete_node(struct device *dev __maybe_unused) +{ + return 0; +} +static inline int devtmpfs_mount(const char *mountpoint __maybe_unused) +{ + return 0; +} #endif /* drivers/base/power/shutdown.c */