aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2026-09-21 16:10:07 +0800
committerMikulas Patocka <mpatocka@redhat.com>2026-09-21 15:59:20 +0200
commit53064d23f00f1b921f9f08555bfc5a1b229664a5 (patch)
treeadadbde4d74b1718490dc523e11ec097d11e0d4c /scripts/Makefile.thinlto
parentdm-writecache: Reduce metadata memory use by 8 bytes per cache block (diff)
dm: use assign_bit() where applicable
Convert open-coded if/else with set_bit/clear_bit to the assign_bit API. Done with Coccinelle semantic patch: // set_bit -> clear_bit => assign_bit @@ expression cond, bit, addr; @@ -if (cond) - set_bit(bit, addr); -else - clear_bit(bit, addr); +assign_bit(bit, addr, cond); // clear_bit -> set_bit => assign_bit @@ expression cond, bit, addr; @@ -if (cond) - clear_bit(bit, addr); -else - set_bit(bit, addr); +assign_bit(bit, addr, !cond); Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions