--- zzzz-none-000/linux-4.1.38/include/linux/uprobes.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/uprobes.h 2020-11-25 10:06:48.000000000 +0000 @@ -138,25 +138,25 @@ #define uprobe_get_trap_addr(regs) instruction_pointer(regs) static inline int -uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) +uprobe_register(struct inode *inode __maybe_unused, loff_t offset __maybe_unused, struct uprobe_consumer *uc __maybe_unused) { return -ENOSYS; } static inline int -uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool add) +uprobe_apply(struct inode *inode __maybe_unused, loff_t offset __maybe_unused, struct uprobe_consumer *uc __maybe_unused, bool add __maybe_unused) { return -ENOSYS; } static inline void -uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) +uprobe_unregister(struct inode *inode __maybe_unused, loff_t offset __maybe_unused, struct uprobe_consumer *uc __maybe_unused) { } -static inline int uprobe_mmap(struct vm_area_struct *vma) +static inline int uprobe_mmap(struct vm_area_struct *vma __maybe_unused) { return 0; } static inline void -uprobe_munmap(struct vm_area_struct *vma, unsigned long start, unsigned long end) +uprobe_munmap(struct vm_area_struct *vma __maybe_unused, unsigned long start __maybe_unused, unsigned long end __maybe_unused) { } static inline void uprobe_start_dup_mmap(void) @@ -166,23 +166,23 @@ { } static inline void -uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) +uprobe_dup_mmap(struct mm_struct *oldmm __maybe_unused, struct mm_struct *newmm __maybe_unused) { } -static inline void uprobe_notify_resume(struct pt_regs *regs) +static inline void uprobe_notify_resume(struct pt_regs *regs __maybe_unused) { } static inline bool uprobe_deny_signal(void) { return false; } -static inline void uprobe_free_utask(struct task_struct *t) +static inline void uprobe_free_utask(struct task_struct *t __maybe_unused) { } -static inline void uprobe_copy_process(struct task_struct *t, unsigned long flags) +static inline void uprobe_copy_process(struct task_struct *t __maybe_unused, unsigned long flags __maybe_unused) { } -static inline void uprobe_clear_state(struct mm_struct *mm) +static inline void uprobe_clear_state(struct mm_struct *mm __maybe_unused) { } #endif /* !CONFIG_UPROBES */