radix tree test suite: Remove ARRAY_SIZE

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/051803c0d01f4d8a197ecc08bfeffdff00d86c62
Commit:     051803c0d01f4d8a197ecc08bfeffdff00d86c62
Parent:     e237f98a9c134c3d600353f21e07db915516875b
Refname:    refs/heads/master
Author:     Matthew Wilcox <[email protected]>
AuthorDate: Fri Nov 3 23:06:32 2017 -0400
Committer:  Matthew Wilcox <[email protected]>
CommitDate: Tue Feb 6 15:07:20 2018 -0500

    radix tree test suite: Remove ARRAY_SIZE
    
    This is now defined in tools/include/linux/kernel.h, so our
    definition generates a warning.
    
    Signed-off-by: Matthew Wilcox <[email protected]>
---
 tools/testing/radix-tree/linux/kernel.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/testing/radix-tree/linux/kernel.h b/tools/testing/radix-tree/linux/kernel.h
index c3bc3f364f68..426f32f28547 100644
--- a/tools/testing/radix-tree/linux/kernel.h
+++ b/tools/testing/radix-tree/linux/kernel.h
@@ -17,6 +17,4 @@
 #define pr_debug printk
 #define pr_cont printk
 
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.