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 EE74EC83F01 for ; Thu, 31 Aug 2023 16:16:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F14E610E5E6; Thu, 31 Aug 2023 16:16:44 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD9AD10E5E6 for ; Thu, 31 Aug 2023 16:16:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693498603; x=1725034603; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mI1jts0K9VDoQoxPnmopaYW2ScuYFWqzZgs9yJpJZCo=; b=TZ0cYZihyoaAgX2ZYVfHwYH7Zww1xndgbFjf4OGSKXUirPJ6hiKbLpBX Iwo+zX9L54XsHwEjohSuT2nDtD37x7JoQqEuskK22AwFUpWsxi35Ypmig mJAbVbZIn5H6pv/YU4+eQHJKhXpwJ7f4MbiSZMMUCob6tgRwnverpjh5u ZeoCciCX1dlEwmXvCX7lLRVVggb3CMY1Pe6W3jACASRHPceasPgl2I7yO RtpOq6SegGyuEUwqXX3jbwCRZrkNQpsC6mTrn+rMj9DlYySG2g++z9fVV BOFhWKHO4IPeR7R+rA4KVpHDi2/YUZ9aLkL7lefqhLjA6WKvFOWWu8dA3 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="374903909" X-IronPort-AV: E=Sophos;i="6.02,217,1688454000"; d="scan'208";a="374903909" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2023 09:16:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="733169316" X-IronPort-AV: E=Sophos;i="6.02,217,1688454000"; d="scan'208";a="733169316" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2023 09:16:39 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qbkLU-005Qr4-0K; Thu, 31 Aug 2023 19:16:36 +0300 Date: Thu, 31 Aug 2023 19:16:35 +0300 From: Andy Shevchenko To: Biju Das Subject: Re: [PATCH v6 4/4] drm/bridge: panel: Drop CONFIG_OF conditional around *_of_get_bridge() Message-ID: References: <20230831080938.47454-1-biju.das.jz@bp.renesas.com> <20230831080938.47454-5-biju.das.jz@bp.renesas.com> <20230831093108.GF2698@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Robert Foss , Andrzej Hajda , Jonas Karlman , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , Jernej Skrabec , Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Aug 31, 2023 at 10:47:24AM +0000, Biju Das wrote: > > On Thu, Aug 31, 2023 at 09:09:38AM +0100, Biju Das wrote: ... > > > Drop unnecessary CONFIG_OF conditional around devm_drm_of_get_bridge() > > > and > > > drmm_of_get_bridge() as it is guarded with #if..#else blocks in > > > drm_bridge.h. > > > > This will increase the kernel size on non-OF system, to add functions that > > are not used. I don't think the #ifdef here is problematic. > > OK agreed. I guess for NON-OF system it will give build error > for function redefinition, if that is the case I would like to > drop this patch. > > static inline struct drm_bridge *devm_drm_of_get_bridge() > > vs > > struct drm_bridge *devm_drm_of_get_bridge() Yeah, yet another argument in favour of switching to fwnode. -- With Best Regards, Andy Shevchenko