ChangeSet 1.2232, 2005/03/27 16:25:11-08:00, [EMAIL PROTECTED]

        Add '__nocast' sparse annotation to allow people to mark places
        where implicit casts are not appropriate.
        
        This can be used to mark unsigned integers as being uncastable
        to signed, for example. Or enums as not degrading to integers
        and vice versa.



 compiler.h |    2 ++
 1 files changed, 2 insertions(+)


diff -Nru a/include/linux/compiler.h b/include/linux/compiler.h
--- a/include/linux/compiler.h  2005-03-27 17:06:26 -08:00
+++ b/include/linux/compiler.h  2005-03-27 17:06:26 -08:00
@@ -8,6 +8,7 @@
 # define __kernel      /* default address space */
 # define __safe                __attribute__((safe))
 # define __force       __attribute__((force))
+# define __nocast      __attribute__((nocast))
 # define __iomem       __attribute__((noderef, address_space(2)))
 # define __acquires(x) __attribute__((context(0,1)))
 # define __releases(x) __attribute__((context(1,0)))
@@ -21,6 +22,7 @@
 # define __kernel
 # define __safe
 # define __force
+# define __nocast
 # define __iomem
 # define __chk_user_ptr(x) (void)0
 # define __chk_io_ptr(x) (void)0
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to