Received: by 10.223.185.116 with SMTP id b49csp2665591wrg; Mon, 5 Mar 2018 06:52:25 -0800 (PST) X-Google-Smtp-Source: AG47ELsmDynBEWnWUrSa7Eve+maj6tI/I+ZACIIWEZnT84jRnFx5KjSTgz3CPvNJgQKOvGCHbvy5 X-Received: by 10.98.16.23 with SMTP id y23mr15628794pfi.84.1520261545143; Mon, 05 Mar 2018 06:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520261545; cv=none; d=google.com; s=arc-20160816; b=LK9SmZdEhvi6Z9lLsO+rCThrxjLDuHjA7AjBfymd7Mp5e2NpVB6EvCv6idodLjeOOS 2Kifm33mDtoYWPYzyPJwgkPxUn6t7taqrIP0yeTNErt60G8hdGlSAxSpx1PjeIl+p+zz v7jHIVLczvAGorUiTJ3PLXMfwUH9cmVOUSw3ei4trYSvy7McmgVsgaisvOM0iCyFjgtw fdNhRl+g6Ro0xZhDDLPfWIxfew4CwCENK8kJSNXGoXhSLGG+zxgcm1P6oTAQRVDZMfpB Y2zmcHkcf0jAIusMmVY8hMno9eHHCgChox0kGjApLv2ZgLGicmTTA1a8q0TdigViSOKl z55w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=Fh3ZaihpsX3nB3o/f47geth9QDupuCj0zqtul1rWPus=; b=tw7BUr0+uQtmrCoYd1fHMarIGysaemMJSQmEc5KL0TCL4R/AvyQ+vWeMDRq84nvUq5 yj/0VDKLD/SX7IJgcRmXRYPi5q7Dotz/ej84caPmZDQyvQvodeDjWbnTsVKi2Bx7I5sT HYl+9Z/y8elAvul5rHjyGmBGdkZ2Z4gTtBthUARbCvoWg4o0TI6XMpOFySdwPQX14fc2 p0klIQ2xULrOPNXfW5Z79Ryng+It7OJZdnXYeRIR+gnIzgONx2FtlYdmM6Nt8Sz29y6q xV2Tft6imz6zcWRlJD6YG64GazseuGDgeWrD+cjdiDu0SYxcJxzEul5gCGDE0WBojLMW SIJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=jlxjeaBA; 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 r19si10370702pfi.100.2018.03.05.06.52.11; Mon, 05 Mar 2018 06:52:25 -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=@nifty.com header.s=dec2015msa header.b=jlxjeaBA; 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 S932424AbeCEOuq (ORCPT + 99 others); Mon, 5 Mar 2018 09:50:46 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:56824 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003AbeCEOun (ORCPT ); Mon, 5 Mar 2018 09:50:43 -0500 Received: from mail-ua0-f172.google.com (mail-ua0-f172.google.com [209.85.217.172]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w25EoZuF001178; Mon, 5 Mar 2018 23:50:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w25EoZuF001178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520261436; bh=Fh3ZaihpsX3nB3o/f47geth9QDupuCj0zqtul1rWPus=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=jlxjeaBAL8+TwRoZjTMfXmiJJtxuAOlTk02A+5X/sZ1ajeE3tXK1TL7SGr6vZ/kwu sjoZ5otmsieeUZigH8mVIcrCSqdkuJuNwiDaZ7Ifzdl5Hqd+MWy4UuhiziOpFlAoTN aZ/3H7ZTV+NG4sX4Cj9Qi3uXWjZ/2UvgIO5CFEiLYYrdRja4SO0Cibv0/gC+eJpaNU 2dLANR0MVWVpUp1mO/lgy1zFxPq6xSZcBX0jBr5q44pGICGYUfEwT0QqFTUvFSEUTX 3NPHfMQbuvrm82ZWubrFJ1bdCoHzIAv5nrD5hrASzav5Ve2PGBhyNHxGNkiBxMXVdm B46z483H1+kBg== X-Nifty-SrcIP: [209.85.217.172] Received: by mail-ua0-f172.google.com with SMTP id e25so10612777uam.6; Mon, 05 Mar 2018 06:50:35 -0800 (PST) X-Gm-Message-State: APf1xPCgs+MGCGWAHqsSbNe0DmB1XiIerVDYzTFwSFT1uQQJRGWL2sa6 nE0eHND+vfvCbecOuqN/o8bjtjxtbs8k+ivGvBY= X-Received: by 10.176.20.112 with SMTP id c45mr10653660uae.82.1520261434811; Mon, 05 Mar 2018 06:50:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Mon, 5 Mar 2018 06:49:54 -0800 (PST) In-Reply-To: <20180228191805.20094-3-linux@rasmusvillemoes.dk> References: <20180228191805.20094-1-linux@rasmusvillemoes.dk> <20180228191805.20094-3-linux@rasmusvillemoes.dk> From: Masahiro Yamada Date: Mon, 5 Mar 2018 23:49:54 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] fixdep: do not ignore kconfig.h To: Rasmus Villemoes Cc: Michal Marek , Linus Torvalds , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-01 4:17 GMT+09:00 Rasmus Villemoes : > kconfig.h was excluded from consideration by fixdep by > 6a5be57f0f00 (fixdep: fix extraneous dependencies) to avoid some false > positive hits > > (1) include/config/.h > (2) include/config/h.h > (3) include/config/foo.h > > (1) occurred because kconfig.h contains the string CONFIG_ in a > comment. However, since dee81e988674 (fixdep: faster CONFIG_ search), we > have a check that the part after CONFIG_ is non-empty, so this does not > happen anymore (and CONFIG_ appears by itself elsewhere, so that check > is worthwhile). > > (2) comes from the include guard, __LINUX_KCONFIG_H. But with the > previous patch, we no longer match that either. > > That leaves (3), which amounts to one [1] false dependency (aka stat() call > done by make), which I think we can live with: > > We've already had one case [2] where the lack of include/linux/kconfig.h in > the .o.cmd file caused a missing rebuild, and while I originally thought > we should just put kconfig.h in the dependency list without parsing it > for the CONFIG_ pattern, we actually do have some real CONFIG_ symbols > mentioned in it, and one can imagine some translation unit that just > does '#ifdef __BIG_ENDIAN' but doesn't through some other header > actually depend on CONFIG_CPU_BIG_ENDIAN - so changing the target > endianness could end up rebuilding the world, minus that small > TU. Quoting Linus, > > ... when missing dependencies cause a missed re-compile, the resulting > bugs can be _really_ subtle. > > [1] well, two, we now also have CONFIG_BOOGER/booger.h - we could change > that to FOO if we care > > [2] https://lkml.org/lkml/2018/2/22/838 > > Cc: Linus Torvalds > Signed-off-by: Rasmus Villemoes > --- > scripts/basic/fixdep.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c > index 1b21870d6e7f..449b68c4c90c 100644 > --- a/scripts/basic/fixdep.c > +++ b/scripts/basic/fixdep.c > @@ -283,7 +283,6 @@ static int is_ignored_file(const char *s, int len) > { > return str_ends_with(s, len, "include/generated/autoconf.h") || > str_ends_with(s, len, "include/generated/autoksyms.h") || > - str_ends_with(s, len, "include/linux/kconfig.h") || > str_ends_with(s, len, ".ver"); > } > > -- > 2.15.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html The series, applied to linux-kbuild/fixes. Thanks! -- Best Regards Masahiro Yamada