# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/musl/hotfix-linux-inline.patch # Copyright (C) 2021 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- musl-1.2.2/include/features.h.vanilla 2021-10-21 17:39:26.634632506 +0200 +++ musl-1.2.2/include/features.h 2021-10-21 17:41:59.760626400 +0200 @@ -37,4 +37,11 @@ #define __REDIR(x,y) __typeof__(x) x __asm__(#y) +/* Forces a function to be always inlined. */ +/* The Linux kernel defines __always_inline in stddef.h (283d7573), and + it conflicts with this definition. Therefore undefine it first to + allow either header to be included first. */ +#undef __always_inline +#define __always_inline __inline __attribute__ ((__always_inline__)) + #endif