]> git.baikalelectronics.ru Git - kernel.git/commit
tools/testing/selftests/vm/split_huge_page_test.c: fix application of sizeof to pointer
authorDavid Yang <davidcomponentone@gmail.com>
Thu, 28 Oct 2021 21:36:36 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 Oct 2021 00:18:55 +0000 (17:18 -0700)
commit916e8572b32f2db80a6044b8bb8b5df3570408e0
tree0bca55e86e4bcac687b2946497c8fa70596916ec
parent240c9639db43a6d0f6695ae9b9fafe87bb808a34
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

Use "strlen" to fix it.

Link: https://lkml.kernel.org/r/20211012030116.184027-1-davidcomponentone@gmail.com
Signed-off-by: David Yang <davidcomponentone@gmail.com>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/split_huge_page_test.c