Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1066886iob; Fri, 13 May 2022 21:49:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/gNbE3QsqGksoPR3LTkPEXlr+AjYCorECuLWWXe+oN7ajS1ObGpzwjFppe+gMBVg9AXYA X-Received: by 2002:a05:600c:a08:b0:392:a561:9542 with SMTP id z8-20020a05600c0a0800b00392a5619542mr7247291wmp.62.1652503747132; Fri, 13 May 2022 21:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652503747; cv=none; d=google.com; s=arc-20160816; b=CnHndd5suRhF/tlMwzPZu3dewNJnvr6BoT+y71GU+HMel/POc3MB1bAeomH+HtWiUv a1DLfbfqwTFBnlfCICmDsF8ZU0xS9pFwEtmxdk2dS9hVAvkH/s/W9t7W4TCMeabbyAei bFmjkjooOoM0suDalUxeRAIflmKV4sLpJTEgbj9wvkMv23ns5DopdUGcDv9dJOnsMVYM IUGaet67goaVTSyBNQE6F8fVApgqUVpb0DiizDHoL1k6rk3E8qiqVuFmXAKLCg+rSifl t4wc5c40NH1O2XQ8n5+0NndestcCS1LTITU6Ik0KtguWD4mwx7QMJxF3cntoQvhcfrt1 6S+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=kuZ/tZDybeSTawcvTvpI2RevU8flYBPshQ+5iLiR3Zs=; b=vPCq+pTe3r2nu+TMDBRavLsuwSR+Y0pt16HXNmH/EUtVTZE8GjfH41k5QYRimJ6WD6 H6nS3cs/4EGtsELsDJ9+hn89BozYbfdbQdloK3fPMsyN/5TLbB7JElB8bK7/ZBKmSNV7 I2K7GAhIcvfyXO17KMg+pb4NUJpqBRxn9zTv8kLJ2ArieEardOhdjxCVESifpw4C51uJ DXB27tojbiVVQQ9GvcBhT0Sv1Cma3NTNwSBRK8sAs+EZfwIF1FNNURyYg02rrWkTQT+v EZzoJFHdC/iL2My743Ho6Zqx0QmY6flkkZ9Q03KGb6PoURNhJJwC4u+Nr8wdFrSn94cs JJrA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f6-20020a5d64c6000000b0020cfa60d371si864839wri.246.2022.05.13.21.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:49:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 57749FD1C; Fri, 13 May 2022 20:21:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbiENDVl (ORCPT + 99 others); Fri, 13 May 2022 23:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231151AbiENDVi (ORCPT ); Fri, 13 May 2022 23:21:38 -0400 Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B45FF6394 for ; Fri, 13 May 2022 20:21:35 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id m128so18328117ybm.5 for ; Fri, 13 May 2022 20:21:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kuZ/tZDybeSTawcvTvpI2RevU8flYBPshQ+5iLiR3Zs=; b=3HyREbUctyjj+4zETcpZCbkOwqWi5d2oHqeDX/s9l2k4m/D9uEht6xBYURXsrGFFgu zx6B1LesVKBJX10wRMUvEncov61nsk/UiFZL6BeOpJPOZ2qggq5WHOMEaMaCUxilsB9B qjxAAfZKAkOaOMzSO6WYJaJzKfuzeCP0JMQPRYWVrkqNMh30kdS6S24w4CCTm/Mas8xn dnG/FwkfE50Kf94mMdeI9h0v4GpjMW7oAuMsYWFCbZQpYb/s28URsC2+MqOztlU2oi/Y vUc+FdADGfZOr+4uBa50IM0FtdTyMcA6T+edXmk+FCW65rU+4nSuW5Ps6k52T379m1rw fP+Q== X-Gm-Message-State: AOAM531S5XcjwfOV9P9PeFwcl2WvhbOgKwc7Z8rj/CmoaUSRyJ49d/oR Lx9Z2j3uN+4huMMcVZANDIO9RQnmhNBYKZvvtbc= X-Received: by 2002:a25:e705:0:b0:645:781a:f870 with SMTP id e5-20020a25e705000000b00645781af870mr7849685ybh.630.1652498494973; Fri, 13 May 2022 20:21:34 -0700 (PDT) MIME-Version: 1.0 References: <20220426155229.436681-1-mailhol.vincent@wanadoo.fr> <20220507131146.834810-1-mailhol.vincent@wanadoo.fr> <20220507131146.834810-3-mailhol.vincent@wanadoo.fr> In-Reply-To: From: Vincent MAILHOL Date: Sat, 14 May 2022 12:21:24 +0900 Message-ID: Subject: Re: [RFC PATCH v2 2/2] kbuild: call check-atomics.sh only if prerequisites change To: Masahiro Yamada Cc: Michal Marek , Nick Desaulniers , Linux Kernel Mailing List , Arnd Bergmann , Andy Shevchenko , Rikard Falkeborn , Andrew Morton , Kees Cook , Will Deacon , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat. 14 May 2022 at 04:01, Masahiro Yamada wrote: > On Sat, May 7, 2022 at 10:13 PM Vincent Mailhol > wrote: > > > > check-atomics.sh is executed unconditionally. Most developers will not > > modify the files being checked by this script and thus do not need to > > execute it again for each iterative make. > > > > We first add an additional dependency to include/linux/atomic/* to > > make sure that the script gets executed again if the headers are > > modified. We then use the if_change macro instead of cmd. c.f. [1] and > > create the dot file scripts/atomic/.check-atomics which is used for > > the target timestamp. Finally, the dot file is added to the > > CLEAN_FILES target. > > > > [1] https://www.kernel.org/doc/html/latest/kbuild/makefiles.html#command-change-detection > > > > Signed-off-by: Vincent Mailhol > > > I do not like this approach. > > I wrote a different patch. > https://lore.kernel.org/lkml/20220513185340.239753-1-masahiroy@kernel.org/T/#u > > This naturally works by comparing the timestamp > between *_shipped and include/generated/*. Thank you very much for taking the time to fully rewrite it in order to simply discard the check-atomics.sh. I like the idea.