Received: by 10.223.185.116 with SMTP id b49csp2183790wrg; Sun, 4 Mar 2018 20:55:13 -0800 (PST) X-Google-Smtp-Source: AG47ELtDHgRJ5Ykmnf1MaBGrPkiPkki99G/T56Ws3XSkH+a3uxYBH7HBlMyHX4rkp5KReGFYhMp0 X-Received: by 2002:a17:902:9686:: with SMTP id n6-v6mr4193248plp.331.1520225713068; Sun, 04 Mar 2018 20:55:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520225713; cv=none; d=google.com; s=arc-20160816; b=rScEBre2xCpGvJ85CvA8dzEzN/+r8KV6/BxFMMe5GtzKFPK7akXxV8jfapm5vx7bof eUiY42NjG3k8IsuNey9V80Vy6Yv+O/ISZe1aHr5EA85xmFWt+eMV03tWHSyTZmuWxzGH g7k75eoUpA0f2lKg9+N8HoC/i93Kdg9K7sTGoqJtNIWH7kMYj9rjap5uz9iF3jAZaut3 l9i62rANfOs5V5PcKGT/Vaenc9Q+7bc6Zd+anYPn4F/OGMZE/A47pILYqTAPB58/bX3d HrScws1vT00yZu31dXkMN9sl/4DIuiySpVNy0aeyVnCA4YEkFLMj6rh5QCIxZcTuSgxB x1XQ== 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=FulbX/eN8lS2gdDxHwjCtFRMD9DS1B/75vBNzvXfNPc=; b=fugsdD+hdQD69UO/fx8eAJa+eIrOj14FTaO6wkBDcIfIe+/QVtmyppxhLwXLgD4dzS sFm2GTy2yqOt7ougxUoS+/+lHiwUDHsV9L5b6L/rlsnDKcvnNK9CUdG7FSJmIglQvD/8 ad+5M5bw+roAdmY3Z+RlFhFzdF1eNq9v7VtSqVPf0hvrDuJmno6fiAL4MgLzH0FgSXIY rPt5cwp0jJSdnudYHTAuwATDXJjRGj1fnMl67it7FB9wsSsEUwGnpxRpBPHIJoACCh7F 4HeRL6vYr0VgmNrUwdQPbPs9FYISaD/OaMGuw92oG7EKH8KsfOIeYpQ9R6A3OFsUsGGX BBNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=FrKkDhvD; 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 c10si7882645pgf.230.2018.03.04.20.54.58; Sun, 04 Mar 2018 20:55:13 -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=FrKkDhvD; 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 S932724AbeCEExJ (ORCPT + 99 others); Sun, 4 Mar 2018 23:53:09 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:23178 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932540AbeCEExG (ORCPT ); Sun, 4 Mar 2018 23:53:06 -0500 Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w254qljL004872; Mon, 5 Mar 2018 13:52:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w254qljL004872 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520225568; bh=FulbX/eN8lS2gdDxHwjCtFRMD9DS1B/75vBNzvXfNPc=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=FrKkDhvDwQrEobsl6ZEs6OpOcTDlqT9sD7zT2aTFDOKFfFXi/pSn0pLX9kWYOdwLW 75ZSG6Nrbu1A8+hL6zaxzN3m6E5WG6dKY5cvKUWWrqEQVVW94LbZrQuxQN/bCvkblm B/KFEYrLcpyWNSp39qErHLjEVryXRkd1Y4vnUpUFkE1bfhTmxSKx/HF6cwar15kzTq Qz9G7fOdW3rfEXVYG4yKqSudCBhkytHLinBWp75hdYYsCYj4MyxgXl72XhCM7yabYk 9i2+OqMwe43mT5LiH6BVZeczSS+j/uLSnnNZEawvT+LXagmy3z5SpgCpt8FhibD6Uj 0EfofruRqHGww== X-Nifty-SrcIP: [209.85.217.169] Received: by mail-ua0-f169.google.com with SMTP id n24so2307234ual.12; Sun, 04 Mar 2018 20:52:47 -0800 (PST) X-Gm-Message-State: APf1xPB8nrUkGObcrVNt28uL5V9PXz1E0ynmvOShv47FV+Ks85KNFT6N vDe8i5dLw0KFY9bd8jtUr5X3vpPBMaTSCrpcFM8= X-Received: by 10.176.76.31 with SMTP id l31mr9128922uaf.199.1520225566729; Sun, 04 Mar 2018 20:52:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Sun, 4 Mar 2018 20:52:06 -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 13:52:06 +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 Sorry, I missed to include this series in the Kbuild fixes PR I sent two days ago. I was not tracking the randomize-struct thread. I read [2] and I noticed the background of this series just now. Hopefully, I will have another opportunity of PR if this series is necessary for v4.16 (seems so) Regardless of the randomize-struct issue, this series is great! > --- > 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 -- Best Regards Masahiro Yamada