--- zzzz-none-000/linux-4.1.52/include/linux/device.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/device.h 2022-03-02 11:37:13.000000000 +0000 @@ -823,11 +823,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 @@ -884,7 +885,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; @@ -1022,9 +1023,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 */