Received: by 10.223.176.5 with SMTP id f5csp2369926wra; Thu, 8 Feb 2018 12:55:24 -0800 (PST) X-Google-Smtp-Source: AH8x225Glw6QdIZ3FB1PLYEnl0SxrvOyFvAOR2c+ytHbsDWqipQO9KJA6PyhMYquXxC85NKqvOG8 X-Received: by 10.98.198.143 with SMTP id x15mr353226pfk.22.1518123324108; Thu, 08 Feb 2018 12:55:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518123324; cv=none; d=google.com; s=arc-20160816; b=zomJma0lQ8ShKodyXkuqfddk0+xwk6YmvqMnuNntXPQ/NJwrVbJe3IGd8MLFLF8LvA epIpWrQ9eJ07MGhN93eGfLgXLWyz9Pg98NTKSWZHD3ij8w/fjt4im4gqWNZJG+19LxRT CvTRp1Wh0Vutbp8NSL1e+uA5WxfYvN8zHHY++eadEAYXi/aJxBULl1amD+Ox3XPfOyfQ 2dB0EEerCAgSnmSVtpZSrC/yuTdzEacRbqcmKszOVYsvFoK5mala1Yt/SDN6YeohtE/W D58Ygp0C3AFJAUZwhV8zH2SBqrndKR9eLdbgW0pSTmkZquTLtlfjoZ7UBQJlkBKpqtnt KaSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=cUvxhiLNjX/zDPkOFqqYe6q4MJDk16+bajn9vAhrTXM=; b=kyNWrNAUel2kNZ7PTWqq10/o81KHkrNOn1JG+CSHkpH5m0rRtzdzPmaDKt3e1FODB0 rBv9oj2iPSh0JW95QgmUCWWM1+nsNQJCMZ0s7/QarqrnnCWkAWXqQLaIRdVhrJZ3mkBx /TOF2UNtkLGYc2qoBRVLoeh8JLOLsvXSaEsG3Ey+8KRLVcKbtHHNejcf+FDLAK5uujWc m+7N5JwZ8UTPUrfsEHN44KtZVrgyQ4qUkonXZH85914Sx6TOPrcfGfNcmMhTiZo+Pkqm 90gmvDk09MxRJMPiW3ByJLrTnqoFPAXsgZaX3O9WO7LWptI/e5EYBhgH7g6PBxMl9+4z Pg2w== 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 l12-v6si473021plc.262.2018.02.08.12.55.08; Thu, 08 Feb 2018 12:55:24 -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 S1752440AbeBHUxr (ORCPT + 99 others); Thu, 8 Feb 2018 15:53:47 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37585 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752406AbeBHUxo (ORCPT ); Thu, 8 Feb 2018 15:53:44 -0500 Received: by mail-pg0-f65.google.com with SMTP id o1so2142610pgn.4 for ; Thu, 08 Feb 2018 12:53:44 -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:in-reply-to :references; bh=cUvxhiLNjX/zDPkOFqqYe6q4MJDk16+bajn9vAhrTXM=; b=CyiWDIEjp++ZNTIuj4UchtmzmRHmYwn92qnnFiqevFBn0GxAo3/U+q4lsS4E+Ev7wJ t941FHNu5azRyc53l6er1q7nRjtgNLwTlWVbBJ/++HntfxLAjrEfvBptxa4T+hNXdnWU DhbULtsqMdV48+LVwGUU383x6F0qLDABjGxtiLnRsARj/bWa4+AKz2VSG6giU7ZYOF/R uU6/Z7PVWgkqPXZ+MI2M8napCd7hsDojjw3xFTzZN0sQMwfEuvjCyzQM2omJdiMcQBlr jTHMEOuR3+AvbavCO1STrtMybSIlvMki0UjUc4tOhRbOA1oDVwrsyBOcYmnOAxXw+9rF axQA== X-Gm-Message-State: APf1xPB1BgUDhCH8ZitV9PhPkmaTzBiNuH4Umt27iZf24QlzD2Jp9CfO dbC6WDuqx9uBdNEJZCzYNLlN4g== X-Received: by 10.98.72.18 with SMTP id v18mr325110pfa.107.1518123224265; Thu, 08 Feb 2018 12:53:44 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 12:53:43 -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 2/4] amdgpu/dc/calcs: Consolidate redundant CFLAGS Date: Thu, 8 Feb 2018 12:53:14 -0800 Message-Id: <20180208205316.93330-2-mka@chromium.org> X-Mailer: git-send-email 2.16.0.rc1.238.g530d649a79-goog In-Reply-To: <20180208205316.93330-1-mka@chromium.org> References: <20180208205316.93330-1-mka@chromium.org> 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: - patch added drivers/gpu/drm/amd/display/dc/calcs/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/calcs/Makefile b/drivers/gpu/drm/amd/display/dc/calcs/Makefile index 7959e382ed28..af0f452f3c9f 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/Makefile +++ b/drivers/gpu/drm/amd/display/dc/calcs/Makefile @@ -24,9 +24,11 @@ # It calculates Bandwidth and Watermarks values for HW programming # -CFLAGS_dcn_calcs.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_dcn_calc_auto.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_dcn_calc_math.o := -mhard-float -msse -mpreferred-stack-boundary=4 -Wno-tautological-compare +calcs_ccflags := -mhard-float -msse -mpreferred-stack-boundary=4 + +CFLAGS_dcn_calcs.o := $(calcs_ccflags) +CFLAGS_dcn_calc_auto.o := $(calcs_ccflags) +CFLAGS_dcn_calc_math.o := $(calcs_ccflags) -Wno-tautological-compare BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o -- 2.16.0.rc1.238.g530d649a79-goog