]> www.infradead.org Git - users/jedix/linux-maple.git/commit
doc: module: DEFAULT_SYMBOL_NAMESPACE must be defined before #includes
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 30 Dec 2024 14:24:00 +0000 (15:24 +0100)
committerJonathan Corbet <corbet@lwn.net>
Thu, 9 Jan 2025 19:36:55 +0000 (12:36 -0700)
commitfcf22a957ff82c7b1020cc6e72a0f1616763fb76
tree60a014fddb808e756288d723b60a88c7c2ed6c9d
parent3008178ef3714c41dee1d49191cfc66726f680d9
doc: module: DEFAULT_SYMBOL_NAMESPACE must be defined before #includes

The definition of EXPORT_SYMBOL et al depends on
DEFAULT_SYMBOL_NAMESPACE. So DEFAULT_SYMBOL_NAMESPACE must already be
available when <linux/export.h> is parsed.

Also when defined that early there is no need for an #undef, so drop
that from the usage example.

Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/linux-i2c/Z09bp9uMzwXRLXuF@smile.fi.intel.com/
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/3dd7ff6fa0a636de86e091286016be8c90e03631.1733305665.git.ukleinek@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20241230142357.3203913-6-u.kleine-koenig@baylibre.com
Documentation/core-api/symbol-namespaces.rst