Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1520240rwb; Thu, 15 Dec 2022 11:03:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf42AV7LA/er8CDgFxWYliqCOnksXVEipWVXmCAcUHy6bymalIkViWqeL/HX7DzfgB4elNg8 X-Received: by 2002:a17:907:6e0f:b0:7c4:f343:77a8 with SMTP id sd15-20020a1709076e0f00b007c4f34377a8mr7958341ejc.9.1671131026279; Thu, 15 Dec 2022 11:03:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671131026; cv=none; d=google.com; s=arc-20160816; b=Fa4gu9ytriwbkKdzYyANxABt9ESUVy8K+u8e14xcGidb2ixurLkUlqhshkyRt4Pcu0 hYa/1nPE2+c7m7JRJVSP/5czYyY49kXd5RCR/xuLU9+3Lrot1tI7Lq2b1XOk3zUNPCIl KHeL6vnyWiXCaAzIKnJC9P72RpdOTp0EjwW0lcMn/2x4n1gXft74pwORMdQSPnThZKzz 9qK2GWzLt+SNWuyorWkdmXb5Gs1RZeZDwFXr4dAJAGETYTWfqAtOAsNQodVuRqcCmNMp bA3g8xqkCkGjxGqmKxHA/3fV1j+OMRqg58H88Phk/RJ3o1BLO3OLi0xetBr0xO6Fs9zQ iYng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CsTgnx/vUhdK+gz2CNEy5Z7hFYOJSlBzwtF5agxWOL8=; b=TjFuajexfh41ltAJtxdqwe4brAuH7HnMI9+vrZ07RqQBF9YBfXao1GD+8uhaotbyA7 aExPjKA73pGb4uZg9YWN6/fOYkCMnamMzFHiRpa8VQd8HAl1BIQwpkrujaLoAa8k/7vW MXFFQfSU497ki+/ISvca9mbvi8PBWT4Iq8sPFOkR48Sf2RjnF1EhjIV6o1cptNoQ+K8/ mHrQpIQdE1TY0ubSKwJL4ToN/2c8j5v+ud3ch6PHBEXrHQIO3oYj11ZLQYaSfCXpEkUz gfrKbgdJaT+dNLJbLlojfkqAKda2gTsUi2psY58NFVvAPo0TngfxOqmN2wnOIuUUNoyB rhuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="oJ/RLh3L"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa17-20020a1709076d1100b007c109e62bfdsi14985898ejc.984.2022.12.15.11.03.28; Thu, 15 Dec 2022 11:03:46 -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=@gmail.com header.s=20210112 header.b="oJ/RLh3L"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbiLOSsY (ORCPT + 68 others); Thu, 15 Dec 2022 13:48:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbiLOSr5 (ORCPT ); Thu, 15 Dec 2022 13:47:57 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC7DA49B5C for ; Thu, 15 Dec 2022 10:47:14 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id l127so6062875oia.8 for ; Thu, 15 Dec 2022 10:47:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CsTgnx/vUhdK+gz2CNEy5Z7hFYOJSlBzwtF5agxWOL8=; b=oJ/RLh3LE65rNsavJKHaY98DljooO1VSJWFUTr1wmqLEJMXIOe0CN8Q6agEtH9pvrl G0829Arhxti8Lxq/OboQdCGpM+BSSMy0u5YyANB0ogTqs7q29XR3OscSrV7QugBmLFVT 5965GQ0r+20cquOxy7daSlbU9JSNv206QtP6u11wF0wmcfrZ2k5db2HoY18AnFjQ1QrN 1Z8lML5DrGwyC4pgMHY3nFGGbRkvE3y7el4uYo4JlJQRjIR6yP0cTpl8w84fUt39z8Qb h7zgh8ztAeAa62eIxcm6VpzgPY7BiuaWyhLBvFCoLkcXVDABUvDH2EW3pASKTqCR/MTg 7yjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CsTgnx/vUhdK+gz2CNEy5Z7hFYOJSlBzwtF5agxWOL8=; b=Mm8sBYgZRP1pts3zDAUC2eueuUL0psXDox0Eng334Tf94Q1Sc7HisoL2VL38TL+VdM hyMT3mvqgZ42VxGv9LpuzHNs/zx2bsfcBqs3HeqBh62ZYFPBqEUAsV2CZsHVayvweQlU HrTfxiZYCkTR659jhFp0BTg4SemwE6FDvzqFvy8q5ybOZffg94jMNEwr1ZmRCho5cCr/ B6bDoDtVWq3iLfdVQZbiV6mUKHoqj3l61Bqoj803zFwxAoarKoYAkWP1wk4PJ+aaK+lk x3GMbtqiaDS8zbmJk4M3knUg92ZC9NooG9OzTufK17T3BR8bMrMIjddolNxMTEqGCVa6 kjzQ== X-Gm-Message-State: ANoB5pkEHj4cJmvwep8qboz/1aGLBClXrgF82GD/apgBmwNT4GsJbAZ9 6wnAXvaajF3nAm2SFpY9AG/wqHF0UC+G/0hNL9U= X-Received: by 2002:a05:6808:1cd:b0:35b:f5f7:3ed0 with SMTP id x13-20020a05680801cd00b0035bf5f73ed0mr464102oic.46.1671130034322; Thu, 15 Dec 2022 10:47:14 -0800 (PST) MIME-Version: 1.0 References: <20221215164537.1126692-1-arnd@kernel.org> In-Reply-To: <20221215164537.1126692-1-arnd@kernel.org> From: Alex Deucher Date: Thu, 15 Dec 2022 13:47:02 -0500 Message-ID: Subject: Re: [PATCH] drm/amd/display: fix duplicate assignments To: Arnd Bergmann Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Charlene Liu , Arnd Bergmann , Alex Hung , linux-kernel@vger.kernel.org, "Pan, Xinhui" , Roman Li , amd-gfx@lists.freedesktop.org, Nicholas Kazlauskas , Aurabindo Pillai , Michael Strauss , dri-devel@lists.freedesktop.org, Daniel Vetter , Alex Deucher , David Airlie , =?UTF-8?Q?Christian_K=C3=B6nig?= , Duncan Ma Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Applied. Thanks! Alex On Thu, Dec 15, 2022 at 11:46 AM Arnd Bergmann wrote: > > 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 >