Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4389297ioa; Wed, 27 Apr 2022 02:45:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjH7dPhaVQitl8NueZfU+z385mWBPyogndcEt7iELyWWXUV5Q2hwwourMhvp6/ohreFMB9 X-Received: by 2002:a17:903:22cd:b0:15d:1e6b:4363 with SMTP id y13-20020a17090322cd00b0015d1e6b4363mr12746351plg.36.1651052739703; Wed, 27 Apr 2022 02:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651052739; cv=none; d=google.com; s=arc-20160816; b=yQxlHWH7OeNEpz8Eef2tArIikiR/gm8PMjsP+7LYUc4pP+QiXh8oRSisKRD+QCPRde T7ug+nacYdG07JRoiI9JW/PtYeRfF0OLFFsEWrYi0ssq1bPuagF8TXuWlPn+osgAu8L0 KsuNlooLeBuazsrNXY7TJzgoJ7iwkbJf+isecOFijJtaUDaZiDEwTWfX7TDTOu5SNw9b WhS/6oI/5qeiL1f8C3nTF3sy+m681wMbbVGqNkF9zk+sC9muYXa/EZRe75J8aYZr2vN+ A+NZQOQ6Dg51OgMHbTjkoZtyYos65yg3AZx8d8YScahyNESIiTvPf+m9FgbL8duc6He7 7LVA== 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=owwvrF0Oneu6nUpGuZVDT8wMo7nPqE+euFwnhOXKaw8=; b=pBJo+BzCSPKMeBmA4YCctAc6KKrOsKgTeDKfZReKGMFerO/hADu1+f2DiD3KJt6PVR uBCM19fu5gkJ66+Lhou5agvsFyrLSd+PBC10C4q4fyBHgI8cYdzeKSlPcVnH4KHXUHRC 9c6U0wxtJc5/GnvQnssZw+nyE+t3STkCpQocgkPcuw7kVkqWRpspmaFIjWVhoPZ21/B0 RMkPx6C7w9YqqsbXRqpxTzy1wBR96BgC/07xjt+dmU3o2ILsoIlYwdYEZsWTh06V2CII Lh+hrHjE8H1s/ZVvllKRR/YcW/2Ri1f5mDVm3W5ooXooionBGmqC0+1hv7nAz+nfnxp1 gkPQ== 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 u1-20020a170902e5c100b0015bfd115dcesi1221613plf.455.2022.04.27.02.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:45:39 -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; 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 C7479289170; Wed, 27 Apr 2022 02:19:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357186AbiD0CgS (ORCPT + 99 others); Tue, 26 Apr 2022 22:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234542AbiD0CgP (ORCPT ); Tue, 26 Apr 2022 22:36:15 -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 E21ED65D08 for ; Tue, 26 Apr 2022 19:33:04 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id j2so1042815ybu.0 for ; Tue, 26 Apr 2022 19:33:04 -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=owwvrF0Oneu6nUpGuZVDT8wMo7nPqE+euFwnhOXKaw8=; b=HfxvJuxf78ynuF6zYsj4rtEl0rclWd7X5RCCD+zsPA1/1PJzakIR5VvTs30fkwpOOh O4cyuUGnqdX8o0/4KTpqtv+ywlaMAKi82vslso+ckq0OXY/l25y8dzlUdkfKIlwuzdBL EqRunxTv8Jn18PyN5D+GfRS7FLT+c3ZapFw7++jNq8jh22IUZuAHMsh+MW0rSj7yRbiT Fl1O1a07hS4ONFDyomh/T94KSbYIfmOmr6HdEdXKjfsquEwxfbLkD806cHeksZVqtAFh 4kd4CRHlHGeKRMrodAiJurm8X7/mmG2X9Tq2Db+guEHtcFr0BmiCdqhOIBv+vsRqt8io bijA== X-Gm-Message-State: AOAM530vTUSjq9o3Q4C4vZZUQHCuBaVPWCqywnHfbhq2UwN6DxV5upSg xiftCgmifcpJvSGlxI7AwiDnsKtLlvaN9kNJ31Y9C9kajEdT0u+R X-Received: by 2002:a25:df0a:0:b0:648:6364:a150 with SMTP id w10-20020a25df0a000000b006486364a150mr13101447ybg.381.1651026784126; Tue, 26 Apr 2022 19:33:04 -0700 (PDT) MIME-Version: 1.0 References: <20220426161658.437466-1-mailhol.vincent@wanadoo.fr> In-Reply-To: From: Vincent MAILHOL Date: Wed, 27 Apr 2022 11:32:53 +0900 Message-ID: Subject: Re: [PATCH] linux/find: ignore -Wtype-limits to reduce W=2 warnings by 34% tree-wide To: Arnd Bergmann Cc: Yury Norov , Andy Shevchenko , Rasmus Villemoes , Nathan Chancellor , Nick Desaulniers , Tom Rix , Linux Kernel Mailing List 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 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 Wed. 27 Apr 2022 at 03:56, Arnd Bergmann wrote: > On Tue, Apr 26, 2022 at 6:16 PM Vincent Mailhol > wrote: > > > +__diag_push(); > > +__diag_ignore(GCC, 8, "-Wtype-limits", > > + "GENMASK(size - 1, 0) yields 'comparison of unsigned expression in < 0 is always false' which is OK"); > > + > > Are you sure gcc-8 is the correct version to check for? > If older versions had this > already, you may have to add the magic bits in the compiler-gcc.h header. Right, I used GCC-8 because this is what is available off the shelf in compiler-gcc.h (and I CC'd you on purpose because I though you might have relevant comments). -Wtype-limits was introduced in GCC 4.3. Need to check if this specific check existed back then, but I strongly expect the older version to also trigger the warning. It might take me a bit of time to set up an environment with an old GCC (nothing hard, just need to get access to the good machine). So do not worry if I stay silent on this subject for the next couple of days. Yours sincerely, Vincent Mailhol