Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp611858rwo; Wed, 2 Aug 2023 00:57:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGqJF2/QuTdc7B5s+JwS+uQmatQrCr2ELqQ8ihixSjY7YeYY57GwkCYaD0Pac3gRzQ8cPe X-Received: by 2002:a05:6808:2390:b0:3a3:eab8:8c40 with SMTP id bp16-20020a056808239000b003a3eab88c40mr19619931oib.54.1690963056661; Wed, 02 Aug 2023 00:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690963056; cv=none; d=google.com; s=arc-20160816; b=hPvGLXTtV4qtdEiJheSYFf7ORYzIqf0yjbfAHQZXg91GY9dKbFLczNqjSDmzLI3kV9 9hIt+/OxqMD2rFcUQVbD3eXkPY1fpJBhN6et+FOVolWON9Q/MNweaExcAV/0WMeC10KB q684xVg7uPRSzJmV9XuD8XGW8elPe51laPuEg+BMKluDOm62O0lACCKmIg9G0mmp6690 jGzUimFZsF7GgRmgGfTrglj8zoX4OZ+sS0jqQcEPRHsyJBIFjFJjR0tdDAh0NcKdlJQc mCKEUL6a8bpPcKxoEhbbc8A3Vi/Ubrmo2Q0FBXd6n/J/EZgcTMsdBvPlJbNWrLS1kS8W T3Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=qp1ERpck9K01Oq91az5OXe0psx1O0omFpkHdiju6iZg=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=eoLsQQMc+OVwhh/hkXw0IGrEkszodwFeHkCEnJbDiUmB0OeAJ720gFSfTRjV5yD99L 4gY1fPMOLO2Yv+VThjYdt04xYgP8g+R6ifpv11pGb8GSvv9bPGqGmEIlInlt/7qtjSIH DrNnOU9eFsGpj1q6ZOxAfFsQNBV28npmGwn+69fjU76yQ1zb9decxMC2GEFWfYrFMRDG BMF/CQK2O4WVo8dOgYmpq8DPeB+aaezmJ8OK9pPj/S8fTpKtrbN0SdnYHw0zcgWzuQia oWiBrDHdNTm1DBiHT6TTGGySsVT1XY9bKpNgk4bNAwaO9xzOCAcwxSsB2RxTOXgKejUp /4Rw== 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 r17-20020a62e411000000b0068717205f39si7438797pfh.190.2023.08.02.00.57.24; Wed, 02 Aug 2023 00:57:36 -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 S232131AbjHBHbx (ORCPT + 99 others); Wed, 2 Aug 2023 03:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbjHBHbw (ORCPT ); Wed, 2 Aug 2023 03:31:52 -0400 Received: from out28-196.mail.aliyun.com (out28-196.mail.aliyun.com [115.124.28.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78202EA for ; Wed, 2 Aug 2023 00:31:51 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.5432064|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0261891-0.00501429-0.968797;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047193;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6c688M_1690961504; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6c688M_1690961504) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 15:31:46 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amdgpu: Clean up errors in amdgpu_virt.c Date: Wed, 2 Aug 2023 07:31:41 +0000 Message-Id: <20230802073141.13343-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following errors reported by checkpatch: ERROR: space required before the open parenthesis '(' Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c index ec044f711eb9..96857ae7fb5b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c @@ -520,7 +520,7 @@ static int amdgpu_virt_read_pf2vf_data(struct amdgpu_device *adev) tmp = ((struct amd_sriov_msg_pf2vf_info *)pf2vf_info)->mm_bw_management[i].encode_max_frame_pixels; adev->virt.encode_max_frame_pixels = max(tmp, adev->virt.encode_max_frame_pixels); } - if((adev->virt.decode_max_dimension_pixels > 0) || (adev->virt.encode_max_dimension_pixels > 0)) + if ((adev->virt.decode_max_dimension_pixels > 0) || (adev->virt.encode_max_dimension_pixels > 0)) adev->virt.is_mm_bw_enabled = true; adev->unique_id = -- 2.17.1