Commit 28f06c6f4ba2ff450b134b82a3285a26f232a2c1

Authored by Jaswinder Singh Rajput
Committed by Linus Torvalds
1 parent 082196242e

Documentation/connector/cn_test.c comment unused cn_test_want_notify()

Currently cn_test_want_notify() has no user.

So add an ifdef and a comment which tells us to not remove it.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

Documentation/connector/cn_test.c
... ... @@ -41,6 +41,12 @@
41 41 msg->seq, msg->ack, msg->len, (char *)msg->data);
42 42 }
43 43  
  44 +/*
  45 + * Do not remove this function even if no one is using it as
  46 + * this is an example of how to get notifications about new
  47 + * connector user registration
  48 + */
  49 +#if 0
44 50 static int cn_test_want_notify(void)
45 51 {
46 52 struct cn_ctl_msg *ctl;
... ... @@ -117,6 +123,7 @@
117 123 kfree_skb(skb);
118 124 return -EINVAL;
119 125 }
  126 +#endif
120 127  
121 128 static u32 cn_test_timer_counter;
122 129 static void cn_test_timer_func(unsigned long __data)