Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4845165rwb; Mon, 8 Aug 2022 07:59:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ig9X44tXG4dmUHKYjd9sX9T97404xQxGrYi5HMz5PtOpo8g/LkpbXn8RkUb+O86aMsamJ X-Received: by 2002:aa7:df88:0:b0:43d:3ac0:a33a with SMTP id b8-20020aa7df88000000b0043d3ac0a33amr17625706edy.157.1659970750979; Mon, 08 Aug 2022 07:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659970750; cv=none; d=google.com; s=arc-20160816; b=QhfHyh6E+y7vmfaLEUOeETmrC4pZvORGvhgB+PUcmrUgSfNvEE80DNs0OUD+Z5ehou FGdlc1nLC+G54PET0xac34HbmthhTRZv964tn5z4lWM325ubW+R8pt6qFKdKjrXM3105 AZXG2VewzQYlgMacMnmKl8ZHqIsfeMBU5MKYZAkOCuCyG8QUHCcgAdrYhXW5ByqBpLLP C6Ci+/3l2GlpCvMznIJP8thGSqxStm9JwD135cKnldWpuNWvXfL2xcRISaNHuMIiDgss AC0vQc3nR0YvUT0zo6rC4GPzTHwIHxM5eNNj9NCfvK5no4wpooZkFsyxwn6OUXCRW83+ btjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=UkxV/nkv6sBKfvRhEMSPNWCS40hyIcB5Cv+OdCYLbEc=; b=XTc4bKNEKDZNYGuqyAzWA3vIxLpDgTNRUgTXTCoxEE1CyfuBVaD12YL30+URwsoISu cDeknkPgRYCzL+sFR7v0xpNLX9O+uOW7impg5pS+3jV7hUXbd/nZzAesR6fBLnSzGjls Y9Nv9YupjlZUU8nrgLOG/sqCyQWNMkhcVsrR5zDE89IlPOviUGstXBJh8wyM8jF/z33d lV4CCMjtNMT8rkZrm1Wx6qCH0Euy/5ksC1UaTg/PjYkKvQUuS1Oq89YW5u8vtuL7wNv1 mAjqLZjb4U2ppKyrLOygEMVkie9x7JXbRBTx/fHBGVq9GSeB89pZmG9XIWT1raIHN7wt ggvw== 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 e13-20020a17090658cd00b0072f2e1425a3si10764360ejs.774.2022.08.08.07.58.44; Mon, 08 Aug 2022 07:59:10 -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 S243612AbiHHOs6 (ORCPT + 99 others); Mon, 8 Aug 2022 10:48:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243415AbiHHOsw (ORCPT ); Mon, 8 Aug 2022 10:48:52 -0400 Received: from bg5.exmail.qq.com (unknown [43.155.67.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7816BC23 for ; Mon, 8 Aug 2022 07:48:42 -0700 (PDT) X-QQ-mid: bizesmtp63t1659970114tdwoi7g2 Received: from harry-jrlc.. ( [182.148.14.53]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 08 Aug 2022 22:48:04 +0800 (CST) X-QQ-SSF: 0100000000200030C000B00A0000020 X-QQ-FEAT: CR3LFp2JE4ltZv2R7LLkJ0RCBF3k2eS49hhj81GJ3aeFP2oiDHYeTQax0nJbR l/c8n/UUiNM2/p+0T5WhUk8EClm4lGn9Pp0EMF5oU2y6vPTMm2Oz+VyX9GFR0tBiMUvmCid r41XdWcKSpdIPAEQ6IKjtaFedCnHd7Z6AY1yWWRQDvmQwo6Ws7CZbCdbrHsfoXSvmTkQhuj eC9KNjer4BY866CXScSBA6Nu4aEh8A6HFhNHu1R5rsdDfLQm+kUmMMcuYpFIFkLzAO4w2jp FULkVpal7wt9bhYs4DIswKtBSaZ1Tpkpp0PSGxB3uOGUCKx28eWbX9aUyDaVU5YsY4zjZm1 bcRP3xE3BuGWccxUQK1CtP08pnp7q0bIaUMzR0RF4MDE19Cy1M= X-QQ-GoodBg: 0 From: Xin Gao To: mst@redhat.com, jasowang@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] tools/virtio: Parameter type completion Date: Mon, 8 Aug 2022 22:48:02 +0800 Message-Id: <20220808144802.58745-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 'unsigned int' is better than 'unsigned'. Signed-off-by: Xin Gao --- tools/virtio/linux/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h index 0b493542e61a..94144979fbba 100644 --- a/tools/virtio/linux/kernel.h +++ b/tools/virtio/linux/kernel.h @@ -58,7 +58,7 @@ static inline void *kmalloc(size_t s, gfp_t gfp) return __kmalloc_fake; return malloc(s); } -static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp) +static inline void *kmalloc_array(unsigned int n, size_t s, gfp_t gfp) { return kmalloc(n * s, gfp); } -- 2.30.2