Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A837C636D4 for ; Thu, 9 Feb 2023 11:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbjBILNI (ORCPT ); Thu, 9 Feb 2023 06:13:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjBILMy (ORCPT ); Thu, 9 Feb 2023 06:12:54 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDA974C1F; Thu, 9 Feb 2023 03:12:51 -0800 (PST) Received: from kwepemm600009.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4PCDgK1Fqsz16NVF; Thu, 9 Feb 2023 19:10:37 +0800 (CST) Received: from [10.67.101.184] (10.67.101.184) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 9 Feb 2023 19:12:49 +0800 Subject: Re: [PATCH 2/5] crypto: hisilicon/qm - change data type in min_t To: Herbert Xu References: <20230203093730.49314-1-qianweili@huawei.com> <20230203093730.49314-3-qianweili@huawei.com> CC: , , , From: Weili Qian Message-ID: <658e62e1-2337-32df-3641-03a4789f30a0@huawei.com> Date: Thu, 9 Feb 2023 19:12:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.101.184] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600009.china.huawei.com (7.193.23.164) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/2/9 17:32, Herbert Xu wrote: > On Fri, Feb 03, 2023 at 05:37:27PM +0800, Weili Qian wrote: >> 'act_q_num = min_t(int, act_q_num, max_qp_num)', 'act_q_num' >> and 'max_qp_num' are 'u32' type, change min_t() to use 'u32' >> type instead of 'int'. > > If they are of the same type, why not just do min? > > Thanks, > Thanks for your reminder. I will fix it in next version. Best regards, Weili