From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E825AC433F5 for ; Fri, 3 Dec 2021 10:47:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 66E1F6FF42; Fri, 3 Dec 2021 10:47:43 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id C56586FF42 for ; Fri, 3 Dec 2021 10:47:42 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10186"; a="236766714" X-IronPort-AV: E=Sophos;i="5.87,284,1631602800"; d="scan'208";a="236766714" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2021 02:47:42 -0800 X-IronPort-AV: E=Sophos;i="5.87,284,1631602800"; d="scan'208";a="577368696" Received: from chobbs-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.2.56]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2021 02:47:39 -0800 From: Jani Nikula To: Ville =?utf-8?B?U3lyasOkbMOk?= In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20211124113652.22090-1-ville.syrjala@linux.intel.com> <20211124113652.22090-12-ville.syrjala@linux.intel.com> <87pmqplft3.fsf@intel.com> <87bl28lcyw.fsf@intel.com> <91e37161-7148-5d71-2efa-0176fbe2f468@linux.intel.com> <871r34l395.fsf@intel.com> <87lf12gggw.fsf@intel.com> Date: Fri, 03 Dec 2021 12:47:37 +0200 Message-ID: <87fsrage2e.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Intel-gfx] [PATCH 11/20] drm/i915/fbc: Move FBC debugfs stuff into intel_fbc.c X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Fri, 03 Dec 2021, Ville Syrj=C3=A4l=C3=A4 wrote: > On Fri, Dec 03, 2021 at 11:55:43AM +0200, Jani Nikula wrote: >> I think an insteresting question is, with all the debugfs stuff being >> static in intel_fbc.c, is the compiler actually smart enough to optimize >> the static code and data away when CONFIG_DEBUG_FS=3Dn, even without >> #ifdefs? Or is that something you're already claiming above? > > Yes it all disappeared from the binary when I tried it. > Only thing left was an empty intel_fbc_debugfs_register(). \o/ --=20 Jani Nikula, Intel Open Source Graphics Center