From patchwork Thu Feb 8 20:53:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10208013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C9E7C60327 for ; Thu, 8 Feb 2018 20:53:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBCEA296A5 for ; Thu, 8 Feb 2018 20:53:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B09D6296A8; Thu, 8 Feb 2018 20:53:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 464CB296A5 for ; Thu, 8 Feb 2018 20:53:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7FC546E69F; Thu, 8 Feb 2018 20:53:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 746866E69F for ; Thu, 8 Feb 2018 20:53:41 +0000 (UTC) Received: by mail-pl0-f66.google.com with SMTP id 36so435785ple.13 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=WGAd1k65uKaxR5W9THYsWxFWpKeueOxGU1Me2nm+0qfQO5YeSguFDt+rZPnf2v9VGa I/FX+lyaEgGpX7MNdEMKSR2ZuzwWh3zjIB6a3Ce7kTjvjHK5t38dXAxygI/5q8VSTi68 o3ACcEkMDMRTwtgdK1AsQeIqPm09DDtfwf8EK7hw87eMPzEFONMZwIqWNY9r3z6XM/Bh rtd0aC8i4mXLbi+CZJ8A2GfMrYfodUahpll6RBqsO8u6L52RxgMa34zGtIJ+lAS1pFYU vBtlSHHjVbBolLIizTsePdTheMKkfb+FFisrytOr1jhnWW1FTSD1YVz5qYdobzIQdFRs c3gw== X-Gm-Message-State: APf1xPAHL3e5jCgRPFxyAjpH9KTS4P3DMF5qheWUGrnpaLc7HsaJThbM DFaLcTIQX3ube0Jd4W1jsBDpjA== X-Google-Smtp-Source: AH8x225UZfF6akPpOacdAGADlkMj60BnLcLIyI/EmzLfrY3wsrSziTkc4y+y/Zv4Mi0zVGmReC1OqQ== 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 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Craig Bergstrom , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Justin TerAvest , Matthias Kaehlcke , amd-gfx@lists.freedesktop.org, Guenter Roeck MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 \