Skip to content

Commit f3ae6c6

Browse files
rantalashuahkh
authored andcommitted
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>
1 parent 7b9621d commit f3ae6c6

3 files changed

Lines changed: 0 additions & 3 deletions

File tree

tools/testing/selftests/proc/proc-loadavg-001.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1515
*/
1616
/* Test that /proc/loadavg correctly reports last pid in pid namespace. */
17-
#define _GNU_SOURCE
1817
#include <errno.h>
1918
#include <sched.h>
2019
#include <sys/types.h>

tools/testing/selftests/proc/proc-self-syscall.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1414
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1515
*/
16-
#define _GNU_SOURCE
1716
#include <unistd.h>
1817
#include <sys/syscall.h>
1918
#include <sys/types.h>

tools/testing/selftests/proc/proc-uptime-002.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
// Test that values in /proc/uptime increment monotonically
1717
// while shifting across CPUs.
18-
#define _GNU_SOURCE
1918
#undef NDEBUG
2019
#include <assert.h>
2120
#include <unistd.h>

0 commit comments

Comments
 (0)