Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5179893pxj; Wed, 26 May 2021 04:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF2fuxbqrTo/XBByv3t+UOno6QxmLHq6xVieYrBpFp4JoIQ2K3vp7hEvRh55dlmk4D7qT1 X-Received: by 2002:a05:6402:3098:: with SMTP id de24mr36509724edb.339.1622030166016; Wed, 26 May 2021 04:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622030166; cv=none; d=google.com; s=arc-20160816; b=BEEpGGKTs0Nlu1/IhCW7SYqS4iNOGYW/Ycsyb/fniKWshYkAPiLdeHYCt3BoZwfyXN 2z7s8W9Hbyubh8itpgVT2WQlfjzc30vMpV3G043eH4gO5SH3Zo2Ey7Bo8xftDzDmJIhr qWBa57NS5d4rjjAKP8W+aFUfCTWNQdbFdhHv7Qta+x+ZEdul//1H9Twzh7UT9io+kfBR vLPH6dpDSHRL5Werp55CZPuQd7YYIwjgrcQoWerEDhoJHm+MK155ovuoPKqo9LXw9lvN 7JpyIK3Q4y/fMK5WUJfE6kqGIIxTvl/sYTnAXBww/ny/LlZ9gYG2gArrwXN+Ow4typBF c5MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FkeiHBD/X56XoAULZC4Zm0KTS26etafLmMiiBA6RZwA=; b=rY8wBwuNn4pnC0G/eqyuwbDQnDm1E3DARmXidCGb9af6Noc2TXdOAQkdT5gqHRYb+S k27QxDWDD/FtyIkl2Ymfz6nnrMQdYulwx7Il0FuUFAvjKSZhnVBuyK0VWTCVGrB40lyG u7QwE1TRa3FnMKFpKZvjGDfRCc/IX3Nwh1zT8ZyN9RFY80ypDHs6zrTmxMpIcvv88gFk fMaAQweMFFclGu0jEVcDItXQ22y6X3829xDbjhwoN98hKCta2EOXPn+ZwWO5g/qy5rBQ gO36jYVWEyNnYTzTNO64oCwPRNRUPl6W8JN2pfN4/K29hVI1E8esJaPr4YQgmkAI6Z5D yytw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E5sBb6eS; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh1si656227edb.564.2021.05.26.04.55.40; Wed, 26 May 2021 04:56:06 -0700 (PDT) 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=@linaro.org header.s=google header.b=E5sBb6eS; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233541AbhEZIty (ORCPT + 99 others); Wed, 26 May 2021 04:49:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233225AbhEZItV (ORCPT ); Wed, 26 May 2021 04:49:21 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACE58C06138C for ; Wed, 26 May 2021 01:47:49 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id b191so250591wmd.1 for ; Wed, 26 May 2021 01:47:49 -0700 (PDT) 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=FkeiHBD/X56XoAULZC4Zm0KTS26etafLmMiiBA6RZwA=; b=E5sBb6eSXnSEoXMYdy1ht4w3v1vwsj+A6bNuBnhDM9u6F2HlqgNLzq2dNKCejMjijh LoGSybTP9qaeLJVLUFU8f19dMAa62x7cRdIlkcvWmTjRkW50v8sBlqUbczah4tZn4Wy2 wW5UyWPN0MtIZPmUCCwhYYIPUMfvzsWNnV1zpYqjG7NA6SoBJc8/Zl75bVYEVDVPkFXp 0gfV6UsRV3lvhomh9Fuc4xvbZDxgSiFFE2et/mhDJH1jTdp0F52Yd0J8fr0RWxYxxTLZ qOlYq09WJa9Mns74A3DYacw6KA2lZsT+deEZkdryeyolLkn+ZrR/asYaBAahuJF3hDgz E28A== 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=FkeiHBD/X56XoAULZC4Zm0KTS26etafLmMiiBA6RZwA=; b=elV1d6Jt6DuTY92u0BsuhwiHKB5FJl3KWrydA7vszlVEEco+Fw3OVyOeT7AoYv1zYR ku9Ugd/TQSP/mwExIV4e4utqgbk3xTSmjddYcaKPhG/afhmkNSmJjGySck6347I3KFD6 H8FhLiEM53xK3S+SUrSSvPBMlZJvCvoSOKfiSxdN7qLBLK69mz5Fw8FJ5DWBHe4tZrOV Fn4lNrwIW1n4BjrM+gQ7mxdb7T6HrVl+NyInFapjjtlYVVckG5Vpf3K7r9mehhEdfohU t42zPBRKyzszs36NegQgc4kr2Be5ngKR9rjMPWyTTWJNCgmgbL3VCqDRSttOxArCYUnX ThNg== X-Gm-Message-State: AOAM532ayN7awjmyvRLyyNS7TPAFcB9FH7/JVn1e7Tc3wAw8As3Woe3N Mw6sCHIqVBVS02gEQE4pZzi4DQ== X-Received: by 2002:a7b:c346:: with SMTP id l6mr27552263wmj.109.1622018868241; Wed, 26 May 2021 01:47:48 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id l18sm18911918wrt.97.2021.05.26.01.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 01:47:47 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Mauro Rossi , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 17/34] drm/amd/display/dc/dce/dce_mem_input: Remove duplicate initialisation of GRPH_CONTROL__GRPH_NUM_BANKS_{SHIFT,MASK} Date: Wed, 26 May 2021 09:47:09 +0100 Message-Id: <20210526084726.552052-18-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210526084726.552052-1-lee.jones@linaro.org> References: <20210526084726.552052-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:29: drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7270:45: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion of macro ‘GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion of macro ‘SFB’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion of macro ‘MI_GFX6_TILE_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:657:3: note: in expansion of macro ‘MI_DCE6_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7270:45: note: (near initialization for ‘mi_shifts.GRPH_NUM_BANKS’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion of macro ‘GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion of macro ‘SFB’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion of macro ‘MI_GFX6_TILE_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:657:3: note: in expansion of macro ‘MI_DCE6_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7269:43: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion of macro ‘GRPH_CONTROL__GRPH_NUM_BANKS_MASK’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion of macro ‘SFB’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion of macro ‘MI_GFX6_TILE_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:662:3: note: in expansion of macro ‘MI_DCE6_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7269:43: note: (near initialization for ‘mi_masks.GRPH_NUM_BANKS’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion of macro ‘GRPH_CONTROL__GRPH_NUM_BANKS_MASK’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion of macro ‘SFB’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion of macro ‘MI_GFX6_TILE_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:662:3: note: in expansion of macro ‘MI_DCE6_MASK_SH_LIST’ Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Mauro Rossi Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h b/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h index 23db5c72f07ed..9b1c4d56275a4 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h @@ -181,7 +181,6 @@ struct dce_mem_input_registers { SFB(blk, GRPH_ENABLE, GRPH_ENABLE, mask_sh),\ SFB(blk, GRPH_CONTROL, GRPH_DEPTH, mask_sh),\ SFB(blk, GRPH_CONTROL, GRPH_FORMAT, mask_sh),\ - SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\ SFB(blk, GRPH_X_START, GRPH_X_START, mask_sh),\ SFB(blk, GRPH_Y_START, GRPH_Y_START, mask_sh),\ SFB(blk, GRPH_X_END, GRPH_X_END, mask_sh),\ -- 2.31.1