--- zzzz-none-000/linux-2.6.39.4/include/linux/workqueue.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/workqueue.h 2021-11-10 13:38:17.000000000 +0000 @@ -160,9 +160,9 @@ return *work_data_bits(work) & WORK_STRUCT_STATIC; } #else -static inline void __init_work(struct work_struct *work, int onstack) { } -static inline void destroy_work_on_stack(struct work_struct *work) { } -static inline unsigned int work_static(struct work_struct *work) { return 0; } +static inline void __init_work(struct work_struct *work __attribute__((unused)), int onstack __attribute__((unused))) { } +static inline void destroy_work_on_stack(struct work_struct *work __attribute__((unused))) { } +static inline unsigned int work_static(struct work_struct *work __attribute__((unused))) { return 0; } #endif /* @@ -414,7 +414,7 @@ /* Obsolete. use cancel_delayed_work_sync() */ static inline __deprecated -void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq, +void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq __attribute__((unused)), struct delayed_work *work) { cancel_delayed_work_sync(work); @@ -428,7 +428,7 @@ } #ifndef CONFIG_SMP -static inline long work_on_cpu(unsigned int cpu, long (*fn)(void *), void *arg) +static inline long work_on_cpu(unsigned int cpu __attribute__((unused)), long (*fn)(void *), void *arg) { return fn(arg); }