On Sun, Oct 04, 2026 at 11:27:10PM +0800, Xiaoyi Suo wrote:

> Import the helper Linux uses to clear a buffer the compiler must not
> remove. include/linux/string.h has it as a static inline with a kernel-doc
> comment above it; this is that code, copied as it is, so a later fix
> upstream can be picked up the same way.
> 
> barrier_data() comes from <linux/compiler.h>, which Linux includes from
> that header too.
> 
> Link: 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bec500777089b3c96c53681fc0aa6fee59711d4a
> 
> Cc: Tom Rini <[email protected]>
> Signed-off-by: Xiaoyi Suo <[email protected]>

Reviewed-by: Tom Rini <[email protected]>

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to