Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3574971rwl; Mon, 27 Mar 2023 16:36:31 -0700 (PDT) X-Google-Smtp-Source: AKy350bg59jSEkI6qoSvUi6j52a2/X0RCHzUMBPcRwZNkljF+wVVXd3KK4i4YvJt2S3vARwzf4M9 X-Received: by 2002:a05:6402:204c:b0:500:2cc6:36da with SMTP id bc12-20020a056402204c00b005002cc636damr14370043edb.19.1679960191312; Mon, 27 Mar 2023 16:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960191; cv=none; d=google.com; s=arc-20160816; b=gDatfI8vUwKBir4p/26ZzWyaew83kxCrg5cuXhTC7055LaMSc6E6wu2mcorMhO/Dvw x00TYPgfqzA3wBMDxskEYH8b90oJBW3qNwKpMCcrdsAAekL5mYv3vW5vdsZ14og0cIoU aLsE9McpUBoms95JuuwMAsy5nPS+rOUrlrxYN2KoYU1trz/TwVBQ4MkcWA6a+Ie3M6xs 4El7LXjQzpAKec1O8hOo1kOqU9FR/lS6kV1K5WgtuF7cvbAMF86k17llxPRD9SYeMNhI znvXQf5pzLbk2sSZoNrhItdjs65eSREZEwk0YN2849PuuH1qqrnuKDll7cCUDPFo+nZ7 oGtw== 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 :dkim-signature; bh=yAF560UdJX0GEGh8pB1EAaLbRBoRHEw96H0zayNQKjc=; b=zM6nN/XaSmkjML15pnssJFkdnAC0ogl2Z6gz6y6PwqFnluQ70CGK2/dWL/keAVMmpF 4d2I/zQ8/Bw5439kKohUz0PTmLm+x+rAXbs3rT/3alBPVclFPRhjp4rHKN5IW6no2K0X 6HPYgwiNpdBPOv6C5ZHV5xCwGe6SWf8FwGoLW7efU8wHG0zQYiYZh3dETOtSl6vJerkh WmIWtObcUnhOadfvap+7bQ6QE8fqrJvF4xfOLvQSr/cl1Fgx3p5OhSAx+cp/INxPo3Xc /wXg1VxOxSimHkGq5lRpTkMK/4MQ2cX7t0EeUYs6LmIp/qrLLEAkJ4CI16zL+elihJCu HNsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=s5BGJnAq; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v15-20020aa7d80f000000b004fb506ae6bfsi28580732edq.247.2023.03.27.16.36.07; Mon, 27 Mar 2023 16:36:31 -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; dkim=pass header.i=@usp.br header.s=usp-google header.b=s5BGJnAq; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231913AbjC0Xff (ORCPT + 99 others); Mon, 27 Mar 2023 19:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231987AbjC0Xf1 (ORCPT ); Mon, 27 Mar 2023 19:35:27 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8438B26B2 for ; Mon, 27 Mar 2023 16:35:10 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id bk5so7699622oib.6 for ; Mon, 27 Mar 2023 16:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960109; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yAF560UdJX0GEGh8pB1EAaLbRBoRHEw96H0zayNQKjc=; b=s5BGJnAq7jaEqaXyIrghhFPGN9hy259iqKpXXpXaLj6L2JgntWwWRT6UwzgFlL+a6W br0qVZmkEWUZydrOQC4RCcT08aprE/usdIisKmADVQTJWZ9gkn3qOoRxa6xH/VwZdZYd H6xJ8snIaCAxI8OR/2rpEpjvQxq4fo8hn1T+N4L/9gP+EFRzPFNqq40G34MBOLW5+ltB xJiKW4lWmTocpeyGW60GYjyY67U9OI3/VgY814ZUnRKxgLIgyQ9UbU9XRVQF4vEaidER SQpbiRtTQMZRqidHy2/13vqKJSjrBZDDVKUU5qEqOj/9JRRRZkVpXovfI+KwpabwKJ9B yg2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960109; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yAF560UdJX0GEGh8pB1EAaLbRBoRHEw96H0zayNQKjc=; b=pp0PNU0jZFisIyW//M8hkbAnN9Q5hQbCV7/210MoYJwjjJFUy+2ipyANAUEmW05DRN aurCO9Muku9sLxcwlJ48oAaE5VhqNj/7FZRIP1AawWbxUxcPTfAYbHre96FLZRvFQ7MC vwDqAqXkEhba4R2vLIpmBkZpeVniXMhgppd1YghZUCE8B/y0NnRJVnOU1JV8DqZx2vwZ IBS6WPe0Ld+H9Nlm5EPFgM8ZdWLoxwCg/J6teDENAUoa76xwjQYOAeFUaGY0USL3cfdD dswz8FgR2h/aqAjB+S8Gn+s5PVpkfUw5EOkRBRMjJDxPZ4Y07HFDeBnS/oszLFdOSuZP m51g== X-Gm-Message-State: AAQBX9cor96hNxB/wnSGoBeyyEyBJ0lqRAq/YW/uFVLECeIxeyVZ/iVr nP08Li5eTRRy0eXzofufdxjknA== X-Received: by 2002:a05:6808:9b3:b0:389:545c:a95f with SMTP id e19-20020a05680809b300b00389545ca95fmr5474oig.42.1679960109737; Mon, 27 Mar 2023 16:35:09 -0700 (PDT) Received: from ARCHaio.localdomain ([2804:1b3:a2c0:c911:919f:bd20:4f2a:8383]) by smtp.gmail.com with ESMTPSA id b186-20020aca34c3000000b00389295e8424sm1643409oia.45.2023.03.27.16.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:35:09 -0700 (PDT) From: Caio Novais To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Harry Wentland , Leo Li , Rodrigo Siqueira , Jack Xiao , Hawking Zhang , Le Ma , Mario Limonciello , Yifan Zhang , Mukul Joshi , Jun Lei , Wenjing Liu , Alan Liu , Caio Novais , Joshua Ashton , Guo Zhengkui , Nicholas Kazlauskas , Zhan Liu , Wayne Lin , Charlene Liu , Martin Leung , Tom Chung , Alvin Lee , George Shen , Qingqing Zhuo , Roman Li , Wesley Chalmers , Aurabindo Pillai , Jingwen Zhu , Melissa Wen , Felipe Clark , Sung Joon Kim , Dillon Varone , Ethan Wellenreiter , Taimur Hassan , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Brian Chang , Gabe Teeger , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Chaitanya Dhere , Jiapeng Chong , Ryan Lin , Hamza Mahfooz Subject: [PATCH 06/12] drm/amd/display: Remove unused variable 'mc_vm_apt_default' Date: Mon, 27 Mar 2023 20:33:47 -0300 Message-Id: <20230327233353.64081-7-caionovais@usp.br> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230327233353.64081-1-caionovais@usp.br> References: <20230327233353.64081-1-caionovais@usp.br> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Compiling AMD GPU drivers displays a warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubp.c: In function ‘hubp3_set_vm_system_aperture_settings’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubp.c:50:30: warning: variable ‘mc_vm_apt_default’ set but not used [-Wunused-but-set-variable] Get rid of it by removing the variable. Signed-off-by: Caio Novais --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c index dc3e8df706b3..e46bbe7ddcc9 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c @@ -47,13 +47,9 @@ void hubp3_set_vm_system_aperture_settings(struct hubp *hubp, { struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); - PHYSICAL_ADDRESS_LOC mc_vm_apt_default; PHYSICAL_ADDRESS_LOC mc_vm_apt_low; PHYSICAL_ADDRESS_LOC mc_vm_apt_high; - // The format of default addr is 48:12 of the 48 bit addr - mc_vm_apt_default.quad_part = apt->sys_default.quad_part >> 12; - // The format of high/low are 48:18 of the 48 bit addr mc_vm_apt_low.quad_part = apt->sys_low.quad_part >> 18; mc_vm_apt_high.quad_part = apt->sys_high.quad_part >> 18; -- 2.40.0