Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1452173rwb; Thu, 15 Dec 2022 10:13:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RfNaLghKSaDsrvr2KgKQmTrz+XDYkGdLqskctaero8g6SJWqnNQAcGVm8BktmsYLiickc X-Received: by 2002:a17:907:a705:b0:7c1:6b46:a722 with SMTP id vw5-20020a170907a70500b007c16b46a722mr16920003ejc.56.1671127989474; Thu, 15 Dec 2022 10:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671127989; cv=none; d=google.com; s=arc-20160816; b=dZAjR8gvsBr9t+KESHWQStr4+cXBwstUZ2Wp0tNG9nwgbmAX+Go6UGFCIw4IQ+UU3Q sV7d2s56tVetxrvuZmwGbL8wcYnVmDurl9HmAvAUQpOQ8gD+lxJ6cMkm1f+jsYPyasDP yBGV0NX2tgNTzRB1Waeidi5su/gWXHr7RIOcfiIg5wzIQsHfhwpu3Hn+PCkECVrSv1uL fRAXHYPcH36odOd4OQFOJF6eEASca1LFJtFBD2bqpHvo/0NWJnHj/cHfvpKCKk4EILG1 fZdD4Cd7viZp7MlTUIzubcTuTZhuLRJz/Eztp6tmgX6indtddofizcQs3PhkIt86krJf G2lA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=uUL/hCLrhR+xgo5MuPADlj18foEcyfJF40QQhsiEj1o=; b=bJPgyNSDf46C97LFaBU9w6siXg4MEw/EOBH51Rfw4KpWw9pcqApcXrMXGr2AQr5o9G ggG8qOSIU4sXoa9EP2u/kHt7CYvj8gAEENIGsgg+R7i7U5UDRfuFNzWDdpnMh+MjhX1o XjFFiHiPBPiwwSvlk0I7byarAjrNK+PRREC/GA4ywhhzhd3AyBH6mzEybDurFv5wEsIi L6obcB61T+P6mfMZKRg/X42wdCRpj/TB4+q15CFtVc0dfgDo6blsM3vE31q3yDdEvwd1 MtEkyVrIZV3Q2Mlih/sT81G6CaB7m3gbne0I8luJVrhG+ESKZie2u0x798RGuI3bzE2x 5GrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p32bcg5J; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a170906340600b0078dd12d0a9bsi5320814ejb.875.2022.12.15.10.12.53; Thu, 15 Dec 2022 10:13:09 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p32bcg5J; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230280AbiLOQqH (ORCPT + 68 others); Thu, 15 Dec 2022 11:46:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiLOQqF (ORCPT ); Thu, 15 Dec 2022 11:46:05 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96FFC14D34 for ; Thu, 15 Dec 2022 08:46:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4E356B81AAC for ; Thu, 15 Dec 2022 16:46:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23C28C433D2; Thu, 15 Dec 2022 16:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671122761; bh=aNi+MDukcWClJUpGNHicqsKzCYbsXQMr0xrEnMsi1Ts=; h=From:To:Cc:Subject:Date:From; b=p32bcg5JZOWdcq6LRNSuomdYw4Xuu/fO3b8cx0vILTMUqsLZ0+QxZ8LyZ2b6qk/sU DK4rjWufN/ywpUM5+ZWqONZd7yoLfU8kU9nXeaYiaisv2wfkPnwdREpGoJTIrqXtHw cFlF8rOWX2Aash/2xiNLlbfGvAVpBnrnuc7aH7XHBMpC42XA28xwfdnAp9N/9esM6/ 5SVW03nnnN2i76DAIcn51k6Jx/HBAxw9FNAzyx0oTAjy8VJsTnQ8ykug9OdDqi3TmA v2XGRdQocpyrZLX9dlNLn237Ady1yssU7TP9RXW1oWA3A7RslJ/dLqZS/CxE8wO/wk T0NKYJuTSyUKQ== From: Arnd Bergmann To: Harry Wentland , Leo Li , Rodrigo Siqueira Cc: Arnd Bergmann , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Nicholas Kazlauskas , Charlene Liu , Alex Hung , Roman Li , Duncan Ma , Aurabindo Pillai , Michael Strauss , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: fix duplicate assignments Date: Thu, 15 Dec 2022 17:45:25 +0100 Message-Id: <20221215164537.1126692-1-arnd@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The .set_odm_combine callback pointer was added twice, causing a harmless -Wextra warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_optc.c:258:36: error: initialized field overwritten [-Werror=override-init] 258 | .set_odm_combine = optc314_set_odm_combine, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_optc.c:258:36: note: (near initialization for 'dcn314_tg_funcs.set_odm_combine') Fixes: 5ade1b951dec ("drm/amd/display: Add OTG/ODM functions") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c index f246aab23050..0086cafb0f7a 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c @@ -241,7 +241,6 @@ static struct timing_generator_funcs dcn314_tg_funcs = { .set_dsc_config = optc3_set_dsc_config, .get_dsc_status = optc2_get_dsc_status, .set_dwb_source = NULL, - .set_odm_combine = optc314_set_odm_combine, .get_optc_source = optc2_get_optc_source, .set_out_mux = optc3_set_out_mux, .set_drr_trigger_window = optc3_set_drr_trigger_window, -- 2.35.1