Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp687894pxv; Thu, 22 Jul 2021 09:45:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCY5zIVSOkv+3OazMHOISl3PX3oWoYvfXnyX+5cOtALojBEzfgDsWSbU6deDLgkaML5ikB X-Received: by 2002:a6b:cf05:: with SMTP id o5mr489730ioa.35.1626972303479; Thu, 22 Jul 2021 09:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626972303; cv=none; d=google.com; s=arc-20160816; b=ufXDnnuVjdexzLEYLW0MLyGP8D2FJwT+crMx/sPLlFLvemLPWdOLMky8Z9hLxmX8hY DSUfy8ERKcYn8DQyGjAx2UNp9tVVTSgpZTDt6MoRkChjfdD/KgUW7YdJGNBfT2OsWant /t0olQSdkDyLr+VJj+k9GOQMBPu4ZMZe4PPnwHZ4WRZy3b0BRz5Kp9VJO4s+MnYChQvP DnWkNxDBcSgAYKYHnkIggWCxLzvoIFSYdOl+vzX7SyuO68XEK3TNF1msCDls4+b8ImHk lX+PCqVhLPh4YCPIEsnGaLWQCqcbO9eDFmy0AiGEBuwalldI3or2+vA+TPdZsGaVJ6Im cHQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UGIAhyEKNeh45N+c9N4N2KqX6KpC+/lxq+MyeqZFKl4=; b=fRTk8FZxhwU+Ul1Btk9/9c4PKMNkBsAzGhvT1OktzePQzmFyZM8YaYXGYv51yzvF0U V3vdo5roEqagizlN1k/caagHIEyb7JzIvnEMcdN3Mm3NsgaD5HS//0/c1aQzp/eRQMKV uSPkKxVwWO0vBKp6cj57nHLnXMaQHsueYsUAm/bwxltTgbCllSWdU/Z3GP0lW+2kdz16 qDcACY16ynI3JFu/ZH5sZJyI+Cpng4T1c09Z00JE5MohHkyaDkxkzg1AAZv/XoXS6N55 s3TpYqY7PDTRX0WcWEUCqJAB5EutNy7w4GqGU14D4cayZwmVCPBXPSfpEfkapGLP04Ij BEyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HioQ8w+u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si22885763ilt.55.2021.07.22.09.44.52; Thu, 22 Jul 2021 09:45:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HioQ8w+u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233885AbhGVQDK (ORCPT + 99 others); Thu, 22 Jul 2021 12:03:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:36988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233880AbhGVP7i (ORCPT ); Thu, 22 Jul 2021 11:59:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EF9D6610CC; Thu, 22 Jul 2021 16:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626972012; bh=9+IdieMSfv420ZSiFKtJD80BlLI/yvXbPJ3dZ5fX0fY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HioQ8w+uUSS+KRwWBKKTEYwel8l+oGoEJTj/Z4f91xyHVwkHlIpL4CCtcGdDM1ZQy OH/Lpp1quFnhn93gOEwzJ1a3QIvZ8ZGizc22izBTpqvHK8hKZS8Y4TeRSdvzRxGeE9 9RH4zMB4YM4dAf+608INpBiJ8n4T1H8k/o2xhQ8I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tetsuo Handa , Masahiro Yamada Subject: [PATCH 5.10 112/125] kbuild: do not suppress Kconfig prompts for silent build Date: Thu, 22 Jul 2021 18:31:43 +0200 Message-Id: <20210722155628.439366123@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722155624.672583740@linuxfoundation.org> References: <20210722155624.672583740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada commit d952cfaf0cffdbbb0433c67206b645131f17ca5f upstream. When a new CONFIG option is available, Kbuild shows a prompt to get the user input. $ make [ snip ] Core Scheduling for SMT (SCHED_CORE) [N/y/?] (NEW) This is the only interactive place in the build process. Commit 174a1dcc9642 ("kbuild: sink stdout from cmd for silent build") suppressed Kconfig prompts as well because syncconfig is invoked by the 'cmd' macro. You cannot notice the fact that Kconfig is waiting for the user input. Use 'kecho' to show the equivalent short log without suppressing stdout from sub-make. Fixes: 174a1dcc9642 ("kbuild: sink stdout from cmd for silent build") Reported-by: Tetsuo Handa Signed-off-by: Masahiro Yamada Tested-by: Tetsuo Handa Signed-off-by: Greg Kroah-Hartman --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- a/Makefile +++ b/Makefile @@ -704,11 +704,12 @@ $(KCONFIG_CONFIG): # This exploits the 'multi-target pattern rule' trick. # The syncconfig should be executed only once to make all the targets. # (Note: use the grouped target '&:' when we bump to GNU Make 4.3) -quiet_cmd_syncconfig = SYNC $@ - cmd_syncconfig = $(MAKE) -f $(srctree)/Makefile syncconfig - +# +# Do not use $(call cmd,...) here. That would suppress prompts from syncconfig, +# so you cannot notice that Kconfig is waiting for the user input. %/config/auto.conf %/config/auto.conf.cmd %/generated/autoconf.h: $(KCONFIG_CONFIG) - +$(call cmd,syncconfig) + $(Q)$(kecho) " SYNC $@" + $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig else # !may-sync-config # External modules and some install targets need include/generated/autoconf.h # and include/config/auto.conf but do not care if they are up-to-date.