提交 51aa1a10 编写于 作者: P Peng Hao 提交者: Greg Kroah-Hartman

selftests: fix warning: "_GNU_SOURCE" redefined

[ Upstream commit 0387662d1b6c5ad2950d8e94d5e380af3f15c05c ]

Makefile contains -D_GNU_SOURCE. remove define "_GNU_SOURCE"
in c files.
Signed-off-by: NPeng Hao <peng.hao2@zte.com.cn>
Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
上级 c62be410
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
// Test /proc/*/fd lookup. // Test /proc/*/fd lookup.
#define _GNU_SOURCE
#undef NDEBUG #undef NDEBUG
#include <assert.h> #include <assert.h>
#include <dirent.h> #include <dirent.h>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
// Test that /proc/$KERNEL_THREAD/fd/ is empty. // Test that /proc/$KERNEL_THREAD/fd/ is empty.
#define _GNU_SOURCE
#undef NDEBUG #undef NDEBUG
#include <sys/syscall.h> #include <sys/syscall.h>
#include <assert.h> #include <assert.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册