Skip to content

Commit

Permalink
kgdb: fix comment regarding static function
Browse files Browse the repository at this point in the history
The comment that says that module_event() is not static is clearly
wrong.

Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
  • Loading branch information
anadav authored and daniel-thompson committed Sep 3, 2019
1 parent 6357143 commit d8a050f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kernel/debug/debug_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,11 +787,8 @@ kgdb_handle_exception(int evector, int signo, int ecode, struct pt_regs *regs)
}

/*
* GDB places a breakpoint at this function to know dynamically
* loaded objects. It's not defined static so that only one instance with this
* name exists in the kernel.
* GDB places a breakpoint at this function to know dynamically loaded objects.
*/

static int module_event(struct notifier_block *self, unsigned long val,
void *data)
{
Expand Down

0 comments on commit d8a050f

Please sign in to comment.