On Jul 07 2021, Linus Torvalds wrote:
Christoph does: #define __put_user_asm(inst, res, x, ptr, bwl, reg) \ asm volatile ("\n" \ "1: #inst."#bwl" %2,%1\n" ... and then uses it with code like __put_user_asm(MOVES, __pu_err, __pu_val, ptr, b, d); and __get_user_asm("move", __gk_err, __gk_dst, __gk_src, u8, b, d); and the issue is that there's a '#' too many. The '#' turns the argument into a string,
No, it's inside a string, and the assembler just sees a comment starting with `#inst.'. Andreas. -- Andreas Schwab, schwab@xxxxxxxxxxxxxx GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."