We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e008eee commit 40fc756Copy full SHA for 40fc756
tools/testing/selftests/x86/syscall_numbering.c
@@ -25,6 +25,7 @@
25
#include <sys/mman.h>
26
27
#include <linux/ptrace.h>
28
+#include "../kselftest.h"
29
30
/* Common system call numbers */
31
#define SYS_READ 0
@@ -313,7 +314,7 @@ static void test_syscall_numbering(void)
313
314
* The MSB is supposed to be ignored, so we loop over a few
315
* to test that out.
316
*/
- for (size_t i = 0; i < sizeof(msbs)/sizeof(msbs[0]); i++) {
317
+ for (size_t i = 0; i < ARRAY_SIZE(msbs); i++) {
318
int msb = msbs[i];
319
run("Checking system calls with msb = %d (0x%x)\n",
320
msb, msb);
0 commit comments