Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3525994pxp; Tue, 8 Mar 2022 16:38:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrKkTxYWfjN8Oo+Uvo/jexlWuycumnZFbDiPtd/sxgvaSZKz9QnTFfOJ4fBH1dycR9lsJR X-Received: by 2002:a17:90b:3b8c:b0:1bf:8841:41e6 with SMTP id pc12-20020a17090b3b8c00b001bf884141e6mr7125728pjb.242.1646786323602; Tue, 08 Mar 2022 16:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646786323; cv=none; d=google.com; s=arc-20160816; b=skhSPoikdQfTarj/H2yhR4FCzHFXt7/PALpBXB/2E8JMgkO9v9mGOTlDMcEnejNMFX 2YymM+xkeff8sisgX7S/5jNfZqhWB/rveN2klKVkbC2BiolnHOPAeGx5KPqvc1rGGq+p hW/ypMZlnBzhBAl/s+NgdHtwxZLxUdE+EPyASQUtlKgZG01tTAkHpQWdGdHQ7f6WMANn PcCn48tcZ2nLhhYBTe1YBjILzqmJNSEuc5OZSUhs0GUqRqNYT2HagWe9z/kPoHAqnkYn PSCfnPzChIqSVo0piZMf5vh9YFyzyiXTbJujX3tIQ17I+8k14PGXmxIMzaFxHulLLZQf h2DQ== 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:dkim-signature; bh=tfUB9KGveotPC+aOW7aHf1pQvKGE3xqYGexkhlP27oo=; b=RhHAkffXvjjy6lw3VUjSyrmB6mhszPpLeQe//nvBAjMcmUwij5zmv5ECEiFf4gP9bc jzEP1o/84f6je+h2wCcDCb9Fl8ASoapZ/rAJe1Q90BldNnTtxb9blpUNrmZM+xazbUkF o9tJC0LnMB4/K46J1O/TkM6R4gWfTFkiGg7Rx11gF3WzXoE99Bl1YGLVzm/QVFbF/c2t 31am6hln0FLOEu6AQ7Efbf3qnPveaPKTVVZSRoA357M8E/09n9susB/afdtiWoSkrmeQ DUcWvvIJdMzZKQ42MuT8hfqdjUntP9nlf2vrwGN4NYgx0Vp/guTph0KfUu3RTvIycUeg TzHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JlYPC5Qa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q8-20020a170902bd8800b00151f5a74f2esi402090pls.431.2022.03.08.16.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:38:43 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JlYPC5Qa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DAAFEA8ED8; Tue, 8 Mar 2022 15:54:13 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244217AbiCGQf0 (ORCPT + 99 others); Mon, 7 Mar 2022 11:35:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237696AbiCGQfZ (ORCPT ); Mon, 7 Mar 2022 11:35:25 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 423C271EE4 for ; Mon, 7 Mar 2022 08:34:31 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id q17so20751785edd.4 for ; Mon, 07 Mar 2022 08:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tfUB9KGveotPC+aOW7aHf1pQvKGE3xqYGexkhlP27oo=; b=JlYPC5Qar4E3QrRWrYj2d2Ffe19Z0EW1k6Dze/0j/Mp07lZl63swtEggELMojXEJg8 0Po0onHfMvKsmxs+FOdvqs/lngyzWzTAvt9OZctpMl2bqKIO0/a/eqhtvLY0qEMCM9BN bxX8ibL5MJFiBaSkwRtDu00nMY/1pqAwYfvatGnpqXB0+PphNwPnuZ/NzHIuhcA5xUFv IaHX2wt3HpRHq4qJeMplSfr8oMYez5SM/bXO4fE1OmyoiBmC4UDUeLmWt01k5hVNcvte 5aXVP8XRQHeStYM17ha3YCoY0AE5PKCUKsg9vy9yGnEEKQSFr8l/ZdloEph4yiJ4vFm6 wybQ== 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=tfUB9KGveotPC+aOW7aHf1pQvKGE3xqYGexkhlP27oo=; b=ffmfHSagEUUSwJbumtjSjEzP1dUh+evaubrfeGz3S1Kae79RAoPgPbuvo3DUCw/99/ R4O5l86RjvdDsTWRba6wuSDinzs7UB1a7orwpQQziX+a9H6IBxglD8ifySCtgjSajaN/ Zf/sL0tF4bgoW4Kq6m4eKAQcwDkjg0XNrUTSVpNvbhX74XRnCerH33doieDrFgFDd3VH aFtrHkE7AbR+7T3XAYqa1JKHeYc40jr1jnFoucALAadc+tGH7JW/zMfLHdGAnmk79MqE xklxsLznQdz5nzXb5BaBMXmT7E+A3fFoHDqRta3FXYIEA0oMuFSc1yGuVZxjr2CTy1tD R9tg== X-Gm-Message-State: AOAM533Z1LLLHg0oeRC+58jyVwS5SiIZ/kJhbKLTwE158fRc10R+ZHLi OdjIzpK7pwKuHmeTzoLONGU9Mf0FbtBqsPB9vTnk5/cnxtk= X-Received: by 2002:a05:6402:d7:b0:413:673:ba2f with SMTP id i23-20020a05640200d700b004130673ba2fmr11724208edu.29.1646670869805; Mon, 07 Mar 2022 08:34:29 -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: Andy Shevchenko Date: Mon, 7 Mar 2022 18:33:11 +0200 Message-ID: Subject: Re: [PATCH] linux/bits.h: fix -Wtype-limits warnings in GENMASK_INPUT_CHECK() To: Vincent MAILHOL 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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 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. -- With Best Regards, Andy Shevchenko