xtensa: hw_breakpoint: include header for missing prototype
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 20 Sep 2023 05:21:34 +0000 (22:21 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 20 Sep 2023 12:03:21 +0000 (05:03 -0700)
commit2e413b1ebc30937882ed894897bee226896f262e
tree5843683c232620e142c09abebf91cbd5631e916b
parent0f95df6246fe9d870cb9753c9376d72af84211a0
xtensa: hw_breakpoint: include header for missing prototype

Add the prototype for restore_dbreak() to <asm/hw_breakpoint.h> and use
that header in hw_breakpoint.c to prevent a build warning:

arch/xtensa/kernel/hw_breakpoint.c:263:6: warning: no previous prototype for 'restore_dbreak' [-Wmissing-prototypes]
  263 | void restore_dbreak(void)

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20230920052139.10570-12-rdunlap@infradead.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/hw_breakpoint.h
arch/xtensa/kernel/hw_breakpoint.c