The patch titled Subject: tools/testing/selftests/vm/split_huge_page_test.c: fix application of sizeof to pointer has been added to the -mm tree. Its filename is fix-application-of-sizeof-to-pointer.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/fix-application-of-sizeof-to-pointer.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/fix-application-of-sizeof-to-pointer.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: David Yang <davidcomponentone@xxxxxxxxx> Subject: tools/testing/selftests/vm/split_huge_page_test.c: fix application of sizeof to pointer The coccinelle check report: "./tools/testing/selftests/vm/split_huge_page_test.c:344:36-42: ERROR: application of sizeof to pointer" Using the "strlen" to fix it. Link: https://lkml.kernel.org/r/20211012030116.184027-1-davidcomponentone@xxxxxxxxx Signed-off-by: David Yang <davidcomponentone@xxxxxxxxx> Reported-by: Zeal Robot <zealci@xxxxxxxxxx> Cc: Zi Yan <ziy@xxxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/vm/split_huge_page_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/vm/split_huge_page_test.c~fix-application-of-sizeof-to-pointer +++ a/tools/testing/selftests/vm/split_huge_page_test.c @@ -341,7 +341,7 @@ void split_file_backed_thp(void) } /* write something to the file, so a file-backed THP can be allocated */ - num_written = write(fd, tmpfs_loc, sizeof(tmpfs_loc)); + num_written = write(fd, tmpfs_loc, strlen(tmpfs_loc) + 1); close(fd); if (num_written < 1) { _ Patches currently in -mm which might be from davidcomponentone@xxxxxxxxx are fix-application-of-sizeof-to-pointer.patch