Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: proc: fix warning: _GNU_SOURCE redefined

Makefile already contains -D_GNU_SOURCE, so we can remove it from the
*.c files.

Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Tommi Rantala and committed by
Shuah Khan
f3ae6c6e 7b9621d4

-3
-1
tools/testing/selftests/proc/proc-loadavg-001.c
··· 14 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 15 */ 16 16 /* Test that /proc/loadavg correctly reports last pid in pid namespace. */ 17 - #define _GNU_SOURCE 18 17 #include <errno.h> 19 18 #include <sched.h> 20 19 #include <sys/types.h>
-1
tools/testing/selftests/proc/proc-self-syscall.c
··· 13 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 15 */ 16 - #define _GNU_SOURCE 17 16 #include <unistd.h> 18 17 #include <sys/syscall.h> 19 18 #include <sys/types.h>
-1
tools/testing/selftests/proc/proc-uptime-002.c
··· 15 15 */ 16 16 // Test that values in /proc/uptime increment monotonically 17 17 // while shifting across CPUs. 18 - #define _GNU_SOURCE 19 18 #undef NDEBUG 20 19 #include <assert.h> 21 20 #include <unistd.h>