# Re: \[PATCH 0/2\] Fix build errors and warnings when make M=samples/bpf

- From: Yonghong Song \<hidden\>
- Date: 2021-01-13 17:17:45 
- List: linux-mips
- Page: https://ratatoskr.run/linux-mips/2021/01/6233689
- Thread: https://ratatoskr.run/netdev/2021/01/6233183/t.md

```text


On 1/13/21 2:57 AM, Tiezhu Yang wrote:
> There exists many build errors and warnings when make M=samples/bpf,

both fixes in this patch related to mips, please do mention in the commit message that this is
mips related. x86 (and arm64 I assume) compiles just fine.

> this patch series fix some of them, I will submit some other patches
> related with MIPS later.
>
> Tiezhu Yang (2):
>    samples/bpf: Set flag __SANE_USERSPACE_TYPES__ for MIPS to fix build
>      warnings
>    compiler.h: Include asm/rwonce.h under ARM64 and ALPHA to fix build
>      errors
>
>   include/linux/compiler.h    | 6 ++++++
>   samples/bpf/Makefile        | 4 ++++
>   tools/include/linux/types.h | 3 +++
>   3 files changed, 13 insertions(+)
>
```
