Repository navigation
refactor(ninit): extract core prelude into ninit_core.c - #52
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Refactor Merge Risk:
|
Code Review Roast 🔥Verdict: No Issues Found | Recommendation: Merge Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything. A 107-line code-motion refactor where the moved block is byte-for-byte identical to the original (minus one lonely trailing space that nobody will miss), the include lands after the system headers, the Makefile only treats 📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are. Files Reviewed (2 files)
Reviewed by free · Input: 29.4K · Output: 3.6K · Cached: 278K |
Summary
ninit_core.c./sbin/initbinary.deps_strdeclaration sogit diff --checkremains clean; no production logic changes.Verification
HEAD:ninit.c; the only difference is the removed trailing space.sh scripts/check-ninit-c-refs.sh— pass.make clean && make && make ninit-test && make ubsan— pass.make lint— pass.make fuzz— 38/38 checks pass, zero ASan/UBSan reports.python3 scripts/test-ci-workflow.py— 9 passed, 0 failed.sudo make test— full 13-suite matrix passed on the final run.readelf -lW ninit/readelf -dW ninit— noINTERP/DYNAMICsegment and no dynamic section.ninitbinary is byte-identical to a clean build of base commit40222e2; both SHA-256 hashes areb4b528658c2f2480ed633c3cf1b118efa51b2eb6a88f7fe1d20e68914e1f5f00.Local test note
test-cgroup-limits.shrerun and the subsequent fullsudo make testrun both passed without any source change. The byte-identical baseline comparison confirms that the extraction did not change the produced binary.Summary by CodeRabbit