Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4705334iob; Sun, 8 May 2022 22:40:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeTldkr/ILHu2qqM9Ccu+cammAyGl0ClBdXoIwFodssdp1us5s4KgTNH6FgYoO7K78Q5tn X-Received: by 2002:a17:90a:408f:b0:1d1:d1ba:2abb with SMTP id l15-20020a17090a408f00b001d1d1ba2abbmr24830455pjg.152.1652074840259; Sun, 08 May 2022 22:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652074840; cv=none; d=google.com; s=arc-20160816; b=005n6Cpb5DfaXkpRMQ1yFwFNMpydQ5vSVtaOjuG6vsyq29n83HiDDcqHoHj0pGOEOi el9qJAboUiXoIWzDxw+D9HcjQlYlWU2QJ/H/JgO8Vtw4ocTpoGU6+zJsIO2JspBWOu/g 8a6roJz6/MwpwEUXnIb6jVwATQYXfGiMe3Zdh/U7I5sNKbKfJfk01BKpNkLRgXnzX/WG C2P4H5xPyQ/DeVnGNaMq/1Aid+SWJMA9Bmd2/lTB939eV2DFXLgcg3fWpfEoNHG6UtM4 teWG1EfJOuf7a7VuR9DvOB+NOwtkJb9S5db7Ok3tDbGbwXdUzjvisxNZ3mYtMJpo0IWw hpGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=3uZs7+F79LoAMtZDOq9Dzll+cBDvTlGlRjZEGlEHK6I=; b=YjDaS+8+VVGy61AGR8FnWRRVca9a64L9WzyHsxnseKjy6doH82Yo/I1jeJK0RNIjBv UQFUr/2d9Lsi02crU0BzQNzxdYhtVRiz1bnd2+RTDEwjgGZXY+SdaV47mlSF1uLMIp9o kKwjErqXHW18fOC+JlzAQyabh6duc2X8RuJOKr4wGkmDpr1aKfU1xbE8EYq/JWAv+zY6 R/pkNiG8C/jZcxIuWTY2d84z47Oie4gNxcaP50WOoYh8uBL9f8PfLGMZhSkVjmJsU2jg ZpZPuDyXTxma1dLMLSgbQvkJss142CRXt/5G1ZoKAJ9C6aKZlgx35G290hRxMYhYZnKJ 46Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XfEoVuad; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o6-20020a655bc6000000b003c19e192b51si13370255pgr.20.2022.05.08.22.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XfEoVuad; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 65DBA15BADA; Sun, 8 May 2022 22:40:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385094AbiEGNQN (ORCPT + 99 others); Sat, 7 May 2022 09:16:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240386AbiEGNQL (ORCPT ); Sat, 7 May 2022 09:16:11 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A34ABE23 for ; Sat, 7 May 2022 06:12:25 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id n18so9880642plg.5 for ; Sat, 07 May 2022 06:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3uZs7+F79LoAMtZDOq9Dzll+cBDvTlGlRjZEGlEHK6I=; b=XfEoVuad9bhriz4Vuir+gza7IdZ377RO82auIIDEDfdxtuvSXcFQId0fv4yHG3BsM/ o15xRYgnXbRGeu2HapcGpicDFm9NfOhqGvBizQUJeq8TNZHEx+jKBFDW50k6UAYvA6Xs dxmI2j17zzLg8ZTPqEV1HhTZZSRy1ZXMO4O9OxR/u9knpX8PJ0N90vhHAa4CcaWyk0fp 5FVCNUKdqUEtlmN+SAQGHqWcGj5jrJxP0qNZ9QMeObWGqLXoDDyvP/Kqqe1iI0A+56nu 4xEUom8i/Y3fDAdLAxE2VdmfoQLTaMLZs2gjHLah+176l2vYrmJoEeTZjT0FWLUWU5Zy OekQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=3uZs7+F79LoAMtZDOq9Dzll+cBDvTlGlRjZEGlEHK6I=; b=mB6Iy6YGbZX2iD5DMp8gF9n5aB0aYpQGOq9UH8DauMobDXx6AgasWchvmGValoMBFC 9EQAuR4R6aCmzwhlYKxPBwh+eq16G0lvEGp3W4eTQfe+2mayRoTk1XKGUOTzs9C9Fopk R5HGWmvXq69FUhCM+KEmLzxmNx2mRjhXJZAL32SK1Of3NWkZtfsgkeFq+VWVzNE9tQwi PlVlySHEB3HNFwU/bUU14bx9H5TFmPXSxznKU5us6lLfYRNjcvGzuoCGQWd4GRSBHmnM ++7uii2Are7EaDbqGvmhlbaCNRPbGtIXDx2Iy6ArMXcsSgfm6q83Tq374oZHIfHXOy0l 1RLg== X-Gm-Message-State: AOAM5330VYfFHchWLqWp0Ua/1eAvM24bTQ7nORQNrZy+/ABV7a4Pf6CJ F3MYi+M3QbuWQTesSdBGAMw= X-Received: by 2002:a17:90b:2241:b0:1dc:d4d3:3047 with SMTP id hk1-20020a17090b224100b001dcd4d33047mr9767355pjb.128.1651929144788; Sat, 07 May 2022 06:12:24 -0700 (PDT) Received: from localhost.localdomain (124x33x176x97.ap124.ftth.ucom.ne.jp. [124.33.176.97]) by smtp.gmail.com with ESMTPSA id i191-20020a639dc8000000b003c14af50620sm571418pgd.56.2022.05.07.06.12.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 May 2022 06:12:24 -0700 (PDT) Sender: Vincent Mailhol From: Vincent Mailhol To: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Tom Rix Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Andy Shevchenko , Rikard Falkeborn , Andrew Morton , Kees Cook , Will Deacon , Peter Zijlstra , Vincent Mailhol Subject: [RFC PATCH v2 0/2] call check-atomics.sh only if prerequisites change Date: Sat, 7 May 2022 22:11:43 +0900 Message-Id: <20220507131146.834810-1-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220426155229.436681-1-mailhol.vincent@wanadoo.fr> References: <20220426155229.436681-1-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,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 X-Spam-Level: * Currently, check-atomics.sh is executed unconditionally despite the fact that most developers do not need this to execute this check on each iterative make instance. This series first make check-atomics.sh raise an error instead of a warning when CONFIG_WERROR is set. The second and last patch modifies Kbuild so that the script is only called when dependencies are changed. * Changelog * v1 -> v2 * drop the changes on checksyscalls.sh. v1 assumed that checksyscalls.sh would only be called from ./Kbuild. It appears that there is another user: arch/mips/Makefile c.f. kernel test robot's report: https://lore.kernel.org/llvm/202205030015.JCmg5yPS-lkp@intel.com/ * add a patch to the to make Kbuild stop if check-atomics fails and if CONFIG_WERROR is set. Vincent Mailhol (2): check-atomiscs: stop build if CONFIG_WERROR=y kbuild: call check-atomics.sh only if prerequisites change Kbuild | 7 ++++--- Makefile | 3 ++- scripts/atomic/check-atomics.sh | 9 +++++++-- 3 files changed, 13 insertions(+), 6 deletions(-) -- 2.35.1