Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2105707yba; Fri, 19 Apr 2019 12:13:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMNepX+wcuc9iGuB6uUYFgFu3yVCy3xhHpf62XiGLLrwr6zoUBPNG3v5Q5zBl7tDi2NoMf X-Received: by 2002:a63:f218:: with SMTP id v24mr5410217pgh.326.1555701223347; Fri, 19 Apr 2019 12:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555701223; cv=none; d=google.com; s=arc-20160816; b=rig1ixxl/fAdsObH4EM6aExditrX4yJElSzFtfbLJRH2HHrgX3a++7cs7D/xds+uim 8qZ6ph5Vx7M6PruABgSxnMcv768mgKUb4eQmYRGSs4xdACOMue3DZ/lgfQmx/QCoR+7/ u2704ORqb91hMo0AIW607gcnQgMxUtmw9fFzdiV74S68mm2imr523TjqgHr8Ov+0AI/g +lBczLQ+2n4hyrIGvWdVBG1k5E6Vp5seNZ5DDqZlpb56O50oP9g2Dev6JbZ2n0bMNWf3 HIKRQFTjCQN2WZ0xZHP2aP371k0/0BBqP335HxI2uZJbHZFRHKazhaVxTfvWbliA6O+E N+Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=t2b8hKSB9bE3GF35nhN2D/Hy2IkxYn4RYTr1JRBMDTA=; b=F1N7vjtXZjexQbRbWZxvirnpAFrE7locbuokW9DOxNlqG5lcU2YOE5jjuuoCSPXA/I w3Xe7Lq6i1GRvTLjaFdRZV6r1xKJ9FhK7OyreNIEGtQehZL0Z+julihGH5t4nIf4Z0dv VCcVCwRiLL0/tAELCZtIyB3jURXkiX0EwSQVsFOAGFidOMVY9Vlh1Dj2DoVxbDh3Y3DK L0wkvUkU320R7jTmeWDpmer2DYtCA80DVpLj7q8o8mKmSyOetijHXHMR7X0hfId0w4Bv H8+doJJ/FG50Bh5is1bk8TViEmwPwElWsi+FsxTU7SWJ933Q0SsuKFOAusK2PpM0ouDS SQWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si6790864pfh.37.2019.04.19.12.13.28; Fri, 19 Apr 2019 12:13:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729529AbfDSTMi (ORCPT + 99 others); Fri, 19 Apr 2019 15:12:38 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36740 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729257AbfDSTMh (ORCPT ); Fri, 19 Apr 2019 15:12:37 -0400 Received: by mail-lj1-f196.google.com with SMTP id r24so5405109ljg.3; Fri, 19 Apr 2019 12:12:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=t2b8hKSB9bE3GF35nhN2D/Hy2IkxYn4RYTr1JRBMDTA=; b=mMWK6MoHxi1QS6qsw5db4BQ2HBC9Toq57+baNkGZkXVLTDz7hKNzh3X3ZsHGx9jJjF 8ORIzRG1hR2Kbuwd6MoKULLj0zx42p+aA9Q4jxdx1Tjb9/p+wvosp+MCFZDH8zvUVvpI j7G/APD/HTI11OZrOngNRdKiuNDbFt7G3sTqLZLq8KA3XqyfnIsqyvaLUhxJmZH1daUN eTvCy7Jr+dKy4pWoKjh6MlQdD5dxV1+k8b+91SLaDNdYevJDu0S2w1MH6Sp1oc88VN8s 3CqZ0i0h1GyD6XAHwCqSMXSpmAdd2j1aIOluo0bL32Q2GkYFQr2hqzb77aYPpoNoKgN/ uk0g== X-Gm-Message-State: APjAAAW4UjRCgHLQCppyXug2a6O0IaIpN7Q5LHa/e2quLBwcVeQi5KIA 9LLhgeQ3yZrISuLpOBdS2gociQro X-Received: by 2002:a2e:9ec3:: with SMTP id h3mr1890821ljk.131.1555669788380; Fri, 19 Apr 2019 03:29:48 -0700 (PDT) Received: from localhost.localdomain ([213.87.148.66]) by smtp.gmail.com with ESMTPSA id 192sm831030lfh.14.2019.04.19.03.29.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 03:29:47 -0700 (PDT) From: Alexander Popov To: Masahiro Yamada , Kees Cook , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Popov Subject: [PATCH 1/1] kconfig: Terminate menu blocks with a newline in the generated config Date: Fri, 19 Apr 2019 13:29:33 +0300 Message-Id: <1555669773-9766-1-git-send-email-alex.popov@linux.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently menu blocks start with a pretty header but end with nothing in the generated config. So next config options stick together with the options from the menu block. Let's terminate menu blocks with a newline in the generated config. Signed-off-by: Alexander Popov --- scripts/kconfig/confdata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 08ba146..1459153 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -888,6 +888,8 @@ int conf_write(const char *name) if (menu->next) menu = menu->next; else while ((menu = menu->parent)) { + if (!menu->sym && menu_is_visible(menu)) + fprintf(out, "\n"); if (menu->next) { menu = menu->next; break; -- 2.7.4