Received: by 10.223.185.116 with SMTP id b49csp2401703wrg; Thu, 22 Feb 2018 13:09:31 -0800 (PST) X-Google-Smtp-Source: AH8x224ccuHcC6Qlm1r++k47/jDfbNlLcpy+UBqfLVOh/Ptzkc3gqXbpGssEpiEyoQftGKF7nTAr X-Received: by 10.98.69.76 with SMTP id s73mr4241951pfa.31.1519333771324; Thu, 22 Feb 2018 13:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519333771; cv=none; d=google.com; s=arc-20160816; b=0WXXPJ+GPT06k60l6D6M/IhDGKsff8NfEm4tz+NBe+zUICYrtOksc1Q8qPczQyo1eJ v0VCYxCLntg1+WcRw+MfeVQN2cm+wpvbTbPXuP/fRSQTFur3o62MZYd0Zm/MxB11h8BT W6fXsMWPgN4lnSK7W/jpGf8kWlP1HcTkO4BkrSaxLqItq4oZAsgvhKiDpWdfWC6Dy4sL L4YcgxEpj+bDpXc7+AVRljE+KiC3krFQb8XVSSG1i361ydRgbTAL6fKuemsAULBzsNG1 OGF3EJCjzYHyVdUsaOfP7alRwIDo6STDQdzN4Xu2HLsUKmd8VC5Q+6oQK4/+ICR6tX8s zf0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=boPjUnTT2hj+Xhy2zkLOv57zM6mXqIFHsLdKS/hXsIY=; b=phCXF5FsKw28sftyWkbM1jSLjE1LX7AFzE/q7zve4GVTRxUNVeSXDfCU3bqfMa8myS 0BhchG45dhjl3fcGV5h68wdweOnMznVvIMC/C+pCE7XJavxMQ8H+C+tbx+RDWcExukSH iVlsmT6EZ5XPBllB+bdssHdoIK5jw8xARxQZ6bmQvg4setlh06KAY5s/rQG0ewRoHs2n j670HxOF7eZUjym/ES2QLIsWyCdrnzCARQGkl2xmVCkUccTyg7JzMW4KqEZFTZmDQBvj Gt0Y4n2roKAeDuq0JppgEujIdfsVDU5nE7A5Ml+J3bXx3L0g8R4A87WP3dKWytv3ByEp YAEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@prevas.dk header.s=ironport2 header.b=bpnguiKw; 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 i2si498065pgf.145.2018.02.22.13.09.14; Thu, 22 Feb 2018 13:09:31 -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=fail header.i=@prevas.dk header.s=ironport2 header.b=bpnguiKw; 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 S1751334AbeBVVIf (ORCPT + 99 others); Thu, 22 Feb 2018 16:08:35 -0500 Received: from mail02.prevas.se ([62.95.78.10]:15849 "EHLO mail02.prevas.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbeBVVIe (ORCPT ); Thu, 22 Feb 2018 16:08:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1385; q=dns/txt; s=ironport2; t=1519333714; x=1550869714; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=JY44obgfFaXjv6fcstU+oN1jaYj5WyWaEITTFK1dbIA=; b=bpnguiKw0hMEK4HCz2e5ST4bSFnlgeW790cbJw/PwIfc9Tv2kmKZn5GN cZTedFwYdws3WazcKQ/BUjhEpe883wkskVAyXver5alNrdRiCqV4Zat8L gG8qzAD9Hz1lL6GkWcyWtmRbO5gjr8s7xiVTtLDu9PiZcRXl5YipfOhw0 c=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GlAADvL49a/2h+ugUNUBoBAQEBAQIBA?= =?us-ascii?q?QEBCAEBAQGJNZlxCyeBFpZiggIKhTQCgwUVAQIBAQEBAQECA4Y1AQEBAyNWEAs?= =?us-ascii?q?YAgImAgJXBgEMCAEBtRJugieFAIN3ghcBAQEBAQEBAQIBAQEBASOBD4QKg36CE?= =?us-ascii?q?AyCeYULgy+CZQWSVpFpCYJOk0CCIIo/h2WYKoE8NYF1TXKCRIMIgW6NXwEBAQ?= X-IPAS-Result: =?us-ascii?q?A2GlAADvL49a/2h+ugUNUBoBAQEBAQIBAQEBCAEBAQGJNZl?= =?us-ascii?q?xCyeBFpZiggIKhTQCgwUVAQIBAQEBAQECA4Y1AQEBAyNWEAsYAgImAgJXBgEMC?= =?us-ascii?q?AEBtRJugieFAIN3ghcBAQEBAQEBAQIBAQEBASOBD4QKg36CEAyCeYULgy+CZQW?= =?us-ascii?q?SVpFpCYJOk0CCIIo/h2WYKoE8NYF1TXKCRIMIgW6NXwEBAQ?= X-IronPort-AV: E=Sophos;i="5.47,378,1515452400"; d="scan'208";a="3113737" Received: from dhcp-5-186-126-104.cgn.ip.fibianet.dk (HELO [192.168.0.189]) ([5.186.126.104]) by mail02.prevas.se with ESMTP/TLS/DHE-RSA-AES128-SHA; 22 Feb 2018 22:07:37 +0100 Subject: Re: [PATCH v3] kconfig.h: Include compiler types to avoid missed struct attributes To: Linus Torvalds , Kees Cook Cc: Patrick McLean , "Maciej S. Szmigiero" , Linux Kernel Mailing List References: <20180222174140.GA3154@beast> From: Rasmus Villemoes Message-ID: <66556bf7-3e67-5793-081e-76a01f598374@prevas.dk> Date: Thu, 22 Feb 2018 22:07:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-22 19:04, Linus Torvalds wrote: > > Lookie here (in a fully built tree): > > find . -name '*.o.cmd' | > xargs grep -L linux/compiler_types.h | > xargs grep -l linux/kconfig.h | > while read i; do > j=$(echo $i | sed 's/\.o.cmd$/\.c/' | sed 's:/\.:/:'); > test -f $j && echo $j; > done > > shows that a number of files don't end up depending on that header > file, even though it's included (that "grep -l linux/kconfig,h" > triggers on the command itself having that "-include linux/kconfig.h" > line). > > It looks like "gcc -M" just doesn't list any files that get included > on the command line with "-include". It does, both per the documentation and testing it. But fixdep explicitly removes include/linux/kconfig.h along with include/generated/autoconf.h and a few others. So when you rebuilt after adding the #include to kconfig.h, I think nothing actually got built, and no new .o.cmd files got generated. Doing a clean build does make include/linux/compiler_{types,gcc}.h and the various fake include/config/.... they "depend" on appear in e.g. lib/.clz_tab.o.cmd. The whole point of fixdep and the include/config hierarchy is to be able to remove the dependency on autoconf.h, but I'm not sure I understand why kconfig.h itself is also forcibly removed. Rasmus