Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3862509ybe; Mon, 16 Sep 2019 02:36:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqze7gjnaxuPvsZBfaAkcE1nxgMXwMFgWprttUaeRs3xHSqgAeRzkEjAMn40fpSR1WOUAu1N X-Received: by 2002:aa7:d386:: with SMTP id x6mr15079594edq.264.1568626589874; Mon, 16 Sep 2019 02:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568626589; cv=none; d=google.com; s=arc-20160816; b=iNFzBkMvDpJtC9var+Y28XCmjjJzdhp3/UawakitgWAX04zsEHC/JOWwZm9YPWw4Jo wLJeJBLa+m/vh2LYoBqHJQENmD2dnWvxN1njq5149NmGmZZmc5OacsuSj6UQhB92WKCt 4x6HTgnKLcrdMdRA1dfpr8sOAwCTL43Tl/e3EIl/YkHicqUtbJXMUyoAKl56Df54WjZ0 /cUjguy/3KyExw7hSoPZKL+GO4rwWpDU0BGpnVrYVfJL+1PPEpGkljNyAKq2HeI/WCoU u8XnHG1hRadngQb01958Udne6Xfiq3aQuKSCW3hNszS59GXNTbmFO+4v93/Da9XSU3nV 8VVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=eZFkBnflecr+DvKcb7QmnRx1V4AOQ4wu/rTk5RgsQlE=; b=sYZSGOVZryw1WJT/AwNDnptGB8HNXOXJiJlZXWZNpQ0RrNU9SioKiqylVHVH9Z7HU3 bUw3BeaydEK8wk2JCqlC1NqF0rPp2g7xomIcb8VYSJFVXc7Oggd9a5wAlKDhoxtZqJez XAxoyXKnsmcJ1QyIeWgCzoOMABBgUtswrVs3O0BlU4LOB56qtGrHySn46E83Wu/8zTIs LC4bFJjBN6/6NrHTY4Of45CQDdAKZ7a0A3Oc1Q53+oj5c5VIgd9AESMucdzpSW9rCGDZ GnDxeFfqLtFVXXO43kKqUZTZQmdnqRzta+BanJcpZ4rfkLt+yo810ycfpU/BSIVNXQQ4 GHkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GRerCR5m; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14si18453140ejh.172.2019.09.16.02.36.06; Mon, 16 Sep 2019 02:36:29 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GRerCR5m; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727990AbfIPEq6 (ORCPT + 99 others); Mon, 16 Sep 2019 00:46:58 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41743 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbfIPEq5 (ORCPT ); Mon, 16 Sep 2019 00:46:57 -0400 Received: by mail-pg1-f195.google.com with SMTP id x15so19047187pgg.8 for ; Sun, 15 Sep 2019 21:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=eZFkBnflecr+DvKcb7QmnRx1V4AOQ4wu/rTk5RgsQlE=; b=GRerCR5mayXn8ulWUW1HvXXend3toobCOp29hKe9BSHh3KDRoW9STMgGkvMr0s3j7y sR9Cfcu4sqkYO9uYRUU3Ldzx/b1gOT9uYiyn1TUn2X24dFT+Aakxvqub6ODcSFZ8RTc1 sjhJAlYiGajTxbEDupG0gu3aKvGT6wY0hXHtqx45EVx9XQCCWVcng7tPc/elJZR/4NOw LCWM1GbyLxnuoUMhA/UMsfCBm838zYeWrGOCwqo7nECoPmaYWtOX/RDLttQUZeC7o/PB acveA2TaxK/KmLAnyBJHS53JI+O+ZkAn2XRkphXS3ATH1xo6H/4C3t6rKOe6R9E8vm2S /KhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=eZFkBnflecr+DvKcb7QmnRx1V4AOQ4wu/rTk5RgsQlE=; b=uANZx/XUQ+BOuF8aG5rZGGrw8gxanrwG4oqtDbsGXsVIRqRr+i+VAWOJmXWvbDpRE0 E8G1ZihcJ2xL87Bz04z0a+UmXSLmRLoi1LE8y4jUqbfehfWeELN97hWme0yaIiWgHN0q 8onsjKVQjzNsw3Bhl9+7817YdJyVlxn4/8zxwgBBCcWTxJg6N10hSASP0dqBYbFZA0qA bDQRDKqVl8U09xpWcYxf2LWwzNnFlfwKQeqYd96Oj0EAUQjmD5QzIi3Lw2+sKTrJ4pCP 4/pf4poy+8H8MH5ew0c/r6Vb7wtG3zZujO77OMfHo2rOyDrZ5NBUT6TXPQJNSHS5yXOJ sRRg== X-Gm-Message-State: APjAAAVPzWBlkGPv36TtfsLIX0FArJJjJZezzFLsdJEBaVvydSsS/j4+ 49iNSummmyEI2KSNCYvKDys= X-Received: by 2002:a17:90a:1903:: with SMTP id 3mr18346227pjg.80.1568609217015; Sun, 15 Sep 2019 21:46:57 -0700 (PDT) Received: from LGEARND20B15 ([27.122.242.75]) by smtp.gmail.com with ESMTPSA id 22sm6090674pfj.139.2019.09.15.21.46.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Sep 2019 21:46:56 -0700 (PDT) Date: Mon, 16 Sep 2019 13:46:51 +0900 From: Austin Kim To: airlied@linux.ie, daniel@ffwll.ch, Roman.Li@amd.com, yamada.masahiro@socionext.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, austindh.kim@gmail.com Subject: [PATCH] drm/amd/display: Fix compile error due to 'endif' missing Message-ID: <20190916044651.GA72121@LGEARND20B15> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gcc throws compile error with below message: HDRINST usr/include/drm/i915_drm.h drivers/gpu/drm/amd/amdgpu/../display/dc/dml/Makefile:70: *** missing 'endif'. Stop. scripts/Makefile.modbuiltin:55: recipe for target 'drivers/gpu/drm/amd/amdgpu' failed make[3]: *** [drivers/gpu/drm/amd/amdgpu] Error 2 make[3]: *** Waiting for unfinished jobs.... HDRINST usr/include/drm/omap_drm.h HDRINST usr/include/drm/tegra_drm.h HDRINST usr/include/drm/drm_sarea.h HDRINST usr/include/drm/panfrost_drm.h HDRINST usr/include/drm/drm.h scripts/Makefile.modbuiltin:55: recipe for target 'drivers/gpu/drm' failed make[2]: *** [drivers/gpu/drm] Error 2 scripts/Makefile.modbuiltin:55: recipe for target 'drivers/gpu' failed make[1]: *** [drivers/gpu] Error 2 make[1]: *** Waiting for unfinished jobs.... Add 'endif' to Makefile to stop compile error. Signed-off-by: Austin Kim --- drivers/gpu/drm/amd/display/dc/dml/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile index a2eb59e..5b2a65b 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile @@ -44,6 +44,7 @@ CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_mode_vba_20.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_rq_dlg_calc_20.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_mode_vba_20v2.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_rq_dlg_calc_20v2.o := $(dml_ccflags) +endif ifdef CONFIG_DRM_AMD_DC_DCN2_1 CFLAGS_$(AMDDALPATH)/dc/dml/dcn21/display_mode_vba_21.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn21/display_rq_dlg_calc_21.o := $(dml_ccflags) -- 2.6.2