From patchwork Mon Jan 11 19:18:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360547 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139467jai; Mon, 11 Jan 2021 11:20:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCDSUcsOhatrO1Os2nPWi18cAlB0XzQpjslpdriDdSNtNzxdAqY+beIadZLK1g10r091Gy X-Received: by 2002:a63:5a08:: with SMTP id o8mr1028488pgb.118.1610392801969; Mon, 11 Jan 2021 11:20:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392801; cv=none; d=google.com; s=arc-20160816; b=Df7QqYFVazMuQ1eAUO/uKh0uhDsx6J/jFenUAC+smMzJVy7QeUSeW1VJCgw6vlWoYh xxrz6K7M/bFdo6SlvSbPhRcWCYPBm4EJe9nXw8J/WZkwEzWQ1ejemt1vywK0uSAm7pqp MlU2uRodae3Atv5xZ7E5cXGYQeRzGbEnx+ZXyCNQf8BUIYUMc/EA6YAtS9TW+4Bxlcza 0WRokCEY3oi9D94TOfFllATxSi6rPcA0pJ5p8F6cgkdC1yvgmgfTi94eFRZXYEx5IlwV oASik1WCHx5xcz/sI4teAxAdwPTzv787Nn2e4e6Fs4NDKnbeNzvZhj5ghs/QFtWXhgtF nolg== 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=UUNz05kF7hdW5b5xsNXScZc6cvFk9vv6DsNfT8mlt7Q=; b=tB2sIjZCgn1ZBwaSg4VEH7N6gKc4DxjRvnd1E9Si28guba9h0zVhFKeQ3mv2Dt5BbI yLhgzAc6rGMpufHJKK3CqC+mKpdWWd/AAAOq9swPSCDF5W3RmxrzNjO4Y+V4fYaHhWRg EGTD3OKDXtMndc/ZschSkUZmx7JCnHaLz/oqsuH+8gGxHavhknogEQT5XtpBpOSy6HEV HRT1+2X9SgX7MyBLQ9G99dAsxLTB7NiQuqkjfYtPzVwzQ+UgaogtV7cg78WnRqMCnAmX 6RJZEUTiuu8af5SzQXhuIvXGIK8cLetPANzgjDC6jxzx22FkXCAVmZN5438JIbJ/Mmjt Osbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DvGExxxy; 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 i11si566922pli.62.2021.01.11.11.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:01 -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=DvGExxxy; 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 D343A89E0E; Mon, 11 Jan 2021 19:19:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 529BD89DFE for ; Mon, 11 Jan 2021 19:19:47 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id r7so934780wrc.5 for ; Mon, 11 Jan 2021 11:19:47 -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=P+UK/qW8zyZ1jZCT/24Q1f8i1ILtoK1GZqqcObzyOGM=; b=DvGExxxyn3oqRzhlGqr5YgtbW3eoDFbk0Jpz4hbgESXe2lcLEUBnV/gcVyOdnnhXIp sHQNrPWUAeKdLr0SFUEbsOFKvo/uyhoerxmF7P/x4CnE3oi0YXuvIKRMHCrktk7Vq3YK QDke9hcU7aC+/WtoDoeFNRHs22v8Ox2+epuhQvcsq7EoM4gnBKAiCd6pOv6TFnPDGieR kc9aJrqGrWjchXJpi153LVXiq7ZcqRHuzRrVwMKfQ5T4G5SIRHOGe6iEjWVMSzioI6Na YeB6CydYIUAZ6w/pFgOEY/VfN2uYdrU5o6x3eKwzhT2XSJnNnBXaA7K3CFdu8FMYxqxq BhSQ== 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=P+UK/qW8zyZ1jZCT/24Q1f8i1ILtoK1GZqqcObzyOGM=; b=IBY9DU+WF0ftzojwbJonhD0trOEuJwD75x3IXURaDB0MI3J/l3H19a9xswP0GSr4Ak HLQSlo6hSajXy2JZT7/mIKBLzllxHX9O6BvOcLYT/BGY8wiK1r+xaZlzP66CCl9dYDo/ 1YBJpdlO3KvgtD29vTKtGcnIpsQV7ZBzGn5RHKJZ5X5u+A6H8HOFWkeJEZ53rPUZxfiw Cz0ysmtsRat5HaDxrgTzHiYGpwQmEahXp68ycZmmY14gHVjF7qBhQamSZzSG5HWw/3C7 kCxFABUSuWN82JP6rzAslhJufLx0l0DIQ+SdTIcwZYpusFKVDM62/vLtxmpEFk+SbsE/ UUfg== X-Gm-Message-State: AOAM533RatvN3x3+lYHy7c2oLjmSQ4zpsGHdvp6F9yBkOFZdRj2UcW3p lsFmTZBlIk0LAtfsthcqCGrmVg== X-Received: by 2002:a5d:69cf:: with SMTP id s15mr597601wrw.372.1610392785890; Mon, 11 Jan 2021 11:19:45 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:45 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 12/40] drm/amd/display/dc/dce120/Makefile: Ignore -Woverride-init warning Date: Mon, 11 Jan 2021 19:18:58 +0000 Message-Id: <20210111191926.3688443-13-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. Instead, let's just silence the warning. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:281:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: note: (near initialization for ‘stream_enc_regs[0].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:281:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:282:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: note: (near initialization for ‘stream_enc_regs[1].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:282:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:283:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: note: (near initialization for ‘stream_enc_regs[2].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:283:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:284:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: note: (near initialization for ‘stream_enc_regs[3].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:284:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:285:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: note: (near initialization for ‘stream_enc_regs[4].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:285:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:286:2: note: in expansion of macro ‘stream_enc_regs’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:277:15: note: (near initialization for ‘stream_enc_regs[5].TMDS_CNTL’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:286: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/dce120/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dce120/Makefile b/drivers/gpu/drm/amd/display/dc/dce120/Makefile index 37db1f8d45ea5..a9cc4b73270bb 100644 --- a/drivers/gpu/drm/amd/display/dc/dce120/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dce120/Makefile @@ -24,6 +24,8 @@ # It provides the control and status of HW CRTC block. +CFLAGS_$(AMDDALPATH)/dc/dce120/dce120_resource.o = $(call cc-disable-warning, override-init) + DCE120 = dce120_resource.o dce120_timing_generator.o \ dce120_hw_sequencer.o