FRV: Fix no-hardware-breakpoint case
authorDavid Howells <dhowells@redhat.com>
Mon, 14 Dec 2009 14:03:27 +0000 (14:03 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 14 Dec 2009 18:10:55 +0000 (10:10 -0800)
commit5185fb069972b653dd7177292e7510ff99d9e8aa
treef5380f93c457ab1fffa27a5a03ffee48106fbe60
parent464480f72e496067573e4f71bfbe3f5073d6fe33
FRV: Fix no-hardware-breakpoint case

If there is no hardware breakpoint support, modify_user_hw_breakpoint()
tries to return a NULL pointer through as an 'int' return value:

  In file included from kernel/exit.c:53:
  include/linux/hw_breakpoint.h: In function 'modify_user_hw_breakpoint':
  include/linux/hw_breakpoint.h:96: warning: return makes integer from pointer without a cast

Return 0 instead.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/hw_breakpoint.h