Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1089836rwd; Thu, 1 Jun 2023 10:16:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6SN3bJeIxxMt+Oensqj74u10ag9C9hE8YE68L02VvFeCRHhRzNz/yHQlAuq33dgTO932Az X-Received: by 2002:a05:6a20:9f08:b0:105:12ab:878f with SMTP id mk8-20020a056a209f0800b0010512ab878fmr9775528pzb.56.1685639792224; Thu, 01 Jun 2023 10:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685639792; cv=none; d=google.com; s=arc-20160816; b=Q9HiLiKEJin4owlhPbFDA/ehethrF6QVqwTlRecereG13RzhSTZGAjjHI90kouSano T57Y/umOqXJRScarraSHetjMbh1NzfxmKaWFSEYA123mSTIAzBe9jWkuaugSc9w8uh8X k0zZydCzaHpOeHC474wIQIOKyvJ+fSfmCgBInSOg9f9zOTWi8ylQsdYR2fJF4NrMUrOC PWv2XGQVZ/GTjaPwX3AwUhzFFNjU3CWdggMZP1I0UxWvQDXC4hYmJ8dsQt7KvFtu2dZo 9YPSuBlp8ChGf4obvnVRyBXGfwFUDGuWlWe/1eO0O7hIQ5TsmoK3IO4PqV8N/JlTZvkK Imdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=FfEE42KSd8WyETy7bwVFiQSKZ1ePYYxii4Ubdrl6pgI=; b=TLs573JIFP7r5Mf5wTWaK0t2mhHEhiFcYIiZDj/wHy29CBwxRMQ2kVD8gzdBUsaCAQ aVzbRwXQdlrw2c3lMQBXWqwF/DHCpkEPrqMer++HCRJdeLAunZssA5P84Zfszd9NOkUe 24ilioPYV5TyTrZD/v1S/iZt8AxsIDIe3kKI7gGWN7A1sjug1FNfkJH2v19/4LpVqVsQ ydR94oz1KhbY3IVj1m5eGl16hxsktH5iokGBuPiDWEqAP4sz1UV/ZwZYPL64o/iqkloy i0lv/sINVWBGMvPVi4IlK3e1/NQhGIK2xEdmdRdUB+hU8UVe9aupz6+Ne90tUnHiiQY9 XWJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=Zh0CIvcy; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y24-20020a637d18000000b0053ef061096esi3130754pgc.438.2023.06.01.10.16.10; Thu, 01 Jun 2023 10:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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; dkim=pass header.i=@yandex.ru header.s=mail header.b=Zh0CIvcy; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231439AbjFARGe (ORCPT + 99 others); Thu, 1 Jun 2023 13:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbjFARGe (ORCPT ); Thu, 1 Jun 2023 13:06:34 -0400 Received: from forward501a.mail.yandex.net (forward501a.mail.yandex.net [178.154.239.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73A4E194 for ; Thu, 1 Jun 2023 10:06:32 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5f1d:0:640:49bf:0]) by forward501a.mail.yandex.net (Yandex) with ESMTP id C7C945E93B; Thu, 1 Jun 2023 20:06:27 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id Q6SU323DfCg0-FLwfESvu; Thu, 01 Jun 2023 20:06:27 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1685639187; bh=FfEE42KSd8WyETy7bwVFiQSKZ1ePYYxii4Ubdrl6pgI=; h=Subject:From:In-Reply-To:Cc:Date:References:To:Message-ID; b=Zh0CIvcyaIdAHqZ21pQBWddkkUoHOUt2YCscl/yw6+0x19n4EURlDNDjUBa20xykt 5JwYWH8huQDLDsGJ4kzCMngHlgy0sceB3OJLmhc2+I0jEVD5fUni1dyNWrP6OHsu79 ULvto0zdepOBUvafUCEuDS2FtpKrgLXTB+I3oD7A= Authentication-Results: mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <9fda7891-925a-1d9c-7c70-a7b040211199@yandex.ru> Date: Thu, 1 Jun 2023 20:06:26 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US To: Dan Carpenter Cc: Chuck Lever III , Jeff Layton , Tom Rix , Linux NFS Mailing List References: <20230601143332.255312-1-dmantipov@yandex.ru> <2D3D2D8E-4E7A-4B50-A1FF-486D7F6C26D4@oracle.com> <8ed6eb2b-fdfa-4fde-81f3-92e6b34bc509@kadam.mountain> From: Dmitry Antipov Subject: Re: [PATCH] sunrpc: fix clang-17 warning In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-nfs@vger.kernel.org On 6/1/23 19:39, Dan Carpenter wrote: > It's a false positive because the test is obviously intended for 32-bit > longs. I'm not an expert in compiler development, but I do not understand "obviously intended" in this context. An input literally compares > / 8, which is always false, and so the compiler complains. If "obviously intended" means "the compiler should silently optimize away this check for LP64", I would disagree, and that's why I would like to see the confirmation from LLVM/clang developers. Dmitry