Tag: b356c1c1f90a347b6f67d9272dda7ecf47e0b46c

IB/srpt: Convert use of __constant_cpu_to_beXX to cpu_to_beXX

Author: Vaishali Thakkar <vthakkar1994@gmail.com> In little endian cases, the macro cpu_to_be{16,32,64} unfolds to __swab{16,32,64} which provides special case for constants. In big endian cases, __constant_cpu_to_be{16,32,64} and cpu_to_be{16,32,64} expand directly to the same expression. So, replace __constant_cpu_to_be{16,32,64} with cpu_to_be{16,32,64} with the goal of getting rid of the definitions of __constant_cpu_to_be{16,32,64} completely. The Coccinelle semantic patch that …

Continue reading