Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1580692pxb; Thu, 4 Mar 2021 15:23:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp7aTKtisf3P1J9BFlzSHVxfbx49CvfZvl97qKqTiCbFHsOGWXlAzoP6kDPV8NjjVnZVPL X-Received: by 2002:a05:6402:17af:: with SMTP id j15mr6912699edy.50.1614900226653; Thu, 04 Mar 2021 15:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614900226; cv=none; d=google.com; s=arc-20160816; b=Uebx28trUXl1ilh+nzfV2if5r9OaYzXH+ys2lbWe09a1T1gIyGIV8OcYGkRFEvp1MY AnK6kM8+FhvlRvw22IAWJZrF9rXl/wyCxK4LmFpa3zreDI7D6FqVUcH8ROALtH76AFv0 kgxTRL67uhQm/1LexF7xSU/5onBgE21qsnOxvNz7HZbJtQTzN6/hyvbhMw3C55vWNlqL KuMPYaCdNXnMC1Hj7jCLSR66GoblpxXr15k6+tAF0FVLX3XXKUCsciOf/3r8TBVEptQ0 MQXc+ED1H70/edHJaf7MV/dP0AjpE8XsbodcYv+DTqu3Q1nYFS/c0WfBJ6x6plQFiQhl oJnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MVdKPr2r+FQpE96NqJvY5W4N+J4PiUQgsBxVk8RDXds=; b=X1urpibQqBu76NzAZxkR7nMaOU2qCnomYMHrIS2ypcE5kb8XyXOKd/UrSUySfJLXdq /ahlDgR6DxfeNv4bsOezTK/w9IXx/t1q8c6QFhsxitfwKyl6VLFgcjghIaX4TJYSU4FH O5EgbNe4lDRXbIZ8Ve2oq5DxbYES9Kn8zCkKP5NpHlnKKm9uIEKZXvpM3npe6v7xMm8w KivzSxbQdGjOAlimcw0GVZY7imU1zFLmfHxnOmIPpBWh8WqNXYXP4BP7JnWW9+NAc8qg s2kh8rjsjZVu9UT48uLjP2a6j7V1yIISXkZV7VSjPlMCH2m/K2Ksv7bhaFSiW9PLBwKr etVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lrZIKY1D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si600416edb.401.2021.03.04.15.23.24; Thu, 04 Mar 2021 15:23:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lrZIKY1D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1835597AbhCCSEL (ORCPT + 99 others); Wed, 3 Mar 2021 13:04:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448348AbhCCPZB (ORCPT ); Wed, 3 Mar 2021 10:25:01 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B70C061760 for ; Wed, 3 Mar 2021 07:24:20 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id e45so23862881ote.9 for ; Wed, 03 Mar 2021 07:24:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=MVdKPr2r+FQpE96NqJvY5W4N+J4PiUQgsBxVk8RDXds=; b=lrZIKY1Dv0lB+oQNN0dsbP/Dg5v0tO8N1XqpP3/+Edmgca/GyklGGMHnr1PivrMApA fn2YSdDvJOo+kYlMelVty5TTB3DfJAEEqN0cvPHzuZmT7MyvbQS7hfL+b5wiUEfn0cnI Q3T3Tb6zZpJLH9okTGsDqbMYLI3wI0Jf0eqROW3iUqtZ3b4Rba8NH/hGEvm/DeVVqtc9 RMe6+66tD2zTzv8qdBBtGfwMjFsg3Qa8/zRzkhz4vZpVFtfUe0bIaAwDI5Dg69S2WhAy dP9J0XokCtx/5dYjDMHOQS2EaZX5APkelKieqyFNJ46ASH22cnH/nh8Hs8w2OCmAv7w3 zRqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=MVdKPr2r+FQpE96NqJvY5W4N+J4PiUQgsBxVk8RDXds=; b=WAAfAbuuz1YWKgAiMmARtobnK3JPLdFujoGGvU6mIH7tosSfNvg6w84vVLmI7E03Z7 feCOjUIs/l+EhEINQyAUl6X7Azeb2a+CDMLj1UZPdjC2VwLJr26/vDhv4Y4z6VZQoB+2 79ZfzmsL+XSwSQrnRvaY91fC3Il9aiiyqrEuIksG6oUt9bhUrl/seFZlQ9ivg7d8jW8+ iN1CmJBiuZb3WJ3Fv8m4RI7HRI+adRwg597A322TaMG9vQCeoIqzpmSX+IjaQxVW4hly Q4qDUp37f95NB49w3pBiZNfVBwV6oWFa/MYnJGQ7H0+eklOUflLrSSCGTs0OH2UKy8bF csvA== X-Gm-Message-State: AOAM533Eh2TxG8bqxSFszxXaf/M7F07HgnxxgZskXc56Tjdybrn1Qtvt YYtP+/N2tHFAAsrjlCqWbDWH3391gyCeOQfZrjk= X-Received: by 2002:a05:6830:408f:: with SMTP id x15mr4676329ott.132.1614785060048; Wed, 03 Mar 2021 07:24:20 -0800 (PST) MIME-Version: 1.0 References: <20210303134319.3160762-1-lee.jones@linaro.org> <20210303134319.3160762-11-lee.jones@linaro.org> In-Reply-To: <20210303134319.3160762-11-lee.jones@linaro.org> From: Alex Deucher Date: Wed, 3 Mar 2021 10:24:09 -0500 Message-ID: Subject: Re: [PATCH 10/53] drm/amd/display/dc/dce/dce_aux: Remove duplicate line causing 'field overwritten' issue To: Lee Jones Cc: Leo Li , LKML , amd-gfx list , David Airlie , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 3, 2021 at 8:44 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dc= e112_resource.c:59: > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_11_2_sh_mask.h:10= 014:58: warning: initialized field overwritten [-Woverride-init] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in = expansion of macro =E2=80=98AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIF= T=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:127:2: note: in e= xpansion of macro =E2=80=98AUX_SF=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:177:2:= note: in expansion of macro =E2=80=98DCE_AUX_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_11_2_sh_mask.h:10= 014:58: note: (near initialization for =E2=80=98aux_shift.AUX_SW_AUTOINCREM= ENT_DISABLE=E2=80=99) > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in = expansion of macro =E2=80=98AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIF= T=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:127:2: note: in e= xpansion of macro =E2=80=98AUX_SF=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:177:2:= note: in expansion of macro =E2=80=98DCE_AUX_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_11_2_sh_mask.h:10= 013:56: warning: initialized field overwritten [-Woverride-init] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in = expansion of macro =E2=80=98AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK= =E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:127:2: note: in e= xpansion of macro =E2=80=98AUX_SF=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:181:2:= note: in expansion of macro =E2=80=98DCE_AUX_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_11_2_sh_mask.h:10= 013:56: note: (near initialization for =E2=80=98aux_mask.AUX_SW_AUTOINCREME= NT_DISABLE=E2=80=99) > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in = expansion of macro =E2=80=98AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK= =E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:127:2: note: in e= xpansion of macro =E2=80=98AUX_SF=E2=80=99 > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/dce/dce_aux.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.h b/drivers/gpu/d= rm/amd/display/dc/dce/dce_aux.h > index 775e24926380e..566b1bddd8cc6 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.h > +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.h > @@ -100,7 +100,6 @@ struct dce110_aux_registers { > AUX_SF(AUX_SW_CONTROL, AUX_SW_GO, mask_sh),\ > AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\ > AUX_SF(AUX_SW_DATA, AUX_SW_DATA_RW, mask_sh),\ > - AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\ > AUX_SF(AUX_SW_DATA, AUX_SW_INDEX, mask_sh),\ > AUX_SF(AUX_SW_DATA, AUX_SW_DATA, mask_sh),\ > AUX_SF(AUX_SW_STATUS, AUX_SW_REPLY_BYTE_COUNT, mask_sh),\ > -- > 2.27.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel