gcc question

Florian Weimer fweimer@redhat.com
Mon Sep 13 19:51:17 GMT 2021


* HON LUU:

> I build "device driver code" in userspace code, but using the same
> headers from kernel source code.
>
> In the driver code, we include "linux/pci.h" header, and through
> include chain arch_static_branch() got pulling through inline
> functions.

You need to do replace arch_static_branch with something else.  It
cannot be used in userspace.

Thanks,
Florian



More information about the Gcc-help mailing list