From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 1866A3FCC for ; Mon, 4 May 2026 10:57:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777892258; cv=none; b=g3o4Nj3Q+0AFYEmDpbuEmiisC31v78xqNPv2qLBl53sq47Sz7RbqSFG3k2tpA9OyXvWWq65eJNVwWfOfUWvBS7L865SJ2xZ7rmqcTJJ9xb5NBSjbaDXAqZVsInFFU/sr8OGCUH+VNTemmZKPmEq2KF8GuStB/yep6MV7SlkE6Tk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777892258; c=relaxed/simple; bh=UQYd5HbkqUVAbd3xfANyqwtBBF5utXkxBMeXtFD3rcw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MH+7hVgJEc9Q8j+cGWA4VeAretDPpSF1/83nXuSuOJ2GsWUXdSZPoccHX9WTlG8OreKqYqHk8dL8sKT75pWOk7kle7cJMuAPKcAC/YjN+ga1PfCDlQaT9Z+9OcMDYYKMBgg3Zvbq4EZvrSOwdUVM8u6/wY15Sx6s1Gfp8JD9CRk= 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=innEmQzA; arc=none smtp.client-ip=198.175.65.9 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="innEmQzA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777892257; x=1809428257; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=UQYd5HbkqUVAbd3xfANyqwtBBF5utXkxBMeXtFD3rcw=; b=innEmQzAWjLequgIZ6qm1OFjaxoOP1bQwZw8LeYZUgwhstEHhKIuFPsb b7PJgHC+HgR9XkW9vmJNjX7EMbpkcKq1DxAW69cYOeLy9D8gbplBcklsQ QI5haYna7AdjOZ/wltNzYgtQVFONX6z2pPRlemJqXSQkB2b/e8xuzRzjI +0K24DL9q9hc1aZQlaP1R81fO5MDxzRiLAYe4xaLuio3/N0tXBMmBisy0 J/a7Crr0jIKys4xJwjfHuja29kp4/jOL+iqS3XRQn4lWI8sNHciLAuyEj E1SFsnI2P7gZ3zUxL46rgMcBQYTAnKhzZSQV47QTOTfVY9xgLlaGNLbXR g==; X-CSE-ConnectionGUID: j/gqfO/gTjKM0k5meJAuPw== X-CSE-MsgGUID: SZisrCtxRcaia/qJ6Jn/mQ== X-IronPort-AV: E=McAfee;i="6800,10657,11775"; a="101412526" X-IronPort-AV: E=Sophos;i="6.23,215,1770624000"; d="scan'208";a="101412526" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2026 03:57:36 -0700 X-CSE-ConnectionGUID: V1DIEYJiQsaLBQHf2xvdug== X-CSE-MsgGUID: p4YOnLPjTFiyFcfYd/HeFw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,215,1770624000"; d="scan'208";a="232831429" Received: from hrotuna-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.245.78]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2026 03:57:33 -0700 Date: Mon, 4 May 2026 13:57:31 +0300 From: Andy Shevchenko To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Andrew Morton , Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] vsprintf: Only export no_hash_pointers to test module Message-ID: References: <20260504-restricted-pointers-kunit-test-v2-0-19e8b1c0fbeb@linutronix.de> <20260504-restricted-pointers-kunit-test-v2-1-19e8b1c0fbeb@linutronix.de> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260504-restricted-pointers-kunit-test-v2-1-19e8b1c0fbeb@linutronix.de> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Mon, May 04, 2026 at 12:43:40PM +0200, Thomas Weißschuh wrote: > Aside from the printf test module, no module should ever use this symbol. ... > -EXPORT_SYMBOL_GPL(no_hash_pointers); > +#if IS_MODULE(CONFIG_PRINTF_KUNIT_TEST) > +EXPORT_SYMBOL_FOR_MODULES(no_hash_pointers, "printf_kunit"); > +#endif But do we need that ugly ifdeffery? the infrastructure should handle that. (Also, if I build a module separately after the kernel, it won't work.) -- With Best Regards, Andy Shevchenko