virtual report virtual org @unsupp_fops@ identifier fops; expression e; identifier m != {owner, open, release, llseek, read, write, poll, unlocked_ioctl}; @@ struct file_operations fops = { .m = e, }; @unsupp_debugfs_fops@ expression name, mode, parent, data; identifier unsupp_fops.fops; position p; @@ debugfs_create_file@p(name, mode, parent, data, &fops) @script:python depends on report@ p << unsupp_debugfs_fops.p; @@ coccilib.report.print_report(p[0], "unsupported file_operations given to debugfs") @script:python depends on org@ p << unsupp_debugfs_fops.p; @@ cocci.print_main("unsupported file_operations given to debugfs", p)