|Summary:||vm_map.h defines "min_offset" and "max_offset" which causes namespace pollution.|
|Component:||kern||Assignee:||freebsd-bugs (Nobody) <bugs>|
|Severity:||Affects Some People|
Description tjj5036 2015-01-12 17:48:55 UTC
In vm_map.h, there is a struct called vm_map that has two members named min_offset and max_offset respectively. There are macros that define these two to header.start and header.end respectively. Unfortunately, if you include vm_map.h anywhere, it causes issues with anything also declared to be min_/max_ offset. ZFS actually undefines them. This fix would remove the defines, making it so you can include the header safely without fear of unexpected bugs. Environment: FreeBSD 11.0-CURRENT
Comment 1 Gavin Atkinson 2015-01-12 18:49:00 UTC
Hi, Due to an issue with the backend FreeBSD Bugzilla database, your original PR and any updates to it since have been lost. I've recreated the original PR as best as I can, however any attachments and updates you submitted to the PR have been lost. Please could you resubmit them? Thanks, and apologies.