Messages in this thread | | | Date | Mon, 25 Feb 2008 22:02:42 -0600 | From | Paul Jackson <> | Subject | Re: [patch 1/6] mempolicy: convert MPOL constants to enum |
| |
David wrote: > I don't suspect that a kernel developer is going > to make such an egregious error.
Eh ... each bit of added clarity to the code reduces errors.
Looking around the kernel, it really seems to me to be a common coding to explicitly spell out enum values when for some reason they actually matter.
Like most coding mechanisms, nothing guarantees anything.
It just nicely represents one particular detail, that the values of these MPOL_* terms are not arbitrary.
-- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <pj@sgi.com> 1.940.382.4214
| |