--- zzzz-none-000/linux-2.6.39.4/include/linux/device.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/device.h 2021-11-10 13:23:10.000000000 +0000 @@ -252,8 +252,8 @@ void *data, int (*fn)(struct device *dev, void *data)); extern struct device *class_find_device(struct class *class, - struct device *start, void *data, - int (*match)(struct device *, void *)); + struct device *start, const void *data, + int (*match)(struct device *, const void *)); struct class_attribute { struct attribute attr; @@ -480,11 +480,11 @@ dev->numa_node = node; } #else -static inline int dev_to_node(struct device *dev) +static inline int dev_to_node(struct device *dev __attribute__((unused))) { return -1; } -static inline void set_dev_node(struct device *dev, int node) +static inline void set_dev_node(struct device *dev __attribute__((unused)), int node __attribute__((unused))) { } #endif @@ -624,9 +624,9 @@ 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 __attribute__((unused))) { return 0; } +static inline int devtmpfs_delete_node(struct device *dev __attribute__((unused))) { return 0; } +static inline int devtmpfs_mount(const char *mountpoint __attribute__((unused))) { return 0; } #endif /* drivers/base/power/shutdown.c */