Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp95843rwb; Sun, 6 Nov 2022 03:15:12 -0800 (PST) X-Google-Smtp-Source: AMsMyM6e8wcdDFaAYiqE5LyALAqCDFci0Xc9Q2Ito0+ic/iwGDVchB3+ibf2rJi4B8Gh2nWlJymn X-Received: by 2002:a63:5a05:0:b0:434:23a5:a5ca with SMTP id o5-20020a635a05000000b0043423a5a5camr38724401pgb.515.1667733311778; Sun, 06 Nov 2022 03:15:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667733311; cv=none; d=google.com; s=arc-20160816; b=jKZdPqCsRXtaEYLbaNpI9yHRGZwdbZwAKtwXLWf+8TvwxDP64qFCJbpaXARuDDj71P GvgpnnQjLQg1f0X8wBWpKxYNOd0ItfRj9YtftiwOSIB5T6Kcr1obN5bCyU7aVqLMlRA1 CQMsF84+MgQm3BzBXw7OUz+djryyPrVaNP8BpcRhZvXpOh/7YI90Ynib55unnRCPQhAW zATfgwkCQn75eFE50pDE5RwCpllIWDfMxc6iyUktgLBlMtB/+BGK+QO/Y+DPbabDy2v0 gB+80neJf9nZEhyNPFn7TN4YXnx/mEByo2QeLN6hB+EctCBtUQAXabo7Se3yipzetsCj /BjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=wHnDOH+GmyPQZsXy08I778MWPzn1MlHxoTXSkN+hoY0=; b=vWNypCiXxZkCyYq+bOKrQ5HqSge/StJKh8o2IaHUVYli7QTguyDQgPT+O8ISex6ZF2 0p578b4Eo8jAyqw2roJZhrfnqmdxfP4zy2ciWvKLLR8BWq4ew1IGOvuHIx9e74xrFDvI oE9jyhrfMaFlQu6nXBSJkPe8MAAlW2FDpayTLS33CnfFKD6qNY+BHl7bj0BKuEMStYT/ yswCrz4bo7lVd99V4IhLVizX3STA7MMi87niD7OAwrJQRundFpMwYOYtCiG0GJfNIzys iPdtdk03MR1zt+xYnR5WhjCCniKuV8M3EM+PpV4e/rRgLEDXwngaqXG8V+khaTIJieQh Bxew== 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 f15-20020a056a001acf00b0056d480f7b92si6673162pfv.378.2022.11.06.03.14.59; Sun, 06 Nov 2022 03:15:11 -0800 (PST) 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 S229852AbiKFKbr (ORCPT + 97 others); Sun, 6 Nov 2022 05:31:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbiKFKbq (ORCPT ); Sun, 6 Nov 2022 05:31:46 -0500 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 624275F98 for ; Sun, 6 Nov 2022 02:31:36 -0800 (PST) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sun, 6 Nov 2022 18:26:38 +0800 (GMT+08:00) X-Originating-IP: [182.148.13.29] Date: Sun, 6 Nov 2022 18:26:38 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: wangkailong@jari.cn To: chenhuacai@kernel.org, kernel@xen0n.name, zhangqing@loongson.cn Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] LoongArch: Fix unsigned comparison with less than zero X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.1 build 20210329(c53f3fee) Copyright (c) 2002-2022 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <63425a0e.b8.1844c7a5d80.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwD3C+Lei2djsoYBAA--.50W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQATB2FEYx0CNQAEs9 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 RWxpbWluYXRlIHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKLi9hcmNoL2xvb25n YXJjaC9rZXJuZWwvdW53aW5kX3Byb2xvZ3VlLmM6ODQ6NS0xMzogV0FSTklORzogVW5zaWduZWQK ZXhwcmVzc2lvbiBjb21wYXJlZCB3aXRoIHplcm86IGZyYW1lX3JhIDwgMAoKU2lnbmVkLW9mZi1i eTogS2FpTG9uZyBXYW5nIDx3YW5na2FpbG9uZ0BqYXJpLmNuPgotLS0KIGFyY2gvbG9vbmdhcmNo L2tlcm5lbC91bndpbmRfcHJvbG9ndWUuYyB8IDMgKystCiAxIGZpbGUgY2hhbmdlZCwgMiBpbnNl cnRpb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