From patchwork Mon Jan 11 19:19:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360554 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139607jai; Mon, 11 Jan 2021 11:20:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJKz/5uZu/KwdWZM9F5mgesRIe01bbNzxnhqAXzCzl3ZyRf9le3QvObBoCbypTezlSXTer X-Received: by 2002:a65:58c7:: with SMTP id e7mr1002326pgu.350.1610392814204; Mon, 11 Jan 2021 11:20:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392814; cv=none; d=google.com; s=arc-20160816; b=zFSyK3wbzcRyJqG2YG2T3w7DVn+eqdfBrfbHF3h463dki2I1Yl2VVpQ+Y8mOr8DHAN MyqQdMH26P/u72/+JaZ7ErM37a0EzfLdunuATVVnMLEZIPSHLJ43bz/XUnMiICDP+hN3 +Po29lBNt/3Bgu2gwvHoo2wXUvcci/VXBkADDo02Q+QlCi/S/VTGajrTxW4ddghmtWY9 iW2y6btG86odEiYttEi1fq9PhUx4ikGEPahO0wB7RhYSSYLbWpk6J2Q0yJlfD++P2NiI iovCr8JJEjM6guS8rm+PIivZVuzWj2ONRuABF3XuXI+8dgwViMtBp5uTsqZ2VPB7hcmo KkUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=ZUOV6Ojb5LpYSps86uXYvtp9vaZzboxOEerLlD+Fej4=; b=TBU9Y/LL5qBN4ba/klHbITQv+cz0KDQumB2At97pjeB0sy3UvfRcDBIVKcS3opR77/ 7BCyn1e0O+asFrbnl5sqBYgFduF26VEKOyBPA0TjMBrDHjA7KJByT7Wr+PX4HjScwS91 YcUN/OEPW8yLLDVxlO25wh/N33ZrqaDBCzyU1DENM6eLvmvnLwbd7cCA5bPyynzEOHpD FP36aZ7op9BF6Le8hesGg3gSKFLlZY4czoh2XzjYoAdz0VbeNjq8iZo8NuVsN29+CpRG JsxV3P9EPEeNncnh7+bzZLCPi1V3W1nIYvu1VIhJb1IZBjtbeR5xJthOUJ9obcpb6D2l 1+kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=lI4dH5WM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id y68si467749pfg.288.2021.01.11.11.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=lI4dH5WM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 991F889E2B; Mon, 11 Jan 2021 19:19:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5869F89CF1 for ; Mon, 11 Jan 2021 19:19:55 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id a6so247163wmc.2 for ; Mon, 11 Jan 2021 11:19:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GqONQ/c46HwLlMHyZcb5Hym3CQTe21MZsvbjJWaglwo=; b=lI4dH5WM0yKxFmFhaUmduedrt7oA/k406RlSyI5Ux9gBEFO4EleT7ZFuBWV5XS+1Uj R3U7bK4Ji+8VXN0LERBhRByhIRpG+C6vM956Ma+xSCTIrAoR1O2FM28aFskCt/Fnj+Vx 7eufP92JLw8Sk9JCBNs2DLL2sxbLv6yfDsgOUn4ykryXdDzJKKRT2VzKCylnLTs4uw4r qqrCUcssPkpjWaC6vlalD/+ZHCKR0lx8D18oxG0OJphSVNgHeBcP3REPGSX7D5UfdK3x bnSxjYILquF4ENw9PQjcKw2uqlhAdFYCkScuD/D5eFatHWunb/HPllVFf7QiU2EZxdg0 P1uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GqONQ/c46HwLlMHyZcb5Hym3CQTe21MZsvbjJWaglwo=; b=Lk1w4ogat3w9T6LJfOSMILYQ+dyvbyPGlgBglLpcfEpfCSFqskPBAhC9R1auHVhc13 H0g5IaUXA3peT5QbwzDcE08Gb21+tjaVkUDdwN9QJhicrSA+vlLQQDQ7JKdd0ctoMdGg i+002bDsm22siPeRUVCq2PpImP5cRek7vcn+aIfjcWRBz6hltDgDN8OLHpzIGoZv/Vy/ DKVH+u9Ub4/q6C4puLkG7EzYifE6MMQsOa3u05NePdvDywmwPdhU9jx9qKlmTzOyssJm UM5N6u1+u5OfDZY40IYJ5dpjIRFIhFc+AJPHq8Wd744PRsj6QSleF1ECzM1nPnNT8gjO Ondw== X-Gm-Message-State: AOAM531dsi0pxbBrXLFbHQVJPkAlrYbEEDq2+pZaXS9M10Z0f6QTnuVp eN5kJtfmt2oNzyKmD5Dw5wId7Q== X-Received: by 2002:a7b:c306:: with SMTP id k6mr293979wmj.52.1610392794010; Mon, 11 Jan 2021 11:19:54 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:53 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 18/40] drm/amd/display/dc/dce112/Makefile: Ignore -Woverride-init warning Date: Mon, 11 Jan 2021 19:19:04 +0000 Message-Id: <20210111191926.3688443-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This file uses a complex abstracted set of hierarchical macros to setup its applicable register lists within constant structures. However in the case of TMDS_CNTL we wish to mark it as not applicable for this use-case. One method would be to de-const all of the definitions and users, then manually zero out TMDS_CNTL from the list. Another would be to create a new set of hierarchical macros to omit TMDS_CNTL entirely. Both would entail a great deal of unnecessary changes and maintenance burden. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:290:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: note: (near initialization for ‘stream_enc_regs[0].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:290:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:291:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: note: (near initialization for ‘stream_enc_regs[1].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:291:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:292:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: note: (near initialization for ‘stream_enc_regs[2].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:292:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:293:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: note: (near initialization for ‘stream_enc_regs[3].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:293:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:294:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: note: (near initialization for ‘stream_enc_regs[4].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:294:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:295:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:286:15: note: (near initialization for ‘stream_enc_regs[5].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:295:2: note: in expansion of macro ‘stream_enc_regs’ Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/dce112/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dce112/Makefile b/drivers/gpu/drm/amd/display/dc/dce112/Makefile index 8e090446d5119..9de6501702d2c 100644 --- a/drivers/gpu/drm/amd/display/dc/dce112/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dce112/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/dce112/dce112_resource.o = $(call cc-disable-warning, override-init) + DCE112 = dce112_compressor.o dce112_hw_sequencer.o \ dce112_resource.o