--- zzzz-none-000/linux-4.1.38/include/linux/u64_stats_sync.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/u64_stats_sync.h 2020-11-25 10:06:48.000000000 +0000 @@ -74,21 +74,21 @@ # define u64_stats_init(syncp) do { } while (0) #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); @@ -100,8 +100,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); @@ -119,7 +119,7 @@ * - UP 32bit must disable irqs. * - 64bit have no problem atomically reading u64 values, irq safe. */ -static inline unsigned int u64_stats_fetch_begin_irq(const struct u64_stats_sync *syncp) +static inline unsigned int u64_stats_fetch_begin_irq(const struct u64_stats_sync *syncp __attribute__((unused))) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) return read_seqcount_begin(&syncp->seq); @@ -131,8 +131,8 @@ #endif } -static inline bool u64_stats_fetch_retry_irq(const struct u64_stats_sync *syncp, - unsigned int start) +static inline bool u64_stats_fetch_retry_irq(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);