--- zzzz-none-000/linux-2.6.39.4/include/linux/u64_stats_sync.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/u64_stats_sync.h 2021-11-10 13:38:17.000000000 +0000 @@ -67,21 +67,21 @@ #endif }; -static inline void u64_stats_update_begin(struct u64_stats_sync *syncp) +static inline void u64_stats_update_begin(struct u64_stats_sync *syncp __attribute__((unused))) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) write_seqcount_begin(&syncp->seq); #endif } -static inline void u64_stats_update_end(struct u64_stats_sync *syncp) +static inline void u64_stats_update_end(struct u64_stats_sync *syncp __attribute__((unused))) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) write_seqcount_end(&syncp->seq); #endif } -static inline unsigned int u64_stats_fetch_begin(const struct u64_stats_sync *syncp) +static inline unsigned int u64_stats_fetch_begin(const struct u64_stats_sync *syncp __attribute__((unused))) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) return read_seqcount_begin(&syncp->seq); @@ -93,8 +93,8 @@ #endif } -static inline bool u64_stats_fetch_retry(const struct u64_stats_sync *syncp, - unsigned int start) +static inline bool u64_stats_fetch_retry(const struct u64_stats_sync *syncp __attribute__((unused)), + unsigned int start __attribute__((unused))) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) return read_seqcount_retry(&syncp->seq, start); @@ -112,7 +112,7 @@ * - UP 32bit must disable BH. * - 64bit have no problem atomically reading u64 values, irq safe. */ -static inline unsigned int u64_stats_fetch_begin_bh(const struct u64_stats_sync *syncp) +static inline unsigned int u64_stats_fetch_begin_bh(const struct u64_stats_sync *syncp __attribute__((unused))) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) return read_seqcount_begin(&syncp->seq); @@ -124,8 +124,8 @@ #endif } -static inline bool u64_stats_fetch_retry_bh(const struct u64_stats_sync *syncp, - unsigned int start) +static inline bool u64_stats_fetch_retry_bh(const struct u64_stats_sync *syncp __attribute__((unused)), + unsigned int start __attribute__((unused))) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) return read_seqcount_retry(&syncp->seq, start);