Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2274719pxm; Fri, 4 Mar 2022 12:53:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdOkqnRXuxirkKT4/uyp4IybMza/YNWh2wrO8O40MCek4YsqRmyzUwybr9B+AmqJkraTR3 X-Received: by 2002:a17:902:8698:b0:151:488f:3dee with SMTP id g24-20020a170902869800b00151488f3deemr259712plo.9.1646427205635; Fri, 04 Mar 2022 12:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646427205; cv=none; d=google.com; s=arc-20160816; b=MbsdwHJh5OkZTqNmCKRiyoE08aJXu3Cso6PDn2wwbJ6kSlLoKWqcQPv9zcpepZH6Za KdEROInqlnQGe3+pGRdT305Eb3OvSAfgavyny5aOXYqrsqhHSPuWPOwHuH//XClZP5mZ 7HmUijbMW3fxa0+bvj8yYqwCDLi66DLYvdPa3HU3aqgI3OgUqmVIIV3s1P0SnkYZOtqc 2GHWi4WYDQ27fzAVl8Evb6t8AGmfiU2lbIqL8M21uuAMxeu76PoLUUngy49Wh5EXjGzs 7lrr7aCIcrfnhBY06GLBBZP2ELR7YvwjovcJDjPYPPy1UMkR3y3MLsvHFWvPkmNDF/lI +VCg== 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=AmAWTgJsRubvE02lc+7m2kh1dS4iAkm0ITp+HgJDXbY=; b=PD7FvtRwQr9n/J49AIHB6ibqfxqtUbmoss0ksR0FI8Aut/ENeaHwY5o8ZjfAC87V6V gAi8rqVkA3npZ6oSf0uFDOG8DYXpS59gz2lo2c0TvoDkqVs1HSLRtWMq+b+sb6SyOSVD vlvGzuCj7cJotnXgih3S1jQwzpo9zgGeiHRKWyMw430/Uz4DdSMTP8j/W3i2He3QvQqI 1J5DIj8C4mXiuxVkBWJS5r7USq6KP/l+0czCS/2LY1cp1qLHREcFEUnqm2WkDA3mEmMi kzeC0SSdU8j27Tkf0UR17bvh9FReykRxSudEY+cZg8d2LYRbSRa40T4T1CVLHE/8c4oX hPvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MyC8QIFl; 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 i9-20020a170902c94900b0015187052dd1si5920501pla.5.2022.03.04.12.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:53:25 -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=MyC8QIFl; 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 078E4303FC0; Fri, 4 Mar 2022 11:46:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233923AbiCDSsW (ORCPT + 99 others); Fri, 4 Mar 2022 13:48:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbiCDSsU (ORCPT ); Fri, 4 Mar 2022 13:48:20 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4885345ACE for ; Fri, 4 Mar 2022 10:47:31 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id j15so15650911lfe.11 for ; Fri, 04 Mar 2022 10:47:30 -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=AmAWTgJsRubvE02lc+7m2kh1dS4iAkm0ITp+HgJDXbY=; b=MyC8QIFlw3ZBEIS2ZlTWVs8YLjP2UNkCgnw4ekIHpdPCV/mv+cUDtIpW+4CD8oMeOl hwP/zmFd8s3X3XmgQhTVC+1C8o+KW3qluWqH3WFBeotiWtg7X+HhBlHtz38Mv91QLA9n F2yPFe+vIe+FaGK1jXh/jFWogCaXBsx/O1HabmyLrpNLkAmSWTYw8RFWbWxWDQy3eIxU eVUkyuHbekj8gDdau1KlWdG/RoC+PCnQbjFAxJA9xYmmv/kM11tTkmvR/0i/LVUpBhvn Jo94rmUx3ZoStAVN6mdfxGcGCZhZBXoZY+LsFtKSzaF+AUuPV7iCFtPYVNnezzn6Pkkt JdBQ== 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=AmAWTgJsRubvE02lc+7m2kh1dS4iAkm0ITp+HgJDXbY=; b=tSvHCuYnQYk17VlDv6ksizidfHuwMA/Q83bTq/jzK4On3gCJv6DSm5J86aMmVW8Dwx fLKm7MJjvfwIZrnRnHTm2Odl+JISy8SJ2vwHAopb1Aih3yFkKQq8c9NufJ0oNCd8nS3x wIcuWDNCzGO3gegHSyD6qMa2dZxw7bzs76XD5dtza5e8IyX4yGAESO5dludsRJ2cau3l Hcqo4tNYDvp3o9TOm+nXLisnuTM/xqk+erGyJ+k23nUikhHBlBsJDclHO/cGoMx/frXT dG0ymLL8NeUGObUaSuMV5F15s6cyQcE2FtyBZ7BTBJLtVTu4MBOXJEXe/BZ3KfFZgEwd xttA== X-Gm-Message-State: AOAM5304ogZHuumt0nGGQyB/Q6zcYbkK+Yn2gzxqFk7vjbnzP9ppeFMA Q1+/OfB+WYAC5b0vWuCVdlqX2EaUUJMwaXN54WQ= X-Received: by 2002:a05:6512:511:b0:443:3f9f:5d5c with SMTP id o17-20020a056512051100b004433f9f5d5cmr93506lfb.94.1646419647335; Fri, 04 Mar 2022 10:47:27 -0800 (PST) MIME-Version: 1.0 References: <20220304124416.1181029-1-mailhol.vincent@wanadoo.fr> In-Reply-To: <20220304124416.1181029-1-mailhol.vincent@wanadoo.fr> From: Andy Shevchenko Date: Fri, 4 Mar 2022 20:46:08 +0200 Message-ID: Subject: Re: [PATCH] linux/bits.h: fix -Wtype-limits warnings in GENMASK_INPUT_CHECK() To: Vincent Mailhol Cc: 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 Fri, Mar 4, 2022 at 7:36 PM Vincent Mailhol wrote: > > This pattern is harmless but because it occurs in header files > (example find_first_bit() from linux/find.h [1]) and because of the > include hell, the macro GENMASK_INPUT_CHECK() is accountable for 31% > (164714/532484) of all warnings when compiling all modules at W=2 > level. 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. NAK. -- With Best Regards, Andy Shevchenko