lib/test_user_copy.c:96:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (ret |= test(umem_src == NULL, "kmalloc failed"))
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/test_user_copy.c:96:10: note: place parentheses around the assignment to silence this warning
if (ret |= test(umem_src == NULL, "kmalloc failed"))
^
( )
lib/test_user_copy.c:96:10: note: use '!=' to turn this compound assignment into an inequality comparison
if (ret |= test(umem_src == NULL, "kmalloc failed"))
^~
!=
Patch sent: https://lore.kernel.org/lkml/[email protected]/
Fixed: https://git.kernel.org/torvalds/c/341115822f8832f0c2d8af2f7e151c4c9a77bcd1
Although Linus wasn't too happy about it... https://lore.kernel.org/lkml/CAHk-=whxf5HVdaXqL6RgHCLzb2LNn3U2n_x4GWQZroCC+evRoA@mail.gmail.com/
Most helpful comment
Accepted: https://git.kernel.org/brauner/c/dde077317256621fc4a84221f9c91f6a0e9b5463