On Fri, Dec 23, 2016 at 12:21:48PM +0900, Masahiro Yamada wrote: > Leave the way of zero-out to the compiler's decision; the compiler > may know a more optimized way than calling memset(). But no, it doesn't, it will leave "blank" areas in the structure with bad data in it, which is why we do memset. See the tree-wide fixups we made about a year ago for this very issue. Are you sure none of these structures get copied to userspace? > It may end up with memset() for big structures like this after all, > but the code will be cleaner at least. Please leave it as-is, unless you see a measured speedup. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html