--- zzzz-none-000/linux-3.10.107/include/linux/u64_stats_sync.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/u64_stats_sync.h 2021-11-10 11:53:56.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);