remove #ifdef __lint hack from dmu.h
The #ifdef __lint in dmu.h is ugly, and it would be nice not to duplicate it if we add other inline functions into header files in ZFS, especially since it is difficult to make any other solution work across all compilation targets. We should switch to disabling the lint flags that are failing instead.
Updated by Dan McDonald almost 3 years ago
For those concerned about apps losing correctness checks, this comes from the OpenZFS PR: https://github.com/openzfs/openzfs/pull/255
gcc will detect unused statics correctly but not get tripped up by inline functions. So it's true that lint won't notice, but as long a we aren't gagging unused functions, it should be fine.
Updated by Electric Monk almost 3 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 4ba5b9616327ef64e8abc737d29b3faabc6ae68c Author: Dan Kimmel <firstname.lastname@example.org> Date: 2016-12-02T20:32:27.000Z 7586 remove #ifdef __lint hack from dmu.h Reviewed by: Matthew Ahrens <email@example.com> Reviewed by: Pavel Zakharov <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>