From patchwork Sun Nov 27 16:28:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheah Kok Cheong X-Patchwork-Id: 9448827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6A7466071C for ; Sun, 27 Nov 2016 16:30:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F3FD27CF9 for ; Sun, 27 Nov 2016 16:30:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4148827D0C; Sun, 27 Nov 2016 16:30:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED13D27CF9 for ; Sun, 27 Nov 2016 16:30:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752592AbcK0QaZ (ORCPT ); Sun, 27 Nov 2016 11:30:25 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35208 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbcK0QaY (ORCPT ); Sun, 27 Nov 2016 11:30:24 -0500 Received: by mail-pg0-f66.google.com with SMTP id p66so10647847pga.2; Sun, 27 Nov 2016 08:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bap0TxNleGMYq0odqUZgS33K4J2GeTN47qVvalgvMLY=; b=UVlgVakFNYCq5/w0OekTMLGkpMWE0H1Q6ijiU3uhNMExA/0nVpiF9wuUhVhUCW2ayv mgzN3LTX2QiyygGRVCObAu4qUXB0nAdDh0lORMGBtKolLgd9U+xAzvfZPUlXFCfgTO6j 9r5ca9Ybom8/MaRiYOpJ2Oq3CYEjIDtEyxlkq0gdVmw0piGWf6lV0ol4dnyfvXJhgM3v FSE3iVZW06DvENrLG/nP9eOvBywtmDqj7RAyfR3kHCEeQFghL9JJO0BCcvRFspreLTA5 2S7lVYHHmf9WzQLqILiShu7HSLh/AEyC5FhZUk94rt8tghPr5WOEBvUsSUic5I24P6B+ J8qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bap0TxNleGMYq0odqUZgS33K4J2GeTN47qVvalgvMLY=; b=JkVmMxhWz6zfSqY99oW3HcXD0zCN1ZdUqcDcCkR4vOAP7MYh39iwe/xHeCZRup3I0g AHdznupwYN4gPqjAENy5sUwmUKn97l9ovG1K8zlWe1zhrECHP1hEBb8RsoDOIewYZdu8 BDThK5clCM8P3yOqJX5fLGjJ4zZzbWJFHzUcU95YXQYPbA0myvEFT4rY3ObWcmYD6PN3 fjGdqo1O3VP479iRnflwN6lADal1kNb7tJwtwIiEZBjuxrY0oinV12E+hdF+tdQdp97D uayJmzpV6GaJaPcJLjss5si6unAjkA/Rd3QLgVbPW6My+C1jTixrjXde7W2pU8LEt4U/ S52Q== X-Gm-Message-State: AKaTC01za1Fx4k6LYmEHJOJlLkSXAPnPi4Ufr3ldhPGctkYHV5gl2507El+dQZxGZkoRVg== X-Received: by 10.84.143.1 with SMTP id 1mr39983420ply.86.1480264222461; Sun, 27 Nov 2016 08:30:22 -0800 (PST) Received: from localhost.localdomain ([121.122.165.186]) by smtp.gmail.com with ESMTPSA id s3sm81175016pfe.27.2016.11.27.08.30.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Nov 2016 08:30:21 -0800 (PST) From: Cheah Kok Cheong To: yann.morin.1998@free.fr Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, mmarek@suse.cz, thrust73@gmail.com Subject: [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined warning Date: Mon, 28 Nov 2016 00:28:26 +0800 Message-Id: <1480264106-29881-1-git-send-email-thrust73@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix below warning when make nconfig is run initially or after make clean. HOSTCC scripts/kconfig/nconf.o scripts/kconfig/nconf.c:8:0: warning: "_GNU_SOURCE" redefined #define _GNU_SOURCE ^ :0:0: note: this is the location of the previous definition Signed-off-by: Cheah Kok Cheong --- scripts/kconfig/nconf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index d42d534..a9bc533 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c @@ -5,7 +5,9 @@ * Derived from menuconfig. * */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include