From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 CE71C37B030; Tue, 21 Jul 2026 11:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784632588; cv=none; b=GJ1xjkkd8qdIKcCslLCqyk9sbwtpG+3WGEXyYoxM0eYAYl/gLK/yDmsT3gg+VDBIjHqLjVn8B1wxLtl8RyCuFsGD3EsJ4wWfrGnh4/nTh3IDYVjMuPfaiS6KV21wUiKLUuul7qjc/V1KDaYkTuO4+DgskIBoxmzMkmIsuCped3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784632588; c=relaxed/simple; bh=/MsRRD60z6Y9BkMYAyVeHU+fDWcAMhMQ7+pCjkxj43o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mIsJdKSv7YDIb/wK3Aa12+HgM/f/bfGByaHF0oLXB4XpsCS48HXMpMU8aLW0q8V0TJp9w3TBNvsqPHSv5u5c0YZqChxwhpE6no2KrPodaAO5M/wnD+uxdtCgF2apBrE7pjqCRbfFkPzDzWxqPvXKS2Y06a1ZrIKvIwblPy4d/xM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cvXkQbkS; arc=none smtp.client-ip=198.175.65.19 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=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cvXkQbkS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784632585; x=1816168585; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/MsRRD60z6Y9BkMYAyVeHU+fDWcAMhMQ7+pCjkxj43o=; b=cvXkQbkS8ydDT9yEh45KMzL1C3V9RINe3eigHtg96Ymc4b/Nq6rG63ou qWeQ8h+3JtpvkZyWKjIcqr1ZoFJ5fBZMzCQrRLr2eW/TxuBz/fDwb9g3+ aK+9ydHbeJlTqoYLSmVnKiwkaTK5DRqMIUN1q9dxoRmyd3G9/IbVSyX9N 1iqnDrD7OCQ9yLzHe5KVOtIYyRv4gEEZiXoOvJ5LeJUACA9PIQ7T9n3CO DT38KjRzVIbvjraOE92JZby85fO85Ulf9gisQEH+KXt61vWnRogHxlea5 2SjVwvk3leQLnUAKg0eSMS9tdCm/rKrnpMqG4RbV8qAW205DXKrXd10Pi w==; X-CSE-ConnectionGUID: hL9IE5dxSaaZ1wvkW434nw== X-CSE-MsgGUID: c+FQjQbRQg6Uzx7HjhxOpw== X-IronPort-AV: E=McAfee;i="6800,10657,11852"; a="85171953" X-IronPort-AV: E=Sophos;i="6.25,176,1779174000"; d="scan'208";a="85171953" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2026 04:16:24 -0700 X-CSE-ConnectionGUID: D5ZRjTXLQWCuBtlvzEYsOg== X-CSE-MsgGUID: zUEcYFHqTH+GS5G39og7LQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,176,1779174000"; d="scan'208";a="253814729" Received: from ncintean-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.67]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2026 04:16:21 -0700 Date: Tue, 21 Jul 2026 14:16:19 +0300 From: Andy Shevchenko To: Xu Yang Cc: gregkh@linuxfoundation.org, rafael@kernel.org, dakr@kernel.org, robh@kernel.org, saravanak@kernel.org, bartosz.golaszewski@oss.qualcomm.com, driver-core@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev Subject: Re: [PATCH v6 1/2] of: kobj: export of_node_ktype for use by modules Message-ID: References: <20260721105448.2109894-1-xu.yang_2@oss.nxp.com> <20260721105448.2109894-2-xu.yang_2@oss.nxp.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; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260721105448.2109894-2-xu.yang_2@oss.nxp.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Tue, Jul 21, 2026 at 06:54:47PM +0800, Xu Yang wrote: > of_node_init() is a static inline that references of_node_ktype when > CONFIG_OF_KOBJ=y. Any module that calls of_node_init() will therefore > have an unresolved reference to of_node_ktype at load time, because > the symbol is defined in drivers/of/kobj.c but was never exported. > > This causes a modpost build error when CONFIG_OF_KOBJ=y and > CONFIG_DRIVER_PE_KUNIT_TEST=m: > > ERROR: modpost: "of_node_ktype" > [drivers/base/test/property-entry-test.ko] undefined! > > Add EXPORT_SYMBOL_IF_KUNIT(of_node_ktype) so that modules such as the > KUnit property-entry test can call of_node_init() without hitting this > linker error. ... > #include > #include + blank line. > +#include > > #include "of_private.h" -- With Best Regards, Andy Shevchenko