Skip to content
Commit aa00edc1 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

make IS_ERR_VALUE() complain about non-pointer-sized arguments



Now that the allmodconfig x86-64 build is clean wrt IS_ERR_VALUE() uses
on integers, add a cast to a pointer and back to the argument, so that
any new mis-uses of IS_ERR_VALUE() will cause warnings like

   warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

so that we don't re-introduce any bogus uses.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5d22fc25
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment