Message ID | 20230613030035.216556-2-suijingfeng@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp273623vqr; Mon, 12 Jun 2023 20:13:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hU88UlNAEMTAHxV83d/ChaxEfwBT9dhjjBTsu9wQi2UKApPb6FXwR7fgdwNefi50Wxtjk X-Received: by 2002:aa7:d89a:0:b0:518:741e:9314 with SMTP id u26-20020aa7d89a000000b00518741e9314mr468050edq.11.1686626015504; Mon, 12 Jun 2023 20:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686626015; cv=none; d=google.com; s=arc-20160816; b=mmC6DA3wmuEujNSjg7sm2itFWvuHGqx6Xklm83P1bgJfoiT3+NCc0ZpXFlKuv0gnCj iFuZJVs85DKRQR9H9XlxbdOs/utjRSm1QcSgRO5VXYcJQQ7OVr2UgNkZYQUL/UZvSCWk GbwI7WVzcaI+Lj/AREV4FNHihW5KK6CJKdQKd83rkji/jtHP0diG7jxsaC26TZ8SNble hRQ4PXF712RiwsoczHQSe7mHeZbVZEamK/UBa90oMF9MGG5d7L5OJO19IocWYVaVvk2b F/nxSmLp4nXAZb/dMN4X+5LocqtTt3H+kqxSuQTJv5PU+xc/pMMMJseDN1Wu6E+U2VGL OQ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=2daLQN7EICtZmk80w9wIqbrSyLMd9jPrN6Jnnmb2SdU=; b=xUNiHlQOkdZAMdfBjXzEcuuod2Q+hK8mFIpJydimyoPSaHb6ZAhoe0yEDYiYfiFZQm Db8B4sMgkcvjHKnVy2aiMap8IE9aDcP7Wf3awBPciSOcAcf1EXBkfftU+oShrFz7Yafr BauFZAKUXeDtZzVCT5d3OzBzhLjVh3uPCXLKKp0dfZD9CoWEq3Jg2bcRIO+RsWgKRpXE ekTqlRdxBJwc1y63aMuQdWIrLqNWJhcRRzydqaEFwy4ktiqgagfNviQbXuHQalhRNB0K NtKuNVPKCREtWSdiwRyVdLehCitj1QfIzD8Q4e42k2nOD6wFre8QpdmNZCLghCi3QxSY bmqg== 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 lf3-20020a170907174300b0096661b3f659si6320396ejc.796.2023.06.12.20.13.10; Mon, 12 Jun 2023 20:13:35 -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 S239247AbjFMDBE (ORCPT <rfc822;liningstudo@gmail.com> + 99 others); Mon, 12 Jun 2023 23:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239027AbjFMDAn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 23:00:43 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6626E1732; Mon, 12 Jun 2023 20:00:41 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8AxHuvW24dkR2MEAA--.9378S3; Tue, 13 Jun 2023 11:00:38 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxC8rV24dkOkAYAA--.60391S3; Tue, 13 Jun 2023 11:00:37 +0800 (CST) From: Sui Jingfeng <suijingfeng@loongson.cn> To: Bjorn Helgaas <bhelgaas@google.com> Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org, linux-fbdev@vger.kernel.org, Andi Shyti <andi.shyti@linux.intel.com> Subject: [PATCH v7 1/8] PCI/VGA: Use unsigned type for the io_state variable Date: Tue, 13 Jun 2023 11:00:28 +0800 Message-Id: <20230613030035.216556-2-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230613030035.216556-1-suijingfeng@loongson.cn> References: <20230613030035.216556-1-suijingfeng@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxC8rV24dkOkAYAA--.60391S3 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj9xXoW7XFW3Wr1xKryUZF1fWr1fXwc_yoWDtFc_u3 97t3yIgr48G3W29F1DC3yrArWfKw10vF47Wa4kXa4fAFyjqrn8G3s7Wr98Ka1DXa13CFs0 gry8Jw1S9ry7WosvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbS8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr1j6F4UJwAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_ Jw1lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwI xGrwCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j7BMNUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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: <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?1768555560663299510?= X-GMAIL-MSGID: =?utf-8?q?1768555560663299510?= |
Series |
PCI/VGA: Introduce is_boot_device function callback to vga_client_register
|
|
Commit Message
Sui Jingfeng
June 13, 2023, 3 a.m. UTC
The io_state variable in the vga_arb_write() function is declared with unsigned int type, while the vga_str_to_iostate() function takes int * type. To keep them consistent, replace the third argument of vga_str_to_iostate() function with the unsigned int * type. Cc: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> --- drivers/pci/vgaarb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/vgaarb.c b/drivers/pci/vgaarb.c index 5a696078b382..c1bc6c983932 100644 --- a/drivers/pci/vgaarb.c +++ b/drivers/pci/vgaarb.c @@ -77,7 +77,7 @@ static const char *vga_iostate_to_str(unsigned int iostate) return "none"; } -static int vga_str_to_iostate(char *buf, int str_size, int *io_state) +static int vga_str_to_iostate(char *buf, int str_size, unsigned int *io_state) { /* we could in theory hand out locks on IO and mem * separately to userspace but it can cause deadlocks */