diff options
author | Changbin Du <changbin.du@gmail.com> | 2021-09-07 19:56:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-09-08 11:50:24 -0700 |
commit | ea0eafead4b66543b8218ebfbe14173315feb7d1 (patch) | |
tree | df8147fb4f9a43cf9da21a9e3246dd0fcc4e3fae /mm/kmemleak.c | |
parent | 513861202d1259e35934e206b79cd54f523d79b5 (diff) | |
download | linux-ea0eafead4b66543b8218ebfbe14173315feb7d1.tar.gz linux-ea0eafead4b66543b8218ebfbe14173315feb7d1.tar.bz2 linux-ea0eafead4b66543b8218ebfbe14173315feb7d1.zip |
mm: in_irq() cleanup
Replace the obsolete and ambiguos macro in_irq() with new macro
in_hardirq().
Link: https://lkml.kernel.org/r/20210813145245.86070-1-changbin.du@gmail.com
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com> [kmemleak]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/kmemleak.c')
-rw-r--r-- | mm/kmemleak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c index 73d46d16d575..b59f1761d817 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -598,7 +598,7 @@ static struct kmemleak_object *create_object(unsigned long ptr, size_t size, object->checksum = 0; /* task information */ - if (in_irq()) { + if (in_hardirq()) { object->pid = 0; strncpy(object->comm, "hardirq", sizeof(object->comm)); } else if (in_serving_softirq()) { |