--- zzzz-none-000/linux-3.10.107/include/linux/fs.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/fs.h 2021-11-10 11:53:56.000000000 +0000 @@ -850,11 +850,11 @@ return -EINVAL; } #else /* !CONFIG_DEBUG_WRITECOUNT */ -static inline void file_take_write(struct file *filp) {} -static inline void file_release_write(struct file *filp) {} -static inline void file_reset_write(struct file *filp) {} -static inline void file_check_state(struct file *filp) {} -static inline int file_check_writeable(struct file *filp) +static inline void file_take_write(struct file *filp __maybe_unused) {} +static inline void file_release_write(struct file *filp __maybe_unused) {} +static inline void file_reset_write(struct file *filp __maybe_unused) {} +static inline void file_check_state(struct file *filp __maybe_unused) {} +static inline int file_check_writeable(struct file *filp __maybe_unused) { return 0; } @@ -2275,11 +2275,11 @@ atomic_inc(&inode->i_readcount); } #else -static inline void i_readcount_dec(struct inode *inode) +static inline void i_readcount_dec(struct inode *inode __maybe_unused) { return; } -static inline void i_readcount_inc(struct inode *inode) +static inline void i_readcount_inc(struct inode *inode __maybe_unused) { return; } @@ -2330,7 +2330,7 @@ #ifdef CONFIG_DEBUG_LOCK_ALLOC extern void lockdep_annotate_inode_mutex_key(struct inode *inode); #else -static inline void lockdep_annotate_inode_mutex_key(struct inode *inode) { }; +static inline void lockdep_annotate_inode_mutex_key(struct inode *inode __attribute__((unused))) { }; #endif extern void unlock_new_inode(struct inode *); extern unsigned int get_next_ino(void); @@ -2422,7 +2422,9 @@ size_t len, loff_t *ppos); extern int xip_truncate_page(struct address_space *mapping, loff_t from); #else -static inline int xip_truncate_page(struct address_space *mapping, loff_t from) +static inline int xip_truncate_page(struct address_space *mapping + __maybe_unused, + loff_t from __maybe_unused) { return 0; } @@ -2637,7 +2639,7 @@ }; static inline __printf(1, 2) -void __simple_attr_check_format(const char *fmt, ...) +void __simple_attr_check_format(const char *fmt __maybe_unused, ...) { /* don't do anything, just let the compiler check the arguments; */ }