From patchwork Thu Aug 16 07:48:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10567117 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2324E109C for ; Thu, 16 Aug 2018 07:49:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11AC32A8C0 for ; Thu, 16 Aug 2018 07:49:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 049822A8C5; Thu, 16 Aug 2018 07:49:43 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 C530D2A8C0 for ; Thu, 16 Aug 2018 07:49:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389488AbeHPKqN (ORCPT ); Thu, 16 Aug 2018 06:46:13 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:18388 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730404AbeHPKqN (ORCPT ); Thu, 16 Aug 2018 06:46:13 -0400 Received: from grover.tkatk1.zaq.ne.jp (zaqdadce369.zaq.ne.jp [218.220.227.105]) (authenticated) by conuserg-09.nifty.com with ESMTP id w7G7mcEC026590; Thu, 16 Aug 2018 16:48:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w7G7mcEC026590 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1534405719; bh=v/7ovcXkFE6N59xgetdVQoohnsq4qPSHz00vZExCMJk=; h=From:To:Cc:Subject:Date:From; b=YHd26S2mvXZP+xc9nYtNW+z/KDY/jswTBddvVSDobMLbFRtX98J6b/m7qnlyo2XC9 F48dXpGG30p/57ha/4oX3fe/7lf9ko1d16tupf9+qvOVD7xgdsXGNAXpdc8IR7QEDP 7YP+VWlzrKFbueODhU2CJ/xiQDIHPUmisIPfDs+GZPGhvIScWTC4GdOW9h9+3U9l6R P34A6uktlkqNyqOi7Y0HnUm5rIN8zx76PKqkx67nbj6Lu+an/v+3vD0z+7eT1lN0eh OemTD/cn3+evWex+X7SLHGcrVcX9521KtK8pRZcum8/3sZGSMYp+ATuIGsDxm1WAlu qpze2P7KuyJFw== X-Nifty-SrcIP: [218.220.227.105] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Michal Marek , Sam Ravnborg , Linus Torvalds , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] kconfig: suppress "configuration written to .config" for syncconfig Date: Thu, 16 Aug 2018 16:48:26 +0900 Message-Id: <1534405706-18467-1-git-send-email-yamada.masahiro@socionext.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 The top-level Makefile invokes "make syncconfig" when necessary. Then, Kconfig displays the following message when .config is updated. # # configuration written to .config # It is distracting because "make syncconfig" happens during the build stage, and does nothing important in most cases. Suggested-by: Linus Torvalds Signed-off-by: Masahiro Yamada --- scripts/kconfig/conf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index b35cc93..7b2b372 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -508,6 +508,11 @@ int main(int ac, char **av) input_mode = (enum input_mode)opt; switch (opt) { case syncconfig: + /* + * syncconfig is invoked during the build stage. + * Suppress distracting "configuration written to ..." + */ + conf_set_message_callback(NULL); sync_kconfig = 1; break; case defconfig: