Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp430401pxb; Thu, 14 Jan 2021 09:14:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDJBTmGmrcrv/lZw/xwlMBB7aqXCCpzGTCcj7kDbK8fwNHQNWRqLZmtneVTx+DLikX2/OR X-Received: by 2002:aa7:d7d8:: with SMTP id e24mr6336890eds.135.1610644498787; Thu, 14 Jan 2021 09:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610644498; cv=none; d=google.com; s=arc-20160816; b=bR4EVOqOKHyTr3NtcWJ4cC3ZVUtqg9R/6960TJIbjj0Xz9cD2pc8eyRciVZCPzd+LB lyU0MuAKI/Ak2C8zk6fyUpB1TbJ96T/Uq7mH3b86E5Npwz+EkDpWLcfzKFqSLLqmfiDA asAhY1OqslP/VCz9m/LO4nYxFdkjGulSjYboUnVLclNwtOnQmsAxLr86hxoj7ZsAhyW1 mnc5oXJ7G73vt9A/FPnRVm5HomXlDUhmIxMF4ywlhHfABTgESpVE3jiSrsT0vXuUH/yu k5sPOjxIcSapHiPAV0Dc5DOq7GC3Pe4td6EhxIpXbVs6dWzikyoeI0iyPDROCacuKefU UTWg== 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=GJvDy+TdE2Sd8aU9LhoJufW6xnX6FlKnoE7upSm4sCE=; b=HIRDiKdDPXu4Jv5YKPL6/tyWVKHMyY7Ys0GKNPKHqsoGikI0IMSW7vNidgpmgwcVjJ fzk8tJblAS7WSnMdyb4n6+hbfdA4hZPc8MX+67UbJJx7eqV0eN/QdAYnPBgoFQc2XyF8 FTwSiVwv0LT/dLc6/RPyfG6fZqJxtT48usqDsJGm0icGw7Is8z7ak72KxrnY0c2VubV6 1Dz9Rb26j5hQzTJxBmOAVD+hhFMAlYdb4Gcwxn+nsqpJdDFXMFaqRE6wDQYmkxHBtOMo tBY+6SYM60rk4EkPn9UL1JtsXj50Pe2YanPG1D6quJtFB5NURWTgNDXtnMg+2Yngdl5E JSWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZC/tjSi7"; 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 r2si2831572eds.180.2021.01.14.09.14.33; Thu, 14 Jan 2021 09:14:58 -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="ZC/tjSi7"; 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 S1727011AbhANRMp (ORCPT + 99 others); Thu, 14 Jan 2021 12:12:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbhANRMo (ORCPT ); Thu, 14 Jan 2021 12:12:44 -0500 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25DCDC061574 for ; Thu, 14 Jan 2021 09:12:04 -0800 (PST) Received: by mail-oi1-x22e.google.com with SMTP id w124so6629395oia.6 for ; Thu, 14 Jan 2021 09:12:04 -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=GJvDy+TdE2Sd8aU9LhoJufW6xnX6FlKnoE7upSm4sCE=; b=ZC/tjSi7JmDbWzwVT2w3iAM+LPyO57IVQbUxi/+0Olm8mse6jVNx9p3rDxyKvvHDzF tDzn3t9HnObGV+8Nlompi9AtKHZojzAtWPqBC0vfQPt6ncE4Z/KTlLenmMrULmMSVlAM nY74BOVql0EhE3cyG/MXuPsLm+ZnNg4iFv/nowoKXZdkBZYu6zwetcmPTXzakdFLmaMp pHj+OZVd8EjsNC+F8S/oG0XYwPfkhVnDn3lMRO3Do9kcQCL1ibcTxgHqpZfSVdF2otkE IrWqtYUB0yBvQaWQ8ndpU92r4JNGXxNcYS/2nKkk5K7KNAl3FWstGE7q+7w/tjH6HMmV WZbg== 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=GJvDy+TdE2Sd8aU9LhoJufW6xnX6FlKnoE7upSm4sCE=; b=MOsPoiIY1bONYTOnvp/Yau7LbyjcBINZgXCHA4zBAdHS/4mbKwHVVoxXF83dCLIJbh 6z2EiJm75ziLKtDrZW5RbCJVuBB/JQKS8LQNk7dLLvjTWpKBVF+l/qt3hCndUqguQdm5 lm+LnAK78NWojNsipOSx23v4xsjWcOjt5NbAnh6a8WVBYSJCDYHdMoUwe7pbrziLNLzs GSSwe7QzRwOo2FemHjFzuDzJBVZC2qNGPjtFc07rx80faTr/0zT32oFgo5je5i06Q1Vl xSVBsXHhrn8Y8kul4suTEaD+n/lR8ydIzNYIZFCay330syGaUeIZQdhunjMKQmk99T7i BXQg== X-Gm-Message-State: AOAM532AtXGUVbwddpfzsfO4P2GUDUX7R5G/MigN+zoxvg4HjJpjkRmj 9+q9UN21aLbaaZQ2jhgJP27U+FP+8W2KzkjzsaE= X-Received: by 2002:aca:6202:: with SMTP id w2mr3004573oib.5.1610644323637; Thu, 14 Jan 2021 09:12:03 -0800 (PST) MIME-Version: 1.0 References: <20210113080752.1003793-1-lee.jones@linaro.org> <20210113080752.1003793-12-lee.jones@linaro.org> In-Reply-To: <20210113080752.1003793-12-lee.jones@linaro.org> From: Alex Deucher Date: Thu, 14 Jan 2021 12:11:52 -0500 Message-ID: Subject: Re: [PATCH 11/30] drm/amd/display/dc/dce100/Makefile: Ignore -Woverride-init warning 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, Jan 13, 2021 at 3:08 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dc= e100_resource.c:54: > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_10_0_sh_mask.h:50= 84:45: warning: initialized field overwritten [-Woverride-init] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: not= e: in expansion of macro =E2=80=98GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT=E2=80= =99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:170:2: note= : in expansion of macro =E2=80=98SFB=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:291:2: note= : in expansion of macro =E2=80=98MI_GFX8_TILE_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:537:3:= note: in expansion of macro =E2=80=98MI_DCE8_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_10_0_sh_mask.h:50= 84:45: note: (near initialization for =E2=80=98mi_shifts.GRPH_NUM_BANKS=E2= =80=99) > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: not= e: in expansion of macro =E2=80=98GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT=E2=80= =99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:170:2: note= : in expansion of macro =E2=80=98SFB=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:291:2: note= : in expansion of macro =E2=80=98MI_GFX8_TILE_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:537:3:= note: in expansion of macro =E2=80=98MI_DCE8_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_10_0_sh_mask.h:50= 83:43: warning: initialized field overwritten [-Woverride-init] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: not= e: in expansion of macro =E2=80=98GRPH_CONTROL__GRPH_NUM_BANKS_MASK=E2=80= =99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:170:2: note= : in expansion of macro =E2=80=98SFB=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:291:2: note= : in expansion of macro =E2=80=98MI_GFX8_TILE_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:542:3:= note: in expansion of macro =E2=80=98MI_DCE8_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_10_0_sh_mask.h:50= 83:43: note: (near initialization for =E2=80=98mi_masks.GRPH_NUM_BANKS=E2= =80=99) > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: not= e: in expansion of macro =E2=80=98GRPH_CONTROL__GRPH_NUM_BANKS_MASK=E2=80= =99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:170:2: note= : in expansion of macro =E2=80=98SFB=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:291:2: note= : in expansion of macro =E2=80=98MI_GFX8_TILE_MASK_SH_LIST=E2=80=99 > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:542:3:= note: in expansion of macro =E2=80=98MI_DCE8_MASK_SH_LIST=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/dce100/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce100/Makefile b/drivers/gpu= /drm/amd/display/dc/dce100/Makefile > index a822d4e2a1693..ff20c47f559e3 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce100/Makefile > +++ b/drivers/gpu/drm/amd/display/dc/dce100/Makefile > @@ -23,6 +23,8 @@ > # Makefile for the 'controller' sub-component of DAL. > # It provides the control and status of HW CRTC block. > > +CFLAGS_$(AMDDALPATH)/dc/dce100/dce100_resource.o =3D $(call cc-disable-w= arning, override-init) > + > DCE100 =3D dce100_resource.o dce100_hw_sequencer.o > > AMD_DAL_DCE100 =3D $(addprefix $(AMDDALPATH)/dc/dce100/,$(DCE100)) > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel