../samples/ftrace/ftrace-direct-modify.c: In function ‘simple_thread’: ../samples/ftrace/ftrace-direct-modify.c:305:23: error: too few arguments to function ‘modify_ftrace_direct’; expected 4, have 2 305 | ret = modify_ftrace_direct(&direct, tramps[t]); | ^~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-modify.c:4: ../include/linux/ftrace.h:542:5: note: declared here 542 | int modify_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, bool lock_direct_mutex); | ^~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-modify.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct-modify.c:321:15: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 321 | ret = register_ftrace_direct(&direct, my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-modify.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct-modify.c:331:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 331 | unregister_ftrace_direct(&direct, my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-modify.o] Error 1 make[5]: *** Waiting for unfinished jobs.... ../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct.c:210:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 210 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct.c:215:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 215 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct.o] Error 1 ../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct-too.c:243:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 243 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-too.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct-too.c:248:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 248 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-too.o] Error 1 ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘simple_thread’: ../samples/ftrace/ftrace-direct-multi-modify.c:347:23: error: too few arguments to function ‘modify_ftrace_direct’; expected 4, have 2 347 | ret = modify_ftrace_direct(&direct, tramps[t]); | ^~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-multi-modify.c:4: ../include/linux/ftrace.h:542:5: note: declared here 542 | int modify_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, bool lock_direct_mutex); | ^~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘ftrace_direct_multi_init’: ../samples/ftrace/ftrace-direct-multi-modify.c:365:15: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 365 | ret = register_ftrace_direct(&direct, my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘ftrace_direct_multi_exit’: ../samples/ftrace/ftrace-direct-multi-modify.c:375:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 375 | unregister_ftrace_direct(&direct, my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-multi-modify.o] Error 1 ../samples/ftrace/ftrace-direct-multi.c: In function ‘ftrace_direct_multi_init’: ../samples/ftrace/ftrace-direct-multi.c:228:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 228 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-multi.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi.c: In function ‘ftrace_direct_multi_exit’: ../samples/ftrace/ftrace-direct-multi.c:233:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 233 | unregister_ftrace_direct(&direct, (unsigned long) my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-multi.o] Error 1 ../samples/ftrace/sample-trace-array.c:20:20: warning: symbol 'tr' was not declared. Should it be static? make[4]: *** [../scripts/Makefile.build:556: samples/ftrace] Error 2 make[3]: *** [../scripts/Makefile.build:556: samples] Error 2 make[3]: *** Waiting for unfinished jobs.... ../kernel/bpf/trampoline.c:170:19: warning: symbol 'direct_ops' was not declared. Should it be static? ../kernel/trace/ftrace.c:232:49: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:232:49: expected struct ftrace_ops *ops ../kernel/trace/ftrace.c:232:49: got struct ftrace_ops [noderef] __rcu *[addressable] [toplevel] ftrace_ops_list ../kernel/trace/ftrace.c:317:16: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:317:16: expected struct ftrace_ops **p ../kernel/trace/ftrace.c:317:16: got struct ftrace_ops [noderef] __rcu **list ../kernel/trace/ftrace.c:317:50: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:317:50: expected struct ftrace_ops **p ../kernel/trace/ftrace.c:317:50: got struct ftrace_ops [noderef] __rcu ** ../kernel/trace/ftrace.c:324:12: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:324:12: expected struct ftrace_ops * ../kernel/trace/ftrace.c:324:12: got struct ftrace_ops [noderef] __rcu *next ../kernel/trace/ftrace.c:1067:43: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:1067:43: expected struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1067:43: got struct ftrace_hash * ../kernel/trace/ftrace.c:1068:43: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:1068:43: expected struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1068:43: got struct ftrace_hash * ../kernel/trace/ftrace.c:1300:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1300:40: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:1300:40: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1301:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1301:40: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:1301:40: got struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1302:37: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1302:37: expected struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1302:37: got struct ftrace_hash * ../kernel/trace/ftrace.c:1303:38: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1303:38: expected struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1303:38: got struct ftrace_hash * ../kernel/trace/ftrace.c:2102:54: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2102:54: expected struct ftrace_hash *old_hash ../kernel/trace/ftrace.c:2102:54: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1507:9: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:1507:9: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:1507:9: struct ftrace_hash * ../kernel/trace/ftrace.c:1523:39: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1524:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1525:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1526:42: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1697:18: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1698:43: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1759:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1760:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:2080:50: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2091:50: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2574:53: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2585:36: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3386:51: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3387:66: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3393:52: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3394:66: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3407:41: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3408:51: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3411:52: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3415:52: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3430:39: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3431:42: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3439:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3445:81: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3449:54: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3451:56: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3481:60: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3482:49: warning: incorrect type in argument 3 (different address spaces) ../kernel/trace/ftrace.c:3521:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3523:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3525:48: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3527:49: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3533:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3534:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3540:34: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3541:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3543:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3544:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3549:53: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3550:54: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3597:31: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3598:32: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3613:59: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3614:59: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3619:43: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3620:43: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3622:39: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3623:40: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3665:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3666:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3667:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3668:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3954:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3971:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:4657:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:4660:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5071:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5073:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5453:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5597:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5603:34: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5868:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5870:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6127:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:6132:21: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6148:29: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:6152:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6159:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6227:30: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:6227:30: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:6227:30: struct ftrace_hash * ../kernel/trace/ftrace.c:6294:30: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:6294:30: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:6294:30: struct ftrace_hash * ../kernel/trace/ftrace.c:6586:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6588:43: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6657:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6665:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6730:47: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:6731:55: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:7450:46: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7451:47: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7455:44: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7473:18: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:7473:66: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:7525:59: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7526:59: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7913:62: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7914:62: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7958:36: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:7958:36: struct ftrace_ops [noderef] __rcu * ../kernel/trace/ftrace.c:7958:36: struct ftrace_ops * ../kernel/trace/ftrace.c:8734:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:8734:14: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:8734:14: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:8783:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:8783:14: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:8783:14: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:3441:29: warning: too many warnings Warning: ../kernel/trace/ftrace.c:5985 function parameter 'ip' not described in 'register_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6020 function parameter 'ip' not described in 'unregister_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6052 function parameter 'ip' not described in 'modify_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6052 function parameter 'lock_direct_mutex' not described in 'modify_ftrace_direct' make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 ../kernel/sys.c:1144:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1144:32: expected struct task_struct *p1 ../kernel/sys.c:1144:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1894:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct.c:210:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 210 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct.c:215:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 215 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct.o] Error 1 make[5]: *** Waiting for unfinished jobs.... ../samples/ftrace/ftrace-direct-modify.c: In function ‘simple_thread’: ../samples/ftrace/ftrace-direct-modify.c:305:23: error: too few arguments to function ‘modify_ftrace_direct’; expected 4, have 2 305 | ret = modify_ftrace_direct(&direct, tramps[t]); | ^~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-modify.c:4: ../include/linux/ftrace.h:542:5: note: declared here 542 | int modify_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, bool lock_direct_mutex); | ^~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-modify.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct-modify.c:321:15: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 321 | ret = register_ftrace_direct(&direct, my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-modify.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct-modify.c:331:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 331 | unregister_ftrace_direct(&direct, my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-modify.o] Error 1 ../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct-too.c:243:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 243 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-too.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct-too.c:248:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 248 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-too.o] Error 1 ../samples/ftrace/ftrace-direct-multi.c: In function ‘ftrace_direct_multi_init’: ../samples/ftrace/ftrace-direct-multi.c:228:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 228 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-multi.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi.c: In function ‘ftrace_direct_multi_exit’: ../samples/ftrace/ftrace-direct-multi.c:233:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 233 | unregister_ftrace_direct(&direct, (unsigned long) my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-multi.o] Error 1 ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘simple_thread’: ../samples/ftrace/ftrace-direct-multi-modify.c:347:23: error: too few arguments to function ‘modify_ftrace_direct’; expected 4, have 2 347 | ret = modify_ftrace_direct(&direct, tramps[t]); | ^~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-multi-modify.c:4: ../include/linux/ftrace.h:542:5: note: declared here 542 | int modify_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, bool lock_direct_mutex); | ^~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘ftrace_direct_multi_init’: ../samples/ftrace/ftrace-direct-multi-modify.c:365:15: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 365 | ret = register_ftrace_direct(&direct, my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘ftrace_direct_multi_exit’: ../samples/ftrace/ftrace-direct-multi-modify.c:375:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 375 | unregister_ftrace_direct(&direct, my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-multi-modify.o] Error 1 make[4]: *** [../scripts/Makefile.build:556: samples/ftrace] Error 2 make[3]: *** [../scripts/Makefile.build:556: samples] Error 2 make[3]: *** Waiting for unfinished jobs.... ../kernel/trace/ftrace.c:232:49: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:232:49: expected struct ftrace_ops *ops ../kernel/trace/ftrace.c:232:49: got struct ftrace_ops [noderef] __rcu *[addressable] [toplevel] ftrace_ops_list ../kernel/trace/ftrace.c:317:16: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:317:16: expected struct ftrace_ops **p ../kernel/trace/ftrace.c:317:16: got struct ftrace_ops [noderef] __rcu **list ../kernel/trace/ftrace.c:317:50: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:317:50: expected struct ftrace_ops **p ../kernel/trace/ftrace.c:317:50: got struct ftrace_ops [noderef] __rcu ** ../kernel/trace/ftrace.c:324:12: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:324:12: expected struct ftrace_ops * ../kernel/trace/ftrace.c:324:12: got struct ftrace_ops [noderef] __rcu *next ../kernel/trace/ftrace.c:1067:43: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:1067:43: expected struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1067:43: got struct ftrace_hash * ../kernel/trace/ftrace.c:1068:43: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:1068:43: expected struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1068:43: got struct ftrace_hash * ../kernel/trace/ftrace.c:1300:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1300:40: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:1300:40: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1301:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1301:40: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:1301:40: got struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1302:37: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1302:37: expected struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1302:37: got struct ftrace_hash * ../kernel/trace/ftrace.c:1303:38: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1303:38: expected struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1303:38: got struct ftrace_hash * ../kernel/trace/ftrace.c:2102:54: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2102:54: expected struct ftrace_hash *old_hash ../kernel/trace/ftrace.c:2102:54: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1507:9: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:1507:9: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:1507:9: struct ftrace_hash * ../kernel/trace/ftrace.c:1523:39: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1524:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1525:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1526:42: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1697:18: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1698:43: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1759:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1760:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:2080:50: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2091:50: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2574:53: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2585:36: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3381:51: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3382:66: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3388:52: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3389:66: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3402:41: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3403:51: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3406:52: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3410:52: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3425:39: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3426:42: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3434:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3440:81: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3444:54: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3446:56: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3476:60: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3477:49: warning: incorrect type in argument 3 (different address spaces) ../kernel/trace/ftrace.c:3516:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3518:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3520:48: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3522:49: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3528:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3529:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3535:34: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3536:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3538:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3539:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3544:53: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3545:54: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3592:31: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3593:32: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3608:59: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3609:59: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3614:43: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3615:43: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3617:39: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3618:40: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3660:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3661:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3662:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3663:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3949:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3966:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:4652:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:4655:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5066:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5068:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5448:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5592:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5598:34: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5863:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5865:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6114:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:6119:21: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6135:29: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:6139:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6146:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6214:30: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:6214:30: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:6214:30: struct ftrace_hash * ../kernel/trace/ftrace.c:6281:30: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:6281:30: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:6281:30: struct ftrace_hash * ../kernel/trace/ftrace.c:6573:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6575:43: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6644:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6652:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6717:47: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:6718:55: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:7437:46: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7438:47: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7442:44: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7460:18: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:7460:66: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:7512:59: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7513:59: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7900:62: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7901:62: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7945:36: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:7945:36: struct ftrace_ops [noderef] __rcu * ../kernel/trace/ftrace.c:7945:36: struct ftrace_ops * ../kernel/trace/ftrace.c:8721:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:8721:14: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:8721:14: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:8770:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:8770:14: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:8770:14: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:3436:29: warning: too many warnings Warning: ../kernel/trace/ftrace.c:5980 function parameter 'ip' not described in 'register_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6011 function parameter 'ip' not described in 'unregister_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6043 function parameter 'ip' not described in 'modify_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6043 function parameter 'lock_direct_mutex' not described in 'modify_ftrace_direct' ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:434:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 ../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct-too.c:243:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 243 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-too.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct-too.c:248:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 248 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-too.o] Error 1 make[5]: *** Waiting for unfinished jobs.... ../samples/ftrace/ftrace-direct-modify.c: In function ‘simple_thread’: ../samples/ftrace/ftrace-direct-modify.c:305:23: error: too few arguments to function ‘modify_ftrace_direct’; expected 4, have 2 305 | ret = modify_ftrace_direct(&direct, tramps[t]); | ^~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-modify.c:4: ../include/linux/ftrace.h:542:5: note: declared here 542 | int modify_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, bool lock_direct_mutex); | ^~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-modify.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct-modify.c:321:15: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 321 | ret = register_ftrace_direct(&direct, my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-modify.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct-modify.c:331:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 331 | unregister_ftrace_direct(&direct, my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-modify.o] Error 1 ../samples/ftrace/ftrace-direct-multi.c: In function ‘ftrace_direct_multi_init’: ../samples/ftrace/ftrace-direct-multi.c:228:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 228 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-multi.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi.c: In function ‘ftrace_direct_multi_exit’: ../samples/ftrace/ftrace-direct-multi.c:233:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 233 | unregister_ftrace_direct(&direct, (unsigned long) my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-multi.o] Error 1 ../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_init’: ../samples/ftrace/ftrace-direct.c:210:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 210 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct.c:5: ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_exit’: ../samples/ftrace/ftrace-direct.c:215:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 215 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct.o] Error 1 ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘simple_thread’: ../samples/ftrace/ftrace-direct-multi-modify.c:347:23: error: too few arguments to function ‘modify_ftrace_direct’; expected 4, have 2 347 | ret = modify_ftrace_direct(&direct, tramps[t]); | ^~~~~~~~~~~~~~~~~~~~ In file included from ../samples/ftrace/ftrace-direct-multi-modify.c:4: ../include/linux/ftrace.h:542:5: note: declared here 542 | int modify_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, bool lock_direct_mutex); | ^~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘ftrace_direct_multi_init’: ../samples/ftrace/ftrace-direct-multi-modify.c:365:15: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 365 | ret = register_ftrace_direct(&direct, my_tramp); | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:539:5: note: declared here 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); | ^~~~~~~~~~~~~~~~~~~~~~ ../samples/ftrace/ftrace-direct-multi-modify.c: In function ‘ftrace_direct_multi_exit’: ../samples/ftrace/ftrace-direct-multi-modify.c:375:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 375 | unregister_ftrace_direct(&direct, my_tramp, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/ftrace.h:540:5: note: declared here 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-multi-modify.o] Error 1 make[4]: *** [../scripts/Makefile.build:556: samples/ftrace] Error 2 make[3]: *** [../scripts/Makefile.build:556: samples] Error 2 make[3]: *** Waiting for unfinished jobs.... ../kernel/sys.c:1144:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1144:32: expected struct task_struct *p1 ../kernel/sys.c:1144:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1894:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../kernel/bpf/trampoline.c:170:19: warning: symbol 'direct_ops' was not declared. Should it be static? ../kernel/trace/ftrace.c:232:49: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:232:49: expected struct ftrace_ops *ops ../kernel/trace/ftrace.c:232:49: got struct ftrace_ops [noderef] __rcu *[addressable] [toplevel] ftrace_ops_list ../kernel/trace/ftrace.c:317:16: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:317:16: expected struct ftrace_ops **p ../kernel/trace/ftrace.c:317:16: got struct ftrace_ops [noderef] __rcu **list ../kernel/trace/ftrace.c:317:50: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:317:50: expected struct ftrace_ops **p ../kernel/trace/ftrace.c:317:50: got struct ftrace_ops [noderef] __rcu ** ../kernel/trace/ftrace.c:324:12: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:324:12: expected struct ftrace_ops * ../kernel/trace/ftrace.c:324:12: got struct ftrace_ops [noderef] __rcu *next ../kernel/trace/ftrace.c:1067:43: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:1067:43: expected struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1067:43: got struct ftrace_hash * ../kernel/trace/ftrace.c:1068:43: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:1068:43: expected struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1068:43: got struct ftrace_hash * ../kernel/trace/ftrace.c:1300:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1300:40: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:1300:40: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1301:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1301:40: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:1301:40: got struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1302:37: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1302:37: expected struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1302:37: got struct ftrace_hash * ../kernel/trace/ftrace.c:1303:38: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1303:38: expected struct ftrace_hash [noderef] __rcu *notrace_hash ../kernel/trace/ftrace.c:1303:38: got struct ftrace_hash * ../kernel/trace/ftrace.c:2102:54: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2102:54: expected struct ftrace_hash *old_hash ../kernel/trace/ftrace.c:2102:54: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:1507:9: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:1507:9: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:1507:9: struct ftrace_hash * ../kernel/trace/ftrace.c:1523:39: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1524:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1525:40: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1526:42: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:1697:18: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1698:43: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1759:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:1760:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:2080:50: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2091:50: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2574:53: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:2585:36: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3386:51: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3387:66: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3393:52: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3394:66: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3407:41: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3408:51: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3411:52: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3415:52: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3430:39: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3431:42: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3439:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3445:81: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3449:54: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3451:56: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3481:60: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:3482:49: warning: incorrect type in argument 3 (different address spaces) ../kernel/trace/ftrace.c:3521:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3523:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3525:48: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3527:49: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3533:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3534:17: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3540:34: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3541:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3543:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3544:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3549:53: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3550:54: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3597:31: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3598:32: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3613:59: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3614:59: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3619:43: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3620:43: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3622:39: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3623:40: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3665:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3666:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:3667:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3668:46: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3954:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:3971:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:4657:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:4660:22: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5071:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5073:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5453:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5597:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5603:34: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5868:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:5870:27: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6127:48: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:6132:21: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6148:29: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:6152:19: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6159:45: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6227:30: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:6227:30: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:6227:30: struct ftrace_hash * ../kernel/trace/ftrace.c:6294:30: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:6294:30: struct ftrace_hash [noderef] __rcu * ../kernel/trace/ftrace.c:6294:30: struct ftrace_hash * ../kernel/trace/ftrace.c:6586:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6588:43: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6657:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6665:35: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:6730:47: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:6731:55: warning: incorrect type in initializer (different address spaces) ../kernel/trace/ftrace.c:7450:46: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7451:47: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7455:44: warning: incorrect type in argument 1 (different address spaces) ../kernel/trace/ftrace.c:7473:18: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:7473:66: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:7525:59: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7526:59: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7913:62: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7914:62: warning: incorrect type in argument 2 (different address spaces) ../kernel/trace/ftrace.c:7958:36: error: incompatible types in comparison expression (different address spaces): ../kernel/trace/ftrace.c:7958:36: struct ftrace_ops [noderef] __rcu * ../kernel/trace/ftrace.c:7958:36: struct ftrace_ops * ../kernel/trace/ftrace.c:8734:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:8734:14: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:8734:14: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:8783:14: warning: incorrect type in assignment (different address spaces) ../kernel/trace/ftrace.c:8783:14: expected struct ftrace_hash *hash ../kernel/trace/ftrace.c:8783:14: got struct ftrace_hash [noderef] __rcu *filter_hash ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:230:20: warning: dereference of noderef expression ../kernel/trace/ftrace.c:3441:29: warning: too many warnings Warning: ../kernel/trace/ftrace.c:5985 function parameter 'ip' not described in 'register_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6020 function parameter 'ip' not described in 'unregister_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6052 function parameter 'ip' not described in 'modify_ftrace_direct' Warning: ../kernel/trace/ftrace.c:6052 function parameter 'lock_direct_mutex' not described in 'modify_ftrace_direct' ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:434:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 New errors added --- /tmp/tmp.fJJOhziOO5 2025-09-23 18:18:10.198588666 -0700 +++ /tmp/tmp.qdsSX5fMx8 2025-09-23 18:18:35.363661905 -0700 @@ -1,8 +1,3 @@ -../kernel/sys.c:1144:32: warning: incorrect type in argument 1 (different address spaces) -../kernel/sys.c:1144:32: expected struct task_struct *p1 -../kernel/sys.c:1144:32: got struct task_struct [noderef] __rcu *real_parent -../kernel/sys.c:1894:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block -../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit -../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_init’: -../samples/ftrace/ftrace-direct.c:210:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 - 210 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); +../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_init’: +../samples/ftrace/ftrace-direct-too.c:243:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 + 243 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); @@ -10 +5 @@ -In file included from ../samples/ftrace/ftrace-direct.c:5: +In file included from ../samples/ftrace/ftrace-direct-too.c:5: @@ -14,3 +9,3 @@ -../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_exit’: -../samples/ftrace/ftrace-direct.c:215:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 - 215 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); +../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_exit’: +../samples/ftrace/ftrace-direct-too.c:248:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 + 248 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); @@ -21 +16 @@ -make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct.o] Error 1 +make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-too.o] Error 1 @@ -46,16 +40,0 @@ -../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_init’: -../samples/ftrace/ftrace-direct-too.c:243:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 - 243 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); - | ^~~~~~~~~~~~~~~~~~~~~~ -In file included from ../samples/ftrace/ftrace-direct-too.c:5: -../include/linux/ftrace.h:539:5: note: declared here - 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); - | ^~~~~~~~~~~~~~~~~~~~~~ -../samples/ftrace/ftrace-direct-too.c: In function ‘ftrace_direct_exit’: -../samples/ftrace/ftrace-direct-too.c:248:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 - 248 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -../include/linux/ftrace.h:540:5: note: declared here - 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, - | ^~~~~~~~~~~~~~~~~~~~~~~~ -make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct-too.o] Error 1 @@ -77,0 +57,17 @@ +../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_init’: +../samples/ftrace/ftrace-direct.c:210:16: error: too few arguments to function ‘register_ftrace_direct’; expected 3, have 2 + 210 | return register_ftrace_direct(&direct, (unsigned long) my_tramp); + | ^~~~~~~~~~~~~~~~~~~~~~ +In file included from ../samples/ftrace/ftrace-direct.c:5: +../include/linux/ftrace.h:539:5: note: declared here + 539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr); + | ^~~~~~~~~~~~~~~~~~~~~~ +../samples/ftrace/ftrace-direct.c: In function ‘ftrace_direct_exit’: +../samples/ftrace/ftrace-direct.c:215:9: error: too few arguments to function ‘unregister_ftrace_direct’; expected 4, have 3 + 215 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/ftrace.h:540:5: note: declared here + 540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, + | ^~~~~~~~~~~~~~~~~~~~~~~~ +make[5]: *** [../scripts/Makefile.build:287: samples/ftrace/ftrace-direct.o] Error 1 +../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit @@ -103,0 +100,5 @@ +../kernel/sys.c:1144:32: warning: incorrect type in argument 1 (different address spaces) +../kernel/sys.c:1144:32: expected struct task_struct *p1 +../kernel/sys.c:1144:32: got struct task_struct [noderef] __rcu *real_parent +../kernel/sys.c:1894:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block +../kernel/bpf/trampoline.c:170:19: warning: symbol 'direct_ops' was not declared. Should it be static? @@ -152,86 +153,86 @@ -../kernel/trace/ftrace.c:3381:51: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3382:66: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3388:52: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3389:66: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3402:41: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3403:51: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3406:52: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3410:52: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3425:39: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3426:42: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3434:17: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3440:81: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3444:54: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3446:56: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3476:60: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:3477:49: warning: incorrect type in argument 3 (different address spaces) -../kernel/trace/ftrace.c:3516:45: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3518:46: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3520:48: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3522:49: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3528:17: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3529:17: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3535:34: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3536:35: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3538:45: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3539:46: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3544:53: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3545:54: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3592:31: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3593:32: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3608:59: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3609:59: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3614:43: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3615:43: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3617:39: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3618:40: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3660:48: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3661:48: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:3662:45: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3663:46: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3949:14: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:3966:22: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:4652:22: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:4655:22: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:5066:27: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:5068:27: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:5448:19: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:5592:19: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:5598:34: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:5863:27: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:5865:27: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:6114:48: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:6119:21: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:6135:29: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:6139:19: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:6146:45: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:6214:30: error: incompatible types in comparison expression (different address spaces): -../kernel/trace/ftrace.c:6214:30: struct ftrace_hash [noderef] __rcu * -../kernel/trace/ftrace.c:6214:30: struct ftrace_hash * -../kernel/trace/ftrace.c:6281:30: error: incompatible types in comparison expression (different address spaces): -../kernel/trace/ftrace.c:6281:30: struct ftrace_hash [noderef] __rcu * -../kernel/trace/ftrace.c:6281:30: struct ftrace_hash * -../kernel/trace/ftrace.c:6573:35: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:6575:43: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:6644:35: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:6652:35: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:6717:47: warning: incorrect type in initializer (different address spaces) -../kernel/trace/ftrace.c:6718:55: warning: incorrect type in initializer (different address spaces) -../kernel/trace/ftrace.c:7437:46: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:7438:47: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:7442:44: warning: incorrect type in argument 1 (different address spaces) -../kernel/trace/ftrace.c:7460:18: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:7460:66: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:7512:59: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:7513:59: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:7900:62: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:7901:62: warning: incorrect type in argument 2 (different address spaces) -../kernel/trace/ftrace.c:7945:36: error: incompatible types in comparison expression (different address spaces): -../kernel/trace/ftrace.c:7945:36: struct ftrace_ops [noderef] __rcu * -../kernel/trace/ftrace.c:7945:36: struct ftrace_ops * -../kernel/trace/ftrace.c:8721:14: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:8721:14: expected struct ftrace_hash *hash -../kernel/trace/ftrace.c:8721:14: got struct ftrace_hash [noderef] __rcu *filter_hash -../kernel/trace/ftrace.c:8770:14: warning: incorrect type in assignment (different address spaces) -../kernel/trace/ftrace.c:8770:14: expected struct ftrace_hash *hash -../kernel/trace/ftrace.c:8770:14: got struct ftrace_hash [noderef] __rcu *filter_hash +../kernel/trace/ftrace.c:3386:51: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3387:66: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3393:52: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3394:66: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3407:41: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3408:51: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3411:52: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3415:52: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3430:39: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3431:42: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3439:17: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3445:81: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3449:54: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3451:56: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3481:60: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:3482:49: warning: incorrect type in argument 3 (different address spaces) +../kernel/trace/ftrace.c:3521:45: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3523:46: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3525:48: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3527:49: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3533:17: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3534:17: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3540:34: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3541:35: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3543:45: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3544:46: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3549:53: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3550:54: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3597:31: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3598:32: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3613:59: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3614:59: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3619:43: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3620:43: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3622:39: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3623:40: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3665:48: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3666:48: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:3667:45: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3668:46: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3954:14: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:3971:22: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:4657:22: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:4660:22: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:5071:27: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:5073:27: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:5453:19: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:5597:19: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:5603:34: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:5868:27: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:5870:27: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:6127:48: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:6132:21: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:6148:29: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:6152:19: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:6159:45: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:6227:30: error: incompatible types in comparison expression (different address spaces): +../kernel/trace/ftrace.c:6227:30: struct ftrace_hash [noderef] __rcu * +../kernel/trace/ftrace.c:6227:30: struct ftrace_hash * +../kernel/trace/ftrace.c:6294:30: error: incompatible types in comparison expression (different address spaces): +../kernel/trace/ftrace.c:6294:30: struct ftrace_hash [noderef] __rcu * +../kernel/trace/ftrace.c:6294:30: struct ftrace_hash * +../kernel/trace/ftrace.c:6586:35: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:6588:43: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:6657:35: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:6665:35: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:6730:47: warning: incorrect type in initializer (different address spaces) +../kernel/trace/ftrace.c:6731:55: warning: incorrect type in initializer (different address spaces) +../kernel/trace/ftrace.c:7450:46: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:7451:47: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:7455:44: warning: incorrect type in argument 1 (different address spaces) +../kernel/trace/ftrace.c:7473:18: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:7473:66: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:7525:59: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:7526:59: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:7913:62: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:7914:62: warning: incorrect type in argument 2 (different address spaces) +../kernel/trace/ftrace.c:7958:36: error: incompatible types in comparison expression (different address spaces): +../kernel/trace/ftrace.c:7958:36: struct ftrace_ops [noderef] __rcu * +../kernel/trace/ftrace.c:7958:36: struct ftrace_ops * +../kernel/trace/ftrace.c:8734:14: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:8734:14: expected struct ftrace_hash *hash +../kernel/trace/ftrace.c:8734:14: got struct ftrace_hash [noderef] __rcu *filter_hash +../kernel/trace/ftrace.c:8783:14: warning: incorrect type in assignment (different address spaces) +../kernel/trace/ftrace.c:8783:14: expected struct ftrace_hash *hash +../kernel/trace/ftrace.c:8783:14: got struct ftrace_hash [noderef] __rcu *filter_hash @@ -241,5 +242,5 @@ -../kernel/trace/ftrace.c:3436:29: warning: too many warnings -Warning: ../kernel/trace/ftrace.c:5980 function parameter 'ip' not described in 'register_ftrace_direct' -Warning: ../kernel/trace/ftrace.c:6011 function parameter 'ip' not described in 'unregister_ftrace_direct' -Warning: ../kernel/trace/ftrace.c:6043 function parameter 'ip' not described in 'modify_ftrace_direct' -Warning: ../kernel/trace/ftrace.c:6043 function parameter 'lock_direct_mutex' not described in 'modify_ftrace_direct' +../kernel/trace/ftrace.c:3441:29: warning: too many warnings +Warning: ../kernel/trace/ftrace.c:5985 function parameter 'ip' not described in 'register_ftrace_direct' +Warning: ../kernel/trace/ftrace.c:6020 function parameter 'ip' not described in 'unregister_ftrace_direct' +Warning: ../kernel/trace/ftrace.c:6052 function parameter 'ip' not described in 'modify_ftrace_direct' +Warning: ../kernel/trace/ftrace.c:6052 function parameter 'lock_direct_mutex' not described in 'modify_ftrace_direct' Per-file breakdown --- /tmp/tmp.HR2pEoeXqG 2025-09-23 18:18:35.374133143 -0700 +++ /tmp/tmp.c6CkxjmY8E 2025-09-23 18:18:35.378133116 -0700 @@ -2,0 +3 @@ + 1 ../kernel/bpf/trampoline.c