Skip to content

Commit 2011097

Browse files
committed
selftests/nolibc: drop include guards around standard headers
Nolibc now provides all the headers required by nolibc-test.c. Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Willy Tarreau <[email protected]>
1 parent 2217abe commit 2011097

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

tools/testing/selftests/nolibc/nolibc-test-linkage.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
#include "nolibc-test-linkage.h"
44

5-
#ifndef NOLIBC
65
#include <errno.h>
7-
#endif
86

97
void *linkage_test_errno_addr(void)
108
{

tools/testing/selftests/nolibc/nolibc-test.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99
* $(CC) -nostdlib -I/path/to/nolibc/sysroot => _NOLIBC_* guards are present
1010
* $(CC) with default libc => NOLIBC* never defined
1111
*/
12-
#ifndef NOLIBC
1312
#include <stdio.h>
1413
#include <stdlib.h>
1514
#include <string.h>
16-
#ifndef _NOLIBC_STDIO_H
17-
/* standard libcs need more includes */
1815
#include <sys/auxv.h>
1916
#include <sys/ioctl.h>
2017
#include <sys/mman.h>
@@ -43,8 +40,6 @@
4340
#include <unistd.h>
4441
#include <limits.h>
4542
#include <ctype.h>
46-
#endif
47-
#endif
4843

4944
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
5045

0 commit comments

Comments
 (0)