xref: /dflybsd-src/sys/dev/drm/scripts/linux_misc.cocci (revision 220c9d77d60dd995be5edb6a5022087b33616d20)
1*220c9d77SFrançois Tigeot// Replace Linux constant names already defined differently in DragonFly
2*220c9d77SFrançois Tigeot// Usage: spatch --no-includes --sp-file scripts/linux_misc.cocci --in-place <files>
3*220c9d77SFrançois Tigeot
4*220c9d77SFrançois Tigeot@@ expression E1; @@
5*220c9d77SFrançois Tigeot
6*220c9d77SFrançois Tigeot(
7*220c9d77SFrançois Tigeot- LIST_HEAD(E1);
8*220c9d77SFrançois Tigeot+ LINUX_LIST_HEAD(E1);
9*220c9d77SFrançois Tigeot|
10*220c9d77SFrançois Tigeot- PAGE_MASK
11*220c9d77SFrançois Tigeot+ LINUX_PAGE_MASK
12*220c9d77SFrançois Tigeot|
13*220c9d77SFrançois Tigeot- RB_ROOT
14*220c9d77SFrançois Tigeot+ LINUX_RB_ROOT
15*220c9d77SFrançois Tigeot|
16*220c9d77SFrançois Tigeot- clflush(E1)
17*220c9d77SFrançois Tigeot+ linux_clflush(E1)
18*220c9d77SFrançois Tigeot)
19