Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3115313rdb; Tue, 13 Feb 2024 07:19:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWD2wdyvGWOoE72n2VGVqRSpXw0i6cTMDip+iRRV8hhfe8KtveBHonmB+l+IY3CvTmSFNTV6USHJUqxBJEpU4U1Y90CFANzKDy6265rcQ== X-Google-Smtp-Source: AGHT+IF/Bflg22Qjt9S5pwjjki8q2AWIOpKxBSYIQ1dzMWzmPO4yG2Q8SCiRunwlKQVN26XG4GGD X-Received: by 2002:a62:d116:0:b0:6e0:9e94:d085 with SMTP id z22-20020a62d116000000b006e09e94d085mr7869150pfg.14.1707837555383; Tue, 13 Feb 2024 07:19:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707837555; cv=pass; d=google.com; s=arc-20160816; b=Dv8P3JaBV7DJJu+0/DvxuXslAFi//kk9kmI91j0bbMgxDYzrMqMiGL4nlJF5T0KwiL fKqvaFin+zktgORujuH6EqZQa4W6hh8b62M3MBeIBia7g0YL3gi317VWliV45ZLNqXgI MEUFDk07+K4MlclKYV/PZAmpyw6Z2MH35heusrlJdUHYQeX1pdLJ5g6lO0rvj4QfsaSQ FVk9RFqd3gvpnzMi4iw6U7swS7ziMGN9oXq/Stty3yNLq3z/+BmcljfZiUp+rX0Ig+J4 CGIk1E/zorZ1Oyd6N97//roodgA2dm0ekKSiCY9qFnxAHgJeu2tBTuTEIKUDjn9dZiTo IMzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=PITkufYxTnWmmw9deY0AuKkV4wM6ZCQw2z2hKmnfyTs=; fh=xuyseApShIA7zop8NnZ74LJEM1QTf97t5/6J0jUMYK4=; b=HD78COE/SGIQJPYqM53q80c6tugUaLy2wvTRlHkvJnLRp+I2Lqj6uGL+Ma7twGsu2n FDNFwVXo6yrdF8grTPqszxMU/cbfVTQboXgKT+EcQqrCD+AsSmO/+n+LeMGPxxfhgbR0 Xe6p5a2pmu7m/VCoamW1Fowf7diZUZMgostDJgwB8sC3OzdT3Rbo6LaG28CEbF4FxGmE 6DYMnpgIEQ6S0Mc8pEu/U5ud53R+3UmHxUkINKcnDydziqhrFtWr/XdWd8zYVWO8VgQ/ 5ykABWmqX0p23Xf8eTNR/m9RhZB3R9M/0a1ivE7dRXUMvLcduNPszmEB5QmJc0j6O2QH F/8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B8m62KN2; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-63732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCXSXeQ4itjWp1HPv3yW2jjrE4wbnvh9iZXIjrD63mAQ/IVCgwWqUCHcSmNPPgg3K5Vyst7QHwjYLdvh4imMSE9xgfO7RqY2JOwlhoiJrA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c7-20020a633507000000b005d8e3645dcesi2124741pga.210.2024.02.13.07.19.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 07:19:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B8m62KN2; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-63732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 342BDB28246 for ; Tue, 13 Feb 2024 14:56:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 680865DF1B; Tue, 13 Feb 2024 14:55:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="B8m62KN2" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 DBAB95B1F5 for ; Tue, 13 Feb 2024 14:55:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707836149; cv=none; b=ZyoR0NPxDbrjTf/myGHKpwUmuljF9avLpQxRIJvHArFW4d7/fO2C4+DhpCqkpeOqx8RwTqAzTuES5YlCwB8Uk5d4X9MIvDp3S4Pv8pOpUc/30YjQMLz3MiVK8d1Qj4q0zYjfrBNY20WY0gdINQNbAzakXY5fHeLIeVrPb7wFSvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707836149; c=relaxed/simple; bh=q304uAOx53FlEDf4SDhx/Xc+la95RUjvdxKUGemT/0Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=NcQe+F0edj/xH3haO4jlQmp2b0OYxURpnd3uF66+1nOQFoJ+mI+WQIsGVjwfntN1EbbZroi2xvwKHYV+q4gHm121Hum+NfHcp3GChyPXxN1NUH+++0sqmRrzdrRkJm+ncTQTsZjzs5M9hW3LPQ55PbtXoNhAmiQcOo0Hb45fg0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=B8m62KN2; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707836148; x=1739372148; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=q304uAOx53FlEDf4SDhx/Xc+la95RUjvdxKUGemT/0Y=; b=B8m62KN21AIP2QDsJOzoOkKtUrIph7DHN3y86b4ecW02Uc8fFpe1tiF7 hB+jYqiVW6lClEnj2GzkiPOF7C++7cGsGGDsLbJvF6VP5Xq26UEbK4Oyu ZOUHC9mmMuZRbqyDzXAKdCJSVOKh2Zpg3usjRhmq/rOh0R+ds2JsuWGfI fXhG2LmuUJ6IQKKJ8VFvBA1V6Pbx3TVZI77cNcikGPRXE+4yU8mRj5jcW 1UlsfLOPwvVyWW7XlQTGniFmneQ6leNkRFcrixm5EOg2OFTA9FR0CRpsT y9z+M9L88zwYseZDAm/dFpYDpA/s4FNFyhWZBZT63qGYF77WL3k+bJdEX A==; X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="1983525" X-IronPort-AV: E=Sophos;i="6.06,157,1705392000"; d="scan'208";a="1983525" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2024 06:55:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,157,1705392000"; d="scan'208";a="7544964" Received: from snasibli-mobl2.ccr.corp.intel.com (HELO localhost) ([10.252.44.50]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2024 06:55:42 -0800 From: Jani Nikula To: Arnd Bergmann , Lucas De Marchi , Oded Gabbay , Thomas =?utf-8?Q?Hellstr=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: Re: [PATCH] drm/xe: skip building debugfs code for CONFIG_DEBUG_FS=n In-Reply-To: <20240213134817.3347574-1-arnd@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240213134817.3347574-1-arnd@kernel.org> Date: Tue, 13 Feb 2024 16:55:39 +0200 Message-ID: <877cj88lck.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, 13 Feb 2024, Arnd Bergmann wrote: > 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. Already fixed by commit 439987f6f471 ("drm/xe: don't build debugfs files when CONFIG_DEBUG_FS=n") in drm-xe-next. Maybe that needs to be picked up for -fixes? BR, Jani. > > 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 \ -- Jani Nikula, Intel