Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3574739rwl; Mon, 27 Mar 2023 16:36:19 -0700 (PDT) X-Google-Smtp-Source: AKy350aA4XJB+E4Jeo4nH1uqJ9CTcscFzqveRvI2fNEjaIAy5a2NVCiOwQ6oOsZIvC14UB+SWU1K X-Received: by 2002:a17:906:9756:b0:932:9303:76b9 with SMTP id o22-20020a170906975600b00932930376b9mr16003621ejy.26.1679960179647; Mon, 27 Mar 2023 16:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960179; cv=none; d=google.com; s=arc-20160816; b=YHcWdcrfrIoyy+gx3UMLZNQHQCDwKYEDpi+FGD94BWKUSvp5AG/j/mZyrT9AFggxyD y7d4qab6GphOCH94QDiOP/y8zd9zQZVT1xFjfU8KSpNvNfW2xu4uAa5xRaJIcghOn5aT 5Up5CzgB1+Gb2fzwzWUheNNzDGSMRIS4FBGMl+3fSJZOp3jG4TjLAvtPu4lZb0JqGPyq M77VueKvMhW4Eje19D6XRLuBCRDdXZmETkTabkbtTK01LJxWd3EjuWM3EbTN3o4BNmXI oLiWF2FdFHyeMAHLPviss66aH/6Sgc+MPvpR+/1m7tyF0Ph7Aoio55Q9sx1+mUQAT0YB KD+Q== 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=UZvChWzT9y/5zLeIHf5uAQzD/BtvkDRJ3FwyLW2ZaHk=; b=zM7al4siW+9/prPzdjrcknEjmABv9ny39AGL2zR71wVKdpouJPjPI8qcGsITOx3jaz +xJ2L9Iz34ZXocTxdm+OCjp1GJO1bly9RccNVupnucDQQv5g1pj10F8J+IPB/ycFZkyG +C4y1UC6fPh4Q7XG5twG7RPp45ymTlhr2VV9MeDbilFsk2BPtSfy7rzgo9Fx+alKc2tR 1yWj0P0+dpYnT1sr+QuS7gGZaUh/oId8vWiCK1MurmjkSwWuvsVYnWiihvhv1VDu/fDi gEsGeoei1VKKjbwI6fXPkTwB505QPfOQzGfSpRYjurBWvC4FW/WA0p6kv8KeHqBMUycu iv5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=wm7ahbRI; 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 gz21-20020a170906f2d500b009313d581faasi27887120ejb.101.2023.03.27.16.35.55; Mon, 27 Mar 2023 16:36:19 -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=wm7ahbRI; 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 S230138AbjC0XfT (ORCPT + 99 others); Mon, 27 Mar 2023 19:35:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231932AbjC0XfN (ORCPT ); Mon, 27 Mar 2023 19:35:13 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 718A2272A for ; Mon, 27 Mar 2023 16:35:00 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id bi31so7682658oib.9 for ; Mon, 27 Mar 2023 16:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960099; 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=UZvChWzT9y/5zLeIHf5uAQzD/BtvkDRJ3FwyLW2ZaHk=; b=wm7ahbRIhc9RvuZcZDoeymhlv3zgD7q8vtlddoiFgyPuYrCF2UQHw1qVFatPY38lbk L2MDcqf4eFfFC9CD4fkQf+dipCiiaXWG8ig6gj/1+WLjtVv9dPoPoWUW0OdVyljtevBj P1tAYeCjhmjGlaaJoO3h1AsREJwGADm4oAyEWnyxhNQmZEp/yuGqEhppic9GwJ497+6m cdfMze0NchXZo6iFtJ+LC4Uj2Wt37hP+m0Yhw2h11qHaiAf+GKNcfNcWz6Vr8UPFQ20/ qqdrotLRu9N+cgoUH8F8M74KXSdu7eKJD2CI9iaISd9WZdaUnoQcd733g9l1a2Q1kQib AJ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960099; 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=UZvChWzT9y/5zLeIHf5uAQzD/BtvkDRJ3FwyLW2ZaHk=; b=5+qZo9ndILh9ZvpC3jp9ki3OW1AYzDs9kh+AsSIC1Xx4Fn6cFaq2Fx0H42WJM9KBbG zA/0EWKmqnBPanKz9PL0194cip7KpcpMTO6MkXo6SMYbbkiScR5elxBzSx+HzI/Ylxk3 FMBpZ72H2R+9uBldMfBa/qOD7vVGJG/LZu/nWSnqunUNtc/L7QZbfs4L67utmpDI5gIK ap75/jZDZaMjpQdycbOZs1h8pS1sj5jCy8C5ZNsoTka7ebvPOfyTAqB9u5odIjFNGrP+ 4q7WAyQ4m18ycs8Ow9T/mAMW4Tnpgh9NcjFcDkxAffX5xxojW22IzJG5Kl9B6BoCIeIJ dhFg== X-Gm-Message-State: AO0yUKVcN0E9d84MjS5Z/hvOi6ZzXlXv7uvNJMlTbaKPgI8EOiXtIfcs qHj5Admdp1s2WNEyU7FrLfOELw== X-Received: by 2002:aca:220a:0:b0:387:3a49:4733 with SMTP id b10-20020aca220a000000b003873a494733mr5203770oic.59.1679960099653; Mon, 27 Mar 2023 16:34:59 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:34:59 -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 05/12] drm/amd/display: Remove unused variable 'speakers' Date: Mon, 27 Mar 2023 20:33:46 -0300 Message-Id: <20230327233353.64081-6-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_afmt.c: In function ‘afmt3_se_audio_setup’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_afmt.c:126:18: warning: variable ‘speakers’ 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_afmt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_afmt.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_afmt.c index 95528e5ef89e..55e388c4c98b 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_afmt.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_afmt.c @@ -123,7 +123,6 @@ void afmt3_se_audio_setup( { struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); - uint32_t speakers = 0; uint32_t channels = 0; ASSERT(audio_info); @@ -131,7 +130,6 @@ void afmt3_se_audio_setup( if (audio_info == NULL) return; - speakers = audio_info->flags.info.ALLSPEAKERS; channels = speakers_to_channels(audio_info->flags.speaker_flags).all; /* setup the audio stream source select (audio -> dig mapping) */ -- 2.40.0