Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1280729yba; Thu, 9 May 2019 13:51:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlnHhu3EU01uMxgQJ6jTvTK6m6ku285EPJn0TjTvyC+5xkETtLEhjO53H09DFManBTJfiP X-Received: by 2002:a62:5286:: with SMTP id g128mr8215617pfb.226.1557435076445; Thu, 09 May 2019 13:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557435076; cv=none; d=google.com; s=arc-20160816; b=OxER4I1vCEmstG5VgS4aijcsc2WsMNElwIlHvH3/qRlDlXG/JT3NpRsvNA9VOFYpbo uevTDsJtUwXyWROXSd1AGhDzRytqv0rRSGkSO34JhkGRDUpstSNh6fDh33Bl+stZoXsl pGOtI8PQt9K9SXIghg5UDQTzKwlEOYlAgmDqDMg8jWDJXlo9XQ37jAZuS+8lZcLmVv8B eK7hnx0EUBd3FKVFh3x6yWujzJQLStHwGrk/r6Vzjay0MCxe0l7zmgXPzsaKPVNdedFg E0mxe3d/3bTD1rfvky7raUZzaOkzexfjSAgzpUDJvqHd8j9OT5C+FQpFlRuXAEx/ThJY jseQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=0ujzrvNmPJ2OZ9Fy0FHiZkbFG2aSE886nyFWFqGQoMM=; b=hqGeVGeQlmN544azgV3HmTs2JLNfBJKYC5pHDY2x/LJVsMFFuqylEc15pmFdP3SxY8 8fgScW7hua4Bkl4BwFGsPg2ucM5npKZQWapjX367MbHyNPrm0pmyY/dTZsulkqLlRTZb 40tW/NjkLEjILs5T/7bRBk0gSzf2wYuoOuB5MrP9xdfQxcWad2sQq58/1t1PwH+MA5fR jpKIvmIb87MJXReHa/Ipu1qNqRx94VzLdE5Ra4t7tr/O+mW8MEF8j6huiwaxtsQfVte1 D/TWipqhNknUIBSz6V6IJ4DIjFVJnwjkUhvj6i2SfU1zvnll7NlSP12LSmWdeaHB54QR SWPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fO6kGVJh; 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 e5si4762167pgb.262.2019.05.09.13.50.59; Thu, 09 May 2019 13:51:16 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fO6kGVJh; 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 S1726977AbfEIUsT (ORCPT + 99 others); Thu, 9 May 2019 16:48:19 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:34471 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726682AbfEIUsO (ORCPT ); Thu, 9 May 2019 16:48:14 -0400 Received: by mail-lf1-f65.google.com with SMTP id v18so2572538lfi.1 for ; Thu, 09 May 2019 13:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0ujzrvNmPJ2OZ9Fy0FHiZkbFG2aSE886nyFWFqGQoMM=; b=fO6kGVJhaDxkC+qPOns61hP7GMjRnpzyqcJnS6HgMh9gEnza3SsxrFvbqW0bahAslo 3u1vOi1w9PtOJNMb+Kau6RCEy1FnyOgyCyyyagPQmTXkoc/Ej4o+XoGRcbBFLgpEUIol TUHTDOTqS2qtNPTggnMo2J9hCaYw8vLpFxav8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0ujzrvNmPJ2OZ9Fy0FHiZkbFG2aSE886nyFWFqGQoMM=; b=BPuLHfy4QrTKXRMlT/922e2ivWgwEaZrINuypHaWvfk5WreJb26U1A6P2eRVP9JMXF uVxx9zKV+hVCrOnW+2hPadht+XRU6q6cfUrv2xOUy7J2Dg5LAEhrzim1oEMWNTikzqpH cn6s3PcSn1AoUJlhAVSl2ge4k3cgrSonu6DgRz1NVYAzM2p5ZJx6twcc+IauxEajl6vQ JJ5G/4ab+OioY8SPA0lxmRyiLduaxr6fznAz2rKVne5puDC9KS7/LXAV83hxGE73ditd +qV2P7K3/F6vdJzTltkMfe7fFLGAiyIfCOX14fWVD6SVm1MMXK7zjvVuV6Sdmu2PKi0H 8D5A== X-Gm-Message-State: APjAAAXqNK4sOxZhD6YHQio0grF/vhFMvt+9fssE/BSksDzBW/5eZ9GB Nm6JK1YkUbV1ZIC13gY2m+ptELLsWNw= X-Received: by 2002:a19:f243:: with SMTP id d3mr3501067lfk.168.1557434892456; Thu, 09 May 2019 13:48:12 -0700 (PDT) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id u26sm586388lje.56.2019.05.09.13.48.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 13:48:11 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id y10so2558966lfl.3 for ; Thu, 09 May 2019 13:48:11 -0700 (PDT) X-Received: by 2002:ac2:5212:: with SMTP id a18mr3760884lfl.166.1557434890884; Thu, 09 May 2019 13:48:10 -0700 (PDT) MIME-Version: 1.0 References: <20190507175912.GA11709@kroah.com> In-Reply-To: <20190507175912.GA11709@kroah.com> From: Linus Torvalds Date: Thu, 9 May 2019 13:47:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Driver core patches for 5.2-rc1 To: Greg KH , "Joel Fernandes (Google)" , Masahiro Yamada Cc: Andrew Morton , Linux List Kernel Mailing 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 [ Ok, this may look irrelevant to people, but I actually notice this because I do quick rebuilds *all* the time, so the 30s vs 41s difference is actually something I reacted to and then tried to figure out... ] On Tue, May 7, 2019 at 10:59 AM Greg KH wrote: > > Joel Fernandes (Google) (2): > Provide in-kernel headers to make extending kernel easier Joel and Masahiro, this commit does annoying things. It's a small thing, but it ends up grating on my kernel rebuild times, so I hope somebody can take a look at it.. Try building a kernel with no changes, and it shouldn't re-link. HOWEVER. If you re-make the config in between, the kernel/kheaders_data.tar.xz is re-generated too. I think it checks timestamps despite having that "CHK" phase that should verify just contents. I think the kernel/config_data.gz rules do the same thing, judging by the output. I use "make allmodconfig" to re-generate the same kernel config, which triggers this. The difference between "nothing changed" and "rerun 'make allmodconfig' and nothing _still_ should have changed" is quite stark: - nothing changed: rebuild in less than 30s [torvalds@i7 linux]$ time make -j32 DESCEND objtool CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/kheaders_data.tar.xz Building modules, stage 2. Kernel: arch/x86/boot/bzImage is ready (#9) MODPOST 7282 modules real 0m29.379s user 1m50.586s sys 0m41.047s - do (the same) "make allmodconfig" in between, now rebuild time is just over 41s: [torvalds@i7 linux]$ make allmodconfig [torvalds@i7 linux]$ time make -j32 scripts/kconfig/conf --syncconfig Kconfig DESCEND objtool CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h GZIP kernel/config_data.gz CHK kernel/kheaders_data.tar.xz CC [M] kernel/configs.o GEN kernel/kheaders_data.tar.xz CC [M] kernel/kheaders.o Building modules, stage 2. Kernel: arch/x86/boot/bzImage is ready (#9) MODPOST 7282 modules LD [M] kernel/configs.ko LD [M] kernel/kheaders.ko real 0m41.326s user 2m17.822s sys 0m54.561s No, this isn't the end of the world, but if somebody sees a simple solution to avoid that extra ten seconds, I'd appreciate it. Linus