mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
selftests: fix warning: "_GNU_SOURCE" redefined
[ Upstream commit 0387662d1b ]
Makefile contains -D_GNU_SOURCE. remove define "_GNU_SOURCE"
in c files.
Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c62be41088
commit
51aa1a10fb
|
|
@ -14,7 +14,7 @@
|
|||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
// Test /proc/*/fd lookup.
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#undef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <dirent.h>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
// Test that /proc/$KERNEL_THREAD/fd/ is empty.
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#undef NDEBUG
|
||||
#include <sys/syscall.h>
|
||||
#include <assert.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user