driver: zio: Kbuild: Don't treat truncation warnings as errors
Linux being an object orientd code, reuses the code wherever possible.
Thus, there are cases where two completely independent and different
structures might have a member which has same structure template.
For example, in objects.c, in function "__ti_create",
- trig->head.name, and
- cset->zdev->head.name
are of same type, but belong to different structures. And when the code
tries to copy/ write one into another, we get truncation warning.
And in this case we cannot even increase the size of only one, because
both the members are created from same structure.
Thus, one good solution is to not to treat those warnings as errors.
Signed-off-by: Vaibhav Gupta <vaibhav.gupta@cern.ch>
Showing
Please
register
or
sign in
to comment