Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3055195rdb; Tue, 13 Feb 2024 05:48:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxeRNJ9kP0lOBrTOXUci44IFAhOrBgI2JqrUTP1yPmKxWdloQ9bhd4t/xt87j6SinQkhDhRggTv1+s/LpyUi7cWUz82S0pVCie4ufFSA== X-Google-Smtp-Source: AGHT+IHXGrKEBMiXFroG2/ctnpTO9YCFY4rBvq80k2sC2sQTAROnk2ouNdirzAVxpNgdeF6Sz9AU X-Received: by 2002:a05:6359:1010:b0:176:8472:800f with SMTP id ib16-20020a056359101000b001768472800fmr5550784rwb.31.1707832111836; Tue, 13 Feb 2024 05:48:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707832111; cv=pass; d=google.com; s=arc-20160816; b=Uo2SGuItzLjq+Lta0yDRR+F6hm795tLT5wndCehdkVDl/YzFIu1ul4CPE/uS9lywuj Cw6baOM4ZrBcPlVebq2My7aTdFnIygHrEFGaIZ4v11mFl3ddF3GIubi/Iurm3+DIcXxC MSijyA/rZ2lEi40Twyao881Z3IBGPcSO/h/NxCGHJrqnUk2lUa1yW6fS0VRlVG92iW02 sfWDfNtVbZaI/yrU3F3jzDdQEtxxcOBNaVVSA8AzLz4rVO8UO6BmPuU65JhFDEqPLvPA dGj53+m+dIkFnnx/0iCzU0b9MT7qN/j9SvkswyKKRbfC3uL+mQMbocUE7l1Vq0BHDcc0 SJ/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=UpWnTxzGRXvsxJXQzlWCOCHtfIK9W1L0F/UufqAvOK8=; fh=PR4212PL3RD8LLw1tvc8JEU+eZixlqDbWvmKHZfRbgA=; b=Cpa2lOgQ3Ama1HEkD3cvkfkMejYtv4wsGPJD/wMej6KWMfV/TRsqzEHcJMgLBv7SUO KkYU0CwODbhEfLlnX1QKwAS8aPsLpRwu826JBsjkGVWsx+/h3BqjFhPzoGYIk2uUMEvO axMqcfvvz4p1V66GrnMV5YHGtUTz5xKTD0jyAArun5v2SSLqQ8tdcaZUI30SP/l4aUPN viIwXMZR094phXmzOE6QoBmuQgJGTSnvXLfPsNLYVKI/DC5qhlqlvaQYjk7SYcfNwuH9 qxAvcNkjlZrVQjl+aVfo2ioxLTR711va68SjVS0uQ/LJ52Zkm6PcaFsJ4k7Oa9aaLiWZ hBEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X2GzlSb8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWNBcuFK3fMXKUCXiheusPxFWLrSWNntGuDubcTwSISGaZLq23WqnDLU/5I7Bm3I2WZt/EJYqeOqPt2VtyQ+FvJnbojX+dAa+5vVhVWoA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y29-20020a63b51d000000b005dc888057f0si751546pge.292.2024.02.13.05.48.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 05:48:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X2GzlSb8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 64C17281A0C for ; Tue, 13 Feb 2024 13:48:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A39B56476; Tue, 13 Feb 2024 13:48:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X2GzlSb8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6533756465 for ; Tue, 13 Feb 2024 13:48:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707832105; cv=none; b=HQDiJBs9M+bL5X3MC9mgMyAkD9IFoXXZD+B4A100B2Fb6quQo/uPFnTDBezHYXsZnHd1H+W60ysm2fx4ELSsjDk6Zg3DFpUw4bgSjh3U1IspWIphjPn4b61JiXKqnQTA4oFzQjyFjW88MGmO/iY6LbGvG8ps1aj1bZysl+oYaaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707832105; c=relaxed/simple; bh=26cXrqFjrg0ao0r9xUFAr1Dg4GgkrO8FmiGX8abfNuM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=h/H7eS+0y8jT1BEwIXknVsZgrTgIie8/Tji39rtWjv4I/K7tuP00WIgrEokS8sHbeob836JbpPVvDV73+heWcwtUdPuAS5yTSZ7ngSNmlrNQTZ0MJ2vzZt/VPTbDevZp4ayOFvCbBqhf16sv5tTOgMT1tWhfCNxKpuoDBc3rvj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X2GzlSb8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A354C433C7; Tue, 13 Feb 2024 13:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707832103; bh=26cXrqFjrg0ao0r9xUFAr1Dg4GgkrO8FmiGX8abfNuM=; h=From:To:Cc:Subject:Date:From; b=X2GzlSb8rmaizrJ0LylQls2sNtypF+9i+aT25Vuuvh7WYZjxmctA3xM2UEvgXAHQ9 LkHZlxozy10NCqsfaltRaUMEVm1POUxpoifOXVzrPA/7gyXDeedg54An0zypsT5+Bm 5pL153obBaefWUE4e90RlGfLmnHfeYrp8lYPzkTZ+MQkti4KJPa6SEXkE2vy29EgEB ybIafh9Y/c0rAcuxQpDQ880xxUtDcVNVqnV34nzeQnDVi2C1vnRp07/VQKJO6SgBd1 mMfBjKc5K4eYKyYJPaorx6Ar5BXdJS9P2vSyOtN0fOwTUeorMq/U7/HBLji2sl0VHG CPPlBN4LzpySQ== From: Arnd Bergmann To: Lucas De Marchi , Oded Gabbay , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= Cc: Arnd Bergmann , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rodrigo Vivi , Matt Roper , Matthew Brost , Riana Tauro , Daniele Ceraolo Spurio , intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/xe: skip building debugfs code for CONFIG_DEBUG_FS=n Date: Tue, 13 Feb 2024 14:48:05 +0100 Message-Id: <20240213134817.3347574-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann Some of the debugfs functions are stubbed out in these configurations, so trying to build the .c file with the definition fails: In file included from include/uapi/linux/posix_types.h:5, from drivers/gpu/drm/i915/display/intel_pipe_crc.c:27: drivers/gpu/drm/i915/display/intel_pipe_crc.c: At top level: include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void' 8 | #define NULL ((void *)0) | ^~~~ drivers/gpu/drm/i915/display/intel_pipe_crc.c:549:20: note: in expansion of macro 'intel_crtc_get_crc_sources' 549 | const char *const *intel_crtc_get_crc_sources(struct drm_crtc *crtc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Stop trying to build them by making the Makefile entries conditional, same as for the i915 driver. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/xe/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile index efcf0ab7a1a6..7c10ffdb7809 100644 --- a/drivers/gpu/drm/xe/Makefile +++ b/drivers/gpu/drm/xe/Makefile @@ -213,8 +213,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_ddi.o \ i915-display/intel_ddi_buf_trans.o \ i915-display/intel_display.o \ - i915-display/intel_display_debugfs.o \ - i915-display/intel_display_debugfs_params.o \ i915-display/intel_display_device.o \ i915-display/intel_display_driver.o \ i915-display/intel_display_irq.o \ @@ -258,7 +256,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_modeset_setup.o \ i915-display/intel_modeset_verify.o \ i915-display/intel_panel.o \ - i915-display/intel_pipe_crc.o \ i915-display/intel_pmdemand.o \ i915-display/intel_pps.o \ i915-display/intel_psr.o \ @@ -275,6 +272,13 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/skl_universal_plane.o \ i915-display/skl_watermark.o +ifdef CONFIG_DEBUG_FS +xe-$(CONFIG_DRM_XE_DISPLAY) += \ + i915-display/intel_display_debugfs.o \ + i915-display/intel_display_debugfs_params.o \ + i915-display/intel_pipe_crc.o +endif + ifeq ($(CONFIG_ACPI),y) xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_acpi.o \ -- 2.39.2