Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb23120e authored by Tommi Rantala's avatar Tommi Rantala Committed by Greg Kroah-Hartman
Browse files

selftests: proc: fix warning: _GNU_SOURCE redefined



[ Upstream commit f3ae6c6e8a3ea49076d826c64e63ea78fbf9db43 ]

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

Signed-off-by: default avatarTommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a945da61
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -14,7 +14,6 @@
 * 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/loadavg correctly reports last pid in pid namespace. */
/* Test that /proc/loadavg correctly reports last pid in pid namespace. */
#define _GNU_SOURCE
#include <errno.h>
#include <errno.h>
#include <sched.h>
#include <sched.h>
#include <sys/types.h>
#include <sys/types.h>
+0 −1
Original line number Original line Diff line number Diff line
@@ -13,7 +13,6 @@
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
 */
#define _GNU_SOURCE
#include <unistd.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/types.h>
+0 −1
Original line number Original line Diff line number Diff line
@@ -15,7 +15,6 @@
 */
 */
// Test that values in /proc/uptime increment monotonically
// Test that values in /proc/uptime increment monotonically
// while shifting across CPUs.
// while shifting across CPUs.
#define _GNU_SOURCE
#undef NDEBUG
#undef NDEBUG
#include <assert.h>
#include <assert.h>
#include <unistd.h>
#include <unistd.h>