Files
Arnd Bergmann 03ef56495f err.h: use __always_inline on all error pointer helpers
commit 94bfc7f3b0 upstream.

While testing randconfig builds on s390, I came across a link failure with
CONFIG_DMA_SHARED_BUFFER disabled:

ERROR: modpost: "dma_buf_put" [drivers/iommu/iommufd/iommufd.ko] undefined!

The problem here is that IS_ERR() is not inlined and dead code elimination
fails as a consequence.

The err.h helpers all turn into a trivial assignment of a bit mask and
should never result in a function call, so force them to always be inline.
This should generally result in better object code aside from avoiding
the link failure above.

Link: https://lore.kernel.org/20260526101851.2495110-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Tamir Duberstein <tamird@kernel.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Andriy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Ansuel Smith <ansuelsmth@gmail.com>
Cc: Bjorn Andersson <andersson@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-04 13:42:25 +02:00
..
2026-03-04 07:19:34 -05:00
2026-03-04 07:20:03 -05:00
2025-05-09 09:43:58 +02:00
2025-11-02 22:14:42 +09:00
2026-03-25 11:05:40 +01:00
2025-09-11 17:20:27 +02:00
2024-12-14 19:59:58 +01:00
2026-07-04 13:42:22 +02:00
2026-07-04 13:42:23 +02:00
2026-01-11 15:22:07 +01:00
2025-07-06 11:00:16 +02:00
2026-07-04 13:42:23 +02:00
2026-07-04 13:42:23 +02:00
2025-02-08 09:52:02 +01:00
2025-01-09 13:31:41 +01:00
2026-01-11 15:21:37 +01:00
2026-05-23 13:03:24 +02:00
2025-08-15 12:08:42 +02:00
2025-01-23 17:21:12 +01:00
2026-01-11 15:21:52 +01:00
2025-01-09 13:31:41 +01:00
2025-02-01 18:37:51 +01:00
2026-07-04 13:42:23 +02:00
2025-08-01 09:47:30 +01:00
2026-01-11 15:22:20 +01:00
2024-11-08 16:28:26 +01:00