Received: by 10.223.185.116 with SMTP id b49csp561603wrg; Wed, 21 Feb 2018 03:12:33 -0800 (PST) X-Google-Smtp-Source: AH8x225SyKX+GwRveAMkGzmSWotmzeIthe7+af4DMdcG6pPejhB2KwZ/XS4DphGVS54XiM+zxKy/ X-Received: by 10.99.127.88 with SMTP id p24mr2451268pgn.50.1519211553111; Wed, 21 Feb 2018 03:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519211553; cv=none; d=google.com; s=arc-20160816; b=so/iivNWQY/QGckGaZtXliMbXuClzn7A0xQTuRCnMInzo/RH25Z9grCmUgxj7Lwsm5 rzircnVSH+4hrEVsvKHKfk6Mk1McvEDkxdQtMp4SLNANUnMAQr8Py8FTSXCM5s0UUllv eFtB15LYePguir4vkMdTU55YTD19dFo1yNyIjuMpq4IJCy+LLMBffzw/iqcj5v4gKeWE GD64Wzr/RDYWwIVuUODXVn3PqxBxe/fOGbGd3vtEbgoGvaszZ+YAFiqDSSHGi6y2coQx 2GtHuZigAYh8lSSsjMc9w4/ulUmxDp5YquQdWL7G1on5zF0i3FYDk+yazkVvH/fHH6FO 762g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:arc-authentication-results; bh=kiGdwCDQp8SthoidOWfyJc4fKEmseLDVI9RGi9MZ9Xk=; b=GZPf/E4b4XMTEv0ssvB4LUtfY9OdIFbD+VWQKf1EVFmXxCXcFwrvsBdSMafBb72R7V W/skNwrDULtr03fowPutq8ZCIdFUK11jcoAKznmqvqbO7+rgyPPkbS6qAR4MFKPDJ8hV XZEhGkUIs3eBhmIh/tKdMyXNQkzzrDYLKVOTiE8CCO3lUlxgt8hhrXXcC+dXxqEw/7Az 7k7/BgWnD+7FpRO1KcAV0XqqJX5l/hjTtlSXzj54Xn+8l43iHIsdaU+hyO3XCD/gErct QNj29tQZU1AqKQmCEKAaNMIzmn56oG9rFOjvqV56gSzPpaZLAcWnIrdpbkAIr8pL8QPn 0wMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hBTidhwV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19-v6si934090plq.735.2018.02.21.03.12.18; Wed, 21 Feb 2018 03:12:33 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hBTidhwV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753758AbeBULKp (ORCPT + 99 others); Wed, 21 Feb 2018 06:10:45 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:33760 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751554AbeBULKn (ORCPT ); Wed, 21 Feb 2018 06:10:43 -0500 Received: by mail-wr0-f193.google.com with SMTP id s5so3345000wra.0; Wed, 21 Feb 2018 03:10:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kiGdwCDQp8SthoidOWfyJc4fKEmseLDVI9RGi9MZ9Xk=; b=hBTidhwV34SiFQhH2aw6CIXUyfmg0Lmkwdwt84zvZ0oiLcO1IFxoATU7If2brNM18T XSPClWML4DDF1qiY8JcWBU/TeR2mLvHXDbwBsy9QCHZZN2MgNBukllYtIijcEHuinxkb QLjnJCRjyY8KuE9DxifoQrPvQlrZc8FwkYn3ZUAbyl1iIFKuN0h1pNZS40T/9eRnYnaK cD794Rvffp9WuBhcPKGiiYUowqTDU5PeH5mromu+b9daNMA8JlJYVNpkYDTDYWkl9yPC MphqlH5VCLwlDC59ZwXcg+F76x+RzryYYHkdKQNTRVHBgznlARppQqf0c9mwDTSNwEAN tKFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=kiGdwCDQp8SthoidOWfyJc4fKEmseLDVI9RGi9MZ9Xk=; b=KsFe80a7DjD7LFo0uYgH0ClzIvICoREf5hwuyPYTAPrJrLYLDu8AX/BaOctAIfN36O eAIJwFb5Q1qY9CKaBepwH1uVXzTMTlAqpQ6TynZkmoZbuOsJ5SAUxAsJIEV76mnHpb60 RUdN6Eg9ZMG7YETWQYzIwsX5hurJ95AjcynkziQc1JO9FD1Ard3b6DSnkIIoZnQivMcu ZCjSFdM9pCk3UnolqG7qkv+l3xFVftMMMn/ZFqBEOa/w4ympUXYGZJMoWSXIr2KKAppJ 5eb9sjdn9zn3xuagTSK/ExNzEpQQv8sCEAL1nkatNRkcdDe/5cQPziSF6qFvIT/yivfp /6JA== X-Gm-Message-State: APf1xPA0bKdWD1p1OyhXQ7kbWaB/DX7oQ92imBAZ3cABP5Yfj8GC6Ab3 SMD8lscjQ3ZPrEJ221knOK8= X-Received: by 10.223.135.178 with SMTP id b47mr2753420wrb.108.1519211442104; Wed, 21 Feb 2018 03:10:42 -0800 (PST) Received: from dell5510 ([85.119.94.113]) by smtp.gmail.com with ESMTPSA id e191sm1141062wmg.12.2018.02.21.03.10.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2018 03:10:41 -0800 (PST) Date: Wed, 21 Feb 2018 12:10:40 +0100 From: Petr Vorel To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Sam Ravnborg , Ulf Magnusson , Eugeniu Rosca , "Luis R. Rodriguez" , Randy Dunlap , linux-kernel@vger.kernel.org, Nicolas Pitre Subject: Re: [PATCH] kconfig: Print reverse dependencies in groups Message-ID: <20180221111038.clllad7wfhwd3dou@dell5510> Reply-To: Petr Vorel References: <1519191855-27943-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519191855-27943-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, > Signed-off-by: Masahiro Yamada Acked-by: Petr Vorel Just please fix typo leading to segfault and add ':' > get_symbol_props_str(r, sym, P_SELECT, _(" Selects: ")); > if (sym->rev_dep.expr) { > - str_append(r, _(" Selected by: \n")); > - expr_gstr_print_revdep(sym->rev_dep.expr, r); > + expr_gstr_print_revdep(sym->rev_dep.expr, r, yes, " Selected by [y]\n"); > + expr_gstr_print_revdep(sym->rev_dep.expr, r, mod, " Selected by [m]\n"); > + expr_gstr_print_revdep(sym->rev_dep.expr, r, no, " Selected by [n]\n"); Maybe add ':' to be consistent with the rest of titles? + expr_gstr_print_revdep(sym->rev_dep.expr, r, yes, " Selected by [y]:\n"); + expr_gstr_print_revdep(sym->rev_dep.expr, r, mod, " Selected by [m]:\n"); + expr_gstr_print_revdep(sym->rev_dep.expr, r, no, " Selected by [n]:\n"); > } > get_symbol_props_str(r, sym, P_IMPLY, _(" Implies: ")); > if (sym->implied.expr) { > - str_append(r, _(" Implied by: \n")); > - expr_gstr_print_revdep(sym->implied.expr, r); > + expr_gstr_print_revdep(sym->rev_dep.expr, r, yes, " Implied by [y]\n"); > + expr_gstr_print_revdep(sym->rev_dep.expr, r, mod, " Implied by [m]\n"); > + expr_gstr_print_revdep(sym->rev_dep.expr, r, no, " Implied by [n]\n"); And the same here. + the most important thing - copy paste error, which obviously leads to segfault on "Implied by": Try search for PTP_1588_CLOCK (in x86_64 defconfig). gdb in coredump shows #0 0x000000000041043e in expr_print_revdep (e=0x0, fn=0x410297 , data=0x7fff0f2a8640, pr_type=yes, title=0x7fff0f2a85a0) at scripts/kconfig/expr.c:1328 1328 if (e->type == E_OR) { So the correct is: expr_gstr_print_revdep(sym->implied.expr, r, yes, " Implied by [y]:\n"); expr_gstr_print_revdep(sym->implied.expr, r, mod, " Implied by [m]:\n"); expr_gstr_print_revdep(sym->implied.expr, r, no, " Implied by [n]:\n"); Kind regards, Petr