Received: by 10.223.176.5 with SMTP id f5csp2371223wra; Thu, 8 Feb 2018 12:57:01 -0800 (PST) X-Google-Smtp-Source: AH8x225rOt7fkatf5JYsOaHO7gPyZA4Gty9l2N76WWH4gEitBlwIXYSHgOo/xR69/MF1muNJzJ+5 X-Received: by 10.99.96.148 with SMTP id u142mr374002pgb.53.1518123420920; Thu, 08 Feb 2018 12:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518123420; cv=none; d=google.com; s=arc-20160816; b=XHNg8msN0mfiViccmifg+ITpgpGOvAywMf15i2wxSHSKDYOlCHWxLmHaqroLSYmQ08 seR8ueaBdYWdi36ZOd7uBUU4Ve135nCB+K290f/XcXtlmF3INpWm4lONr75OxPcUy1V6 n2QwiQNpnT8o7zfUTHo//ncW25UerIg14lJR+vYYH70NV9kO0FGyx0v9YyJlAc4vHhmq qOC/7ZNlknYr1xfB6jEt8SxNP3Q3amMoogji0nGkY1bKJcxK0woxFlzFvjAyDUDSXz4A Jscfg8jlR24rK3ORQR8Hkf1izyuh2m6ZQJv1+TbIEgV/+YjwrsRwwO0eUaTPz3iHarJm rhFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=c6Lgt6imYUDGc+ZNlmtFXSw6R/65vP+Whd1va3fKeY4=; b=K/nEyEZbd1Pxq0fIke79ITW6VUxeJl3bkRpgQRMJ6u6LxnjI4AVSDbQYyAtbhbBcJe Zg+BnHQN5rhurp+4nR3zyXPrfFp7QZotxUOLAJQnfxEqxjrpITZ3WJ2LWNV61GP8beSQ ngpxjuG9PbZ/efUfDm+AXaUPbFmCXol2NDXC2S9gQzyRLO219xmWvK1AxeW03mJRrJhH xlTVI16yB6SPXml9guvaSdlTG0nv4R5Aq2zeFYPKXNtyCC823o8hvpCN6vklA6vnPR/K HPqXNpI9iy/cRzWnAB7id+ZWXzjw9mJv1kv8Suy2O68ouaGZTmW55vXU9nzJaxeJFWXv fIeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si393174pgr.598.2018.02.08.12.56.45; Thu, 08 Feb 2018 12:57:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752396AbeBHUxm (ORCPT + 99 others); Thu, 8 Feb 2018 15:53:42 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:34192 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135AbeBHUxl (ORCPT ); Thu, 8 Feb 2018 15:53:41 -0500 Received: by mail-pl0-f68.google.com with SMTP id q17so452711pll.1 for ; Thu, 08 Feb 2018 12:53:41 -0800 (PST) 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; bh=c6Lgt6imYUDGc+ZNlmtFXSw6R/65vP+Whd1va3fKeY4=; b=KIHZZIXbnBvpJzJzYtUqCPKknXA18pQRXAFJ0Ljh6x5v2uWJxuNKxRbw2gxjr3N40K btAPrMC6glO67LQKRITmugCr7wphVqP6dWK0jvNc8e++t/iYvFSJ28yKn7jpV73ZCcHB doMKwd/YhB/Wx/ROXHxun034L/hh9Gx3b6MdSSTk7FMfoVT9qVejo+5fVM+JcUqamLJF eucAP16Cx0FZFvDj4yt1qX34iLhAxle2RQvGe8jC+0wG3zRmVfBtXeeaEnF9Rr81iNv3 5z1jSQvXyBms2LiE3VcV4ExQl3H88LGuojeeLMWHtgDh9sFLWzk24DLab9IZGHPMTt45 1Nxg== X-Gm-Message-State: APf1xPACAjTzIch8PFzkavDAXsWRRyR54YA4IgcKwRc3pqw6suHXBy4Q m+Ju0jPUMPNm6Nj9amCsrhh+nw== X-Received: by 2002:a17:902:a711:: with SMTP id w17-v6mr261457plq.299.1518123220624; Thu, 08 Feb 2018 12:53:40 -0800 (PST) Received: from mka.mtv.corp.google.com ([2620:0:1000:1600:5ff4:666d:2881:a60]) by smtp.gmail.com with ESMTPSA id 205sm33094pfw.77.2018.02.08.12.53.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 12:53:39 -0800 (PST) From: Matthias Kaehlcke To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Zhou , David Airlie , Harry Wentland , Felix Kuehling , Dmytro Laktyushkin Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Guenter Roeck , Justin TerAvest , Craig Bergstrom , Matthias Kaehlcke Subject: [PATCH v3 1/4] amdgpu/dc/dml: Consolidate redundant CFLAGS Date: Thu, 8 Feb 2018 12:53:13 -0800 Message-Id: <20180208205316.93330-1-mka@chromium.org> X-Mailer: git-send-email 2.16.0.rc1.238.g530d649a79-goog Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use a variable for common CFLAGS instead of specifying the same flags for every source file. Signed-off-by: Matthias Kaehlcke --- Changes in v3: - Use variable for compiler options instead of subdir-ccflags-y drivers/gpu/drm/amd/display/dc/dml/Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile index 3488af2b5786..96b337a03172 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile @@ -24,15 +24,16 @@ # It provides the general basic services required by other DAL # subcomponents. -CFLAGS_display_mode_vba.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_display_mode_lib.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_display_pipe_clocks.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_display_rq_dlg_calc.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_dml1_display_rq_dlg_calc.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_display_rq_dlg_helpers.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_soc_bounding_box.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_dml_common_defs.o := -mhard-float -msse -mpreferred-stack-boundary=4 +dml_ccflags := -mhard-float -msse -mpreferred-stack-boundary=4 +CFLAGS_display_mode_vba.o := $(dml_ccflags) +CFLAGS_display_mode_lib.o := $(dml_ccflags) +CFLAGS_display_pipe_clocks.o := $(dml_ccflags) +CFLAGS_display_rq_dlg_calc.o := $(dml_ccflags) +CFLAGS_dml1_display_rq_dlg_calc.o := $(dml_ccflags) +CFLAGS_display_rq_dlg_helpers.o := $(dml_ccflags) +CFLAGS_soc_bounding_box.o := $(dml_ccflags) +CFLAGS_dml_common_defs.o := $(dml_ccflags) DML = display_mode_lib.o display_rq_dlg_calc.o \ display_rq_dlg_helpers.o dml1_display_rq_dlg_calc.o \ -- 2.16.0.rc1.238.g530d649a79-goog