diff --git a/bpf/loader/NetBpfLoad.cpp b/bpf/loader/NetBpfLoad.cpp index a2595f907e..9038ebb325 100644 --- a/bpf/loader/NetBpfLoad.cpp +++ b/bpf/loader/NetBpfLoad.cpp @@ -88,8 +88,10 @@ using std::vector; namespace android { namespace bpf { +#if !defined(__riscv) static_assert(__ANDROID_API__ == 30, "NetBpfLoad must be compiled for 30/R"); static_assert(!minSupportedKernelVer, "NetBpfLoad must not assume min kver"); +#endif // Returns the build type string (from ro.build.type). const std::string& getBuildType() {