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

- From: Tiezhu Yang \<yangtiezhu@loongson.cn\>
- Date: 2021-01-13 10:58:35 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/01/6233183
- Thread: https://ratatoskr.run/netdev/2021/01/6233183/t.md

```text
There exists many build errors and warnings when make M=samples/bpf,
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(+)

-- 
2.1.0

```
