The patch titled Subject: mm/kasan: rename kasan_enabled() to kasan_report_enabled() has been added to the -mm tree. Its filename is mm-kasan-rename-kasan_enabled-to-kasan_report_enabled.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-kasan-rename-kasan_enabled-to-kasan_report_enabled.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-kasan-rename-kasan_enabled-to-kasan_report_enabled.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Aneesh Kumar K.V" <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Subject: mm/kasan: rename kasan_enabled() to kasan_report_enabled() The function only disable/enable reporting. In the later patch we will be adding a kasan early enable/disable. Rename kasan_enabled to properly reflect its function. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Reviewed-by: Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/kasan/kasan.h | 2 +- mm/kasan/report.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN mm/kasan/kasan.h~mm-kasan-rename-kasan_enabled-to-kasan_report_enabled mm/kasan/kasan.h --- a/mm/kasan/kasan.h~mm-kasan-rename-kasan_enabled-to-kasan_report_enabled +++ a/mm/kasan/kasan.h @@ -63,7 +63,7 @@ static inline const void *kasan_shadow_t << KASAN_SHADOW_SCALE_SHIFT); } -static inline bool kasan_enabled(void) +static inline bool kasan_report_enabled(void) { return !current->kasan_depth; } diff -puN mm/kasan/report.c~mm-kasan-rename-kasan_enabled-to-kasan_report_enabled mm/kasan/report.c --- a/mm/kasan/report.c~mm-kasan-rename-kasan_enabled-to-kasan_report_enabled +++ a/mm/kasan/report.c @@ -220,7 +220,7 @@ void kasan_report(unsigned long addr, si { struct kasan_access_info info; - if (likely(!kasan_enabled())) + if (likely(!kasan_report_enabled())) return; info.access_addr = (void *)addr; _ Patches currently in -mm which might be from aneesh.kumar@xxxxxxxxxxxxxxxxxx are mm-kasan-rename-kasan_enabled-to-kasan_report_enabled.patch mm-kasan-module_vaddr-is-not-available-on-all-archs.patch mm-kasan-dont-use-kasan-shadow-pointer-in-generic-functions.patch mm-kasan-prevent-deadlock-in-kasan-reporting.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html