unrestricted values are unrestricted even after a cast
This isn't as tight as it should be, but it basically treats the special
unrestricted constants (zero and all ones) as unrestricted values even
after they have been explicitly cast to teh restricted type.
And yes, this should actually check that type matches too, but I think
all the cases that care will warn about the types not matching
separately anyway.
This is the quick hack.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 file changed