Message ID | 20221113064633.32294-1-wangjianli@cdjrlc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1570966wru; Sat, 12 Nov 2022 22:51:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EtpBBm90FH+WqC9BEUWW96miAK5WZjkEx44qLP+H6hPo+LkHl0nNmySL8syw0ta8CZDKm X-Received: by 2002:a05:6402:2c8:b0:461:1f4c:36d0 with SMTP id b8-20020a05640202c800b004611f4c36d0mr7105803edx.310.1668322280010; Sat, 12 Nov 2022 22:51:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668322280; cv=none; d=google.com; s=arc-20160816; b=RwBYmPWSdrQ0bNdPYBAFHSOtM6klIEZIFpB/4l1UBhrvoxcY6LAlFDFRyrJTIJWPhW MtANgDyyFV0CRkha4JhN5FxMIevSa1CJNM2SDCqqF8XEbGsV8lVrR377vN+FYwZR2P4o PmHL3W6JZeX/abT9ADUNz6++qukDWF4WWTA9rk6LJ6pUyJng3LHLD3dZLhC6Mlq8x7hF zeOQeNGB76i4vcVWpdq0XBm28pOzTS90gIclYU4PafEjQMYGdz5PnskjThMu7MaOrKxQ +LW0eod9opnInzT/j+qTjUa1L7kgg/TpObSO4Wfed1a5tU0ut+3XcJwxdd0YXFU/olba pHGA== 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=jp0YU3BkAEoJU5MCGhlkOoJkyGBEoLe9KyyA9E5T7Xs=; b=Lb6r4vQ9/bWjFqIE7DLmCJ6BH4UmxoE115WkOmqYqcjmGzpNzW4q30+vbBomqDMc9Q zYUTaxnyCASBSQ4EKM7AvFoSEhADoN7xh/nViWF33GvCbtkHJ40k6gUZgbeHY5Y8sxbJ dV1GzOKKdOZx6UvL6lzfWjef1SHj1/8tuD30KzBU3Qt5Rb6rYCd9Q+/xaXRHy18+n/qt t4e7lSA3UEEKB5QFSiNaB0QTNkcKBLdzkaNwhdYsfPEKf83njRoRpbUz3sxLPvd0vtba Q7vh7I+qPj5Jzxt4+Lp8zHmnBEA/Z4paVVnC0uDFy2i11E8hRnN32WJvt70AMBHTYF8A xV5A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh32-20020a1709076ea000b007adbe7695a5si7020395ejc.935.2022.11.12.22.50.54; Sat, 12 Nov 2022 22:51:20 -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 S234627AbiKMGqw (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Sun, 13 Nov 2022 01:46:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231694AbiKMGqu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 13 Nov 2022 01:46:50 -0500 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 816C910FED; Sat, 12 Nov 2022 22:46:46 -0800 (PST) X-QQ-mid: bizesmtp84t1668322001tmlelxc1 Received: from localhost.localdomain ( [182.148.14.167]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 13 Nov 2022 14:46:40 +0800 (CST) X-QQ-SSF: 01000000000000C0F000B00A0000000 X-QQ-FEAT: ZdHcY4j9T+J5MIkIHbnfd5SmJxFuAH9aav3AFpo/nf5rXtfvwt/pqhrkHmcqL FToy5CIWZJ2VM9dzhPqOMoS5n6ayQnOJDNF2Z0lT967JDNK1e4TNQbulusW9GZ74Xnr/dl/ Cx7LISSJAxPzpuJi0gt+eMufFmxtLjvzJEjNwlMlIDP0ZKZ5exJKPjfQ4lunKV8QUvSvzHY cTVCs2RYvpLl9VxsbQrHghzqs+m8ypFbW5uRYQ83JZhmGDcKCiingWJ5neEu3Ytw0EmtjVC Q94/dvaDRNcfKrXkNISnTw8WU7+xnMwDV+D54rB7b0DCec+60VDi5tCRnx2IYO3F8vRocok VfKh2VVMor47yOSWEU= X-QQ-GoodBg: 0 From: wangjianli <wangjianli@cdjrlc.com> To: pbonzini@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, wangjianli <wangjianli@cdjrlc.com> Subject: [PATCH] virt/kvm: Replace "unsigned" with "unsigned int" Date: Sun, 13 Nov 2022 14:46:33 +0800 Message-Id: <20221113064633.32294-1-wangjianli@cdjrlc.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749362703467727966?= X-GMAIL-MSGID: =?utf-8?q?1749362703467727966?= |
Series |
virt/kvm: Replace "unsigned" with "unsigned int"
|
|
Commit Message
wangjianli
Nov. 13, 2022, 6:46 a.m. UTC
Replace "unsigned" with "unsigned int"
Signed-off-by: wangjianli <wangjianli@cdjrlc.com>
---
virt/kvm/irqchip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sun, Nov 13, 2022, wangjianli wrote: > Replace "unsigned" with "unsigned int" > > Signed-off-by: wangjianli <wangjianli@cdjrlc.com> > --- > virt/kvm/irqchip.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/virt/kvm/irqchip.c b/virt/kvm/irqchip.c > index 58e4f88b2b9f..eefea6a650fb 100644 > --- a/virt/kvm/irqchip.c > +++ b/virt/kvm/irqchip.c > @@ -38,7 +38,7 @@ int kvm_irq_map_gsi(struct kvm *kvm, > return n; > } > > -int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) > +int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned int irqchip, unsigned int pin) I'm all for opportunistically cleaning these up, but IMO it's not worth churning code just to fix use of bare unsigned. And if we are going to fix them, fix them _all_, and fix the prototypes, e.g. from just a few relevant declarations: int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin); <===== int kvm_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, int level, bool line_status); int kvm_set_msi(struct kvm_kernel_irq_routing_entry *irq_entry, struct kvm *kvm, int irq_source_id, int level, bool line_status); int kvm_arch_set_irq_inatomic(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status); bool kvm_irq_has_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin); <===== void kvm_notify_acked_gsi(struct kvm *kvm, int gsi); void kvm_notify_acked_irq(struct kvm *kvm, unsigned irqchip, unsigned pin); <=====
diff --git a/virt/kvm/irqchip.c b/virt/kvm/irqchip.c index 58e4f88b2b9f..eefea6a650fb 100644 --- a/virt/kvm/irqchip.c +++ b/virt/kvm/irqchip.c @@ -38,7 +38,7 @@ int kvm_irq_map_gsi(struct kvm *kvm, return n; } -int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) +int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned int irqchip, unsigned int pin) { struct kvm_irq_routing_table *irq_rt;