Page MenuHomeFreeBSD

[vale] Fix valectl to compile on a 32-bit platform
ClosedPublic

Authored by adrian on Dec 29 2020, 6:26 PM.
Tags
None
Referenced Files
F161546511: D27814.id.diff
Sat, Jul 4, 6:02 PM
Unknown Object (File)
Fri, Jul 3, 5:10 AM
Unknown Object (File)
Sun, Jun 21, 9:50 PM
Unknown Object (File)
Sun, Jun 14, 1:34 PM
Unknown Object (File)
Fri, Jun 12, 4:00 PM
Unknown Object (File)
May 13 2026, 12:40 AM
Unknown Object (File)
May 8 2026, 7:12 PM
Unknown Object (File)
Apr 16 2026, 7:22 PM
Subscribers

Details

Summary

This shows up when compiling valectl on a 32 bit platform like i386 and mips32.
gcc-6.4 complains about this.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35751
Build 32640: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Dec 29 2020, 8:58 PM

ryan - I'll push this later today, but i figured you would want to see it as well :-)

LGTM. The same construct is seen in other assignments to pointers from nr_body.

I recommend putting the name of the warning you're solving in the commit log somewhere (-Wint-to-pointer-cast, right?).

The i386 kernel has a lot more of these due to PAE, but I haven't dug in to those.