Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3950431ioa; Tue, 26 Apr 2022 13:12:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdSwpzDu9BLhswPDyB4eYjNZNV4RH7us+aEwhRiWmcxu2lHiLIT1fVAQcW94kryq38aPU7 X-Received: by 2002:a17:907:7fa5:b0:6f3:80b1:ef1d with SMTP id qk37-20020a1709077fa500b006f380b1ef1dmr15097361ejc.141.1651003923904; Tue, 26 Apr 2022 13:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651003923; cv=none; d=google.com; s=arc-20160816; b=taSRXx5l2Z9mBj4egK2DHoCR4fmTnv4DFnjX+OYf25jS5258MjN0/HJIQOjkRKjptB WkcnG6ycusmN4jjguq4pVbBJCmfm/CoNJLyCNzWW0DMPwzXAZ6rZEkSqfXJTm8IlLP6Q uLvb59L+wqdgN+ilfDWPJM9l+bcYvodlpyQjgo75yw9aEVU8Kx8uao9JFs6VrCQrtaeI QOhMHhbaxUwlIOSJu2nEEn8Tn38s24UuY/48dKGa8XtBsYB5N/0DQBtK1Ip1MesKyoU9 ibf52GZgiaVKYukgKemf+VArmlwmYDuLYhdhqt/Hdhvi6Pve+sNnG4u7kokUbEln1dS7 Zssw== 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=LF7mTWi4edK6Z61LD5AqBwaiX+ywRu66jOZtugmj29U=; b=Ki0FxLRBlqGY2y21CXqTYLj9YzeI1sb9mbBVywelA/XAldjKssofJfcx6Hjedf842k pjaWY5HqkDQLUUpFdVlVhlpHuHS2oU7w8Qz4TtKbsXRI9v7Eu5ddxc4lfutQcY1+xVLR ct5fbaiuaknRZDejz2jpcbYzhmJPmrOVHxQo/p9zGbXXHL3LWaDowf7AP+mK++rFlgI8 QcQZer8Ljh2VoW9k2VgKnQwPccO8uMRat+Ajxu4yCm4JtQXJROH4caazhFfgoBq1KHxg N0ZFmo6pgsknvF4Kl1u9AgGh3lPA54uLrd4k88e6QGCd9svB6FF4V7pFxK60V08YTmQr rmUw== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a17090682c200b006df76385e42si15818712ejy.738.2022.04.26.13.11.39; Tue, 26 Apr 2022 13:12:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243044AbiDZS7d (ORCPT + 99 others); Tue, 26 Apr 2022 14:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238868AbiDZS7a (ORCPT ); Tue, 26 Apr 2022 14:59:30 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06BAE180EC2 for ; Tue, 26 Apr 2022 11:56:21 -0700 (PDT) Received: from mail-yw1-f174.google.com ([209.85.128.174]) by mrelayeu.kundenserver.de (mreue012 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MqZE0-1oEPat2Xse-00mfWt for ; Tue, 26 Apr 2022 20:56:19 +0200 Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-2f7ca2ce255so93321197b3.7 for ; Tue, 26 Apr 2022 11:56:19 -0700 (PDT) X-Gm-Message-State: AOAM530WorSDb1UsbT85ZIRY+VxET+zsQQeEsGxpy8H0UarZFuleHSFe svYKmlBp1tGw9yi2RMMhuz20EkI98ZCGyJx0fIM= X-Received: by 2002:a81:ad7:0:b0:2e6:84de:3223 with SMTP id 206-20020a810ad7000000b002e684de3223mr23748703ywk.209.1650999378258; Tue, 26 Apr 2022 11:56:18 -0700 (PDT) MIME-Version: 1.0 References: <20220426161658.437466-1-mailhol.vincent@wanadoo.fr> In-Reply-To: <20220426161658.437466-1-mailhol.vincent@wanadoo.fr> From: Arnd Bergmann Date: Tue, 26 Apr 2022 20:56:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] linux/find: ignore -Wtype-limits to reduce W=2 warnings by 34% tree-wide To: Vincent Mailhol Cc: Yury Norov , Andy Shevchenko , Rasmus Villemoes , Nathan Chancellor , Nick Desaulniers , Tom Rix , Linux Kernel Mailing List , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:Z7Y0NAE21Ov/j71fNP0k5m/YR0ufPzhpN7B6oSHXq1pyIn7tLAY C1c8AXV7PIKRVl6Z6hFpvpRoVjvJkm+KYaOzTnVil3yUExLGb3OeBy7qeYaql4NNIBotWsb nFuuZ1ukgqMBV3RCC7mO1Q7/MmpFODkhDbziP8c2KbBZ3E94GQmul1tqHWNjOVlfEpHVZ7N Eb4fsmOVsZ40uZpYxgAKw== X-UI-Out-Filterresults: notjunk:1;V03:K0:2fo1Pc45XcA=:TJQdQTagcVe0VoUbcjW70i Oo+zqqhwhDflY+DS+jnG+y/0Tb13ndvRbiEuTnYdt7kYzZZGtlRwHKKLoYoU3QzWQ6FlLTAMq ljuURNQupMS4Tee39sQf4qINWvLGfCPWQSBOlJV8Wx/aTC9ZVdc/LcoJJaWQi5MBXoYudZGYQ HJbobfHXnUkVWtTbz6yBcpO2K9CkRhq0BmN+2DD7HCYOMoyaBmA+6qRYEeJ5dFnop8zcRtuJe Uxr5Z8oXd4KwCjDR8bT9vXxCjE486FGH/CMZWMsGl+QAHBjoPvIrJ9JL+0VFnWwKDf9ThDc7w KDPpWxpHowmwc2ABEFCk/jMT2kWe5/pMgvYAK8D4OGp77h/+1WHX69hx9ACb3jTokfpZbC5Kf xMTR4Fickr4/WPpyYQMWDQNNPOVXqrbgyHbEuKErtIDBK8ip8s1Mj5OgSShOAjea0ruYVheEG MUZCZ2ylT0k25krBurV2R7XPnt4eHeMjGS5kmKNC3Kf6pF2Tdu6BwJA9rwtIqLFEF4kgh2ncN BMRQxvt2VYN3MPXItDRl7FzftScFGuu6BfrI5/+EZrmQFFFowS/yC+/psIxF4JRpBODYyxDRb zzYJgZJbU5A1QEdrNrqhjbJtm5eLaIlj8ZpXhDqzBFPltHNmNPs66/4zpM50hBpsVA04jGZA0 +stj5QB7Zb4QMfs4Y8WwYIx4++MSc/mdeMi8IsrU3C78snjPfUZY9v3q8moxCiawwdqg= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham 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, 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. Otherwise, this looks sensible to me. Arnd