TGViewer
RKSU Updates RKSU Updates @rsukrnlsu · 4.42K subscribers
Post #1177 5.92K
KernelSU_v1.0.0-798-g70a8d9fb_32472-release.apk7.2 MB
Manager (Spoofed)
Branch: main
#ci_2472

ksud, uapi: fix issue with older compiler

The current use of 'static const __u32' for UAPI constants causes
build failures on older C compilers (e.g., older GCC/Clang toolchains)
with the error: "element is not a constant initializer".

While 'static const' works for Rust's bindgen and modern compiler,
older compiler may treats these as read-only variables rather
than true literal constants.

This patch introduces a macro for compatibility.

Test: kernel 4.4, 4.9 with gcc 4.9
Result: build success

Signed-off-by: rsuntk <rissu.ntk@gmail.com>

Commit
Workflow run
  • ❤ 2
  • 🔥 1
More from @rsukrnlsu
  1. May 29, 2026Manager Branch: main #ci_2527 manager: Fix module json url parsing (#3450) Commit Workflow…
  2. May 29, 2026Manager (Spoofed) Branch: main #ci_2527 manager: Fix module json url parsing (#3450) Commi…
  3. Apr 26, 2026Manager (Spoofed) Branch: main #ci_2519 manager: refactor markdown support Commit Workflow…
  4. Apr 26, 2026Manager Branch: main #ci_2519 manager: refactor markdown support Commit Workflow run
  5. Apr 20, 2026Manager Branch: main #ci_2516 kernel: include hashtable.h Signed-off-by: ris <rissu.ntk@gm…
  6. Apr 20, 2026Manager (Spoofed) Branch: main #ci_2516 kernel: include hashtable.h Signed-off-by: ris <ri…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →