aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNeil Horman <[email protected]>2013-12-23 08:29:42 -0500
committerDavid S. Miller <[email protected]>2013-12-31 13:58:40 -0500
commit0a9a8bfd29aa5ba2298dc80852cdbb63a42f6576 (patch)
tree8f7c6bbae6fbedaee2ba5a2b934e8579b7e1f1b8 /include/linux
parentc76f2a2c4c348e2de94b7ba10fcd3640a35d04fa (diff)
printk: Add a DEPRECATED macro
sctp has several points in its setsockopt path in which it issues deprecation warnings. It seems like it might be handy to macrotize such a warning so other subsystems can use it easily Signed-off-by: Neil Horman <[email protected]> CC: Greg Kroah-Hartman <[email protected]> CC: "David S. Miller" <[email protected]> CC: [email protected] CC: [email protected] Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/printk.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h
index 694925837a16..26fb95ce5080 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -88,6 +88,13 @@ struct va_format {
#define HW_ERR "[Hardware Error]: "
/*
+ * DEPRECATED
+ * Add this to a message whenever you want to warn user space about the use
+ * of a deprecated aspect of an API so they can stop using it
+ */
+#define DEPRECATED "[Deprecated]: "
+
+/*
* Dummy printk for disabled debugging statements to use whilst maintaining
* gcc's format and side-effect checking.
*/