Commit 3207598a authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'kgdb-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux

Pull kgdb updates from Daniel Thompson:
 "It has been a quiet dev cycle for kgdb. There has been some good stuff
  for kdb on the mailing list but unfortunately the patches caused a
  couple of problems with the kdb pager so I had to drop those and they
  will have to wait for next time!

  That just leaves us with just a couple of very tiny clean ups for now:

   - Fix a broken comment

   - Use str_has_prefix() for the grep "pipe" in kdb"

* tag 'kgdb-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux:
  kgdb: fix comment regarding static function
  kdb: Replace strncmp with str_has_prefix
parents b08918fb d8a050f5
...@@ -787,11 +787,8 @@ kgdb_handle_exception(int evector, int signo, int ecode, struct pt_regs *regs) ...@@ -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 * GDB places a breakpoint at this function to know dynamically loaded objects.
* loaded objects. It's not defined static so that only one instance with this
* name exists in the kernel.
*/ */
static int module_event(struct notifier_block *self, unsigned long val, static int module_event(struct notifier_block *self, unsigned long val,
void *data) void *data)
{ {
......
...@@ -830,7 +830,7 @@ static void parse_grep(const char *str) ...@@ -830,7 +830,7 @@ static void parse_grep(const char *str)
cp++; cp++;
while (isspace(*cp)) while (isspace(*cp))
cp++; cp++;
if (strncmp(cp, "grep ", 5)) { if (!str_has_prefix(cp, "grep ")) {
kdb_printf("invalid 'pipe', see grephelp\n"); kdb_printf("invalid 'pipe', see grephelp\n");
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment