Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3508558pxp; Tue, 8 Mar 2022 16:14:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyru/2zYhNcUOTLNgb+RpzDLfZf/6LAonulMRCHmq78iE5Ru5RyFDVtXgzdmgPYCCrjP54d X-Received: by 2002:a17:902:7895:b0:14b:6b63:b3fa with SMTP id q21-20020a170902789500b0014b6b63b3famr19937622pll.156.1646784859407; Tue, 08 Mar 2022 16:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646784859; cv=none; d=google.com; s=arc-20160816; b=SnclXUUj1U4dOvsPpo1Fko+bsIuCh/1OQrldJYyXidvNefC97/UWWwj7qKMw6B4hGl JB0ZRUbYqZFhlPFO/QEDbZ+C7pTEB1OoXec5K6G+I/jS+zIZwZxeEo7tZ33ReNyXsfBI nTIBtsKYgrbxsi9r5I0lxlU4JFZbvrnlHyZjqGCQcj+8WwNAHDgeM7q993yMJUzUjiNP J9V94qGTFfsft5ZzNkruthOyBQLpvIs4xT2HO6L+48xaOpqot31/ycDFdRupLxis1ILU wi5a8zpEcVgmpaxo6+KYbMZc3Q1EWRdGGO9o9ySslQsK1RuLZgd5G/ejLQbsU/pabY0G 4ibg== 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=t74z3Ledcqn/BjWg4UYz5jIdch9UIZsmQgsmq8I4viE=; b=DnbkOoCRWUMly+D1SQHwQgVaN9TQEmj1/BGmHMpXSDUoNk6tOL6N9gEuihPGqcqhI4 yNckRWgtRJ/sdcpMT+fqSHh4fV6I1/S9/Lhzx/wKoOVJDSbBsZS7TP/UtEB6Qa33QUj4 TESdEYmIC9rKPOIvF55IRDIX6ChEn/Qrg4N7V7njgJNY9XjZLLwzJVXo0/FXAPKdU+CZ UMB/MMOpxzSpPzGQG7Sc8ZylRSvg0JXDZRSuK2NzpP6AHy/CVCDhj5Buse3QA1iV09rF yKnokm+W60uuy42qvI3atZaytyQrzxQCMKb8LWuJnQfvKlyE1/L6/mkM7N5TDGoF5Xxn Ktrw== ARC-Authentication-Results: i=1; mx.google.com; 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 a192-20020a6390c9000000b0037f8077743csi297230pge.645.2022.03.08.16.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:14:19 -0800 (PST) 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; 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 8C61CF407A; Tue, 8 Mar 2022 15:42:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346773AbiCHMXr (ORCPT + 99 others); Tue, 8 Mar 2022 07:23:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240581AbiCHMXq (ORCPT ); Tue, 8 Mar 2022 07:23:46 -0500 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A193939B8D for ; Tue, 8 Mar 2022 04:22:50 -0800 (PST) Received: by mail-yb1-f172.google.com with SMTP id f38so37419457ybi.3 for ; Tue, 08 Mar 2022 04:22:50 -0800 (PST) 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=t74z3Ledcqn/BjWg4UYz5jIdch9UIZsmQgsmq8I4viE=; b=rOteJ3tCwmeSpilhF/Dqlni5/TYQs+OS2AgxTmeaoqKCkYKo2LCFvRMx0v9/BSlas2 0mCCTgv+me8Ujd0OnnGludU1xmtnSTEkDNGbMhzD2mbYWJaCo1gBrSP5UXMzrO8h4953 lSvuXfwnvMcfCwAgj3Y0ESuhsonOEQNROfo26L6QaZ5eKCPfpmNeL5HJjKccP9use3hc g7ufy2NSPTRIuHDUTB96HuNbmTXrdlyc5ZHIaPP4XHGsHBAOUqhEa3etBOchVzSvCDeF OL0i2P0YQoff6WQtCrpNhKqQt5WOF0/6RaJfztknhVOVezHUZzEsL83eF74B7EeXs4rt taEg== X-Gm-Message-State: AOAM533sM8UL3N5x0nhxkQqFH04Ou3jU6iquCPxtmCbVTNRdXrhKhepk wn//uSyG8D8z+AP3HixD/74MVyuvNBspT9joh8g= X-Received: by 2002:a25:d2d0:0:b0:628:7d69:b598 with SMTP id j199-20020a25d2d0000000b006287d69b598mr12215707ybg.381.1646742169835; Tue, 08 Mar 2022 04:22:49 -0800 (PST) MIME-Version: 1.0 References: <20220304124416.1181029-1-mailhol.vincent@wanadoo.fr> <20220307105810.1747024-1-alexandr.lobakin@intel.com> In-Reply-To: From: Vincent MAILHOL Date: Tue, 8 Mar 2022 21:22:38 +0900 Message-ID: Subject: Re: [PATCH] linux/bits.h: fix -Wtype-limits warnings in GENMASK_INPUT_CHECK() To: Andy Shevchenko Cc: Alexander Lobakin , Rikard Falkeborn , Andrew Morton , Linux Kernel Mailing List , Arnd Bergmann , Kees Cook 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 Tue. 8 Mar 2022 at 01:33, Andy Shevchenko wrote: > On Mon, Mar 7, 2022 at 4:06 PM Vincent MAILHOL > wrote: > > On Mon. 7 Mar 2022 at 22:40, Andy Shevchenko wrote: > > > On Mon, Mar 7, 2022 at 1:00 PM Alexander Lobakin > > > wrote: > > > > From: Andy Shevchenko > > > > Date: Fri, 4 Mar 2022 20:46:08 +0200 > > > > > On Fri, Mar 4, 2022 at 7:36 PM Vincent Mailhol > > > > > wrote: > > ... > > > > > > Have you fixed W=1 warnings? > > > > > Without fixing W=1 (which makes much more sense, when used with > > > > > WERROR=y && COMPILE_TEST=y) this has no value. > > > > > > > > How is this connected? > > > > > > By priorities. > > > I don't see much value in fixing W=2 per se if the code doesn't compile for W=1. > > > > *My code* compiles for W=1. For me, fixing this W=2 in the next in line > > if speaking of priorities. > > > I do not understand why I should be forbidden to fix a W=2 in the > > file which I am maintaining on the grounds that some code to which > > I do not care still has some W=1. > > It's not forbidden. I said something different. > > Whatever, thank you for doing it, perhaps we will have less noise in W=2 case. Great! So does it mean you are withdrawing your NAK? Or do you still have concern on the patch itself? Yours sincerely, Vincent Mailhol