Commit 0387662d authored by Peng Hao's avatar Peng Hao Committed by Shuah Khan (Samsung OSG)
Browse files

selftests: fix warning: "_GNU_SOURCE" redefined



Makefile contains -D_GNU_SOURCE. remove define "_GNU_SOURCE"
in c files.

Signed-off-by: default avatarPeng Hao <peng.hao2@zte.com.cn>
Signed-off-by: default avatarShuah Khan (Samsung OSG) <shuah@kernel.org>
parent fb363e2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -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>