Re: [PATCH 05/10] drivers/char: Support compiling out /dev/zero

From: Pavel Machek
Date: Wed Jan 28 2015 - 20:54:15 EST


On Fri 2015-01-23 12:37:11, Tom Zanussi wrote:
> Some embedded systems with tightly controlled userspace have no use
> for /dev/zero, and could benefit from the size savings gained by
> omitting it. Add a new EMBEDDED config option to disable it.
>
> bloat-o-meter (based on tinyconfig):
>
> add/remove: 0/3 grow/shrink: 0/1 up/down: 0/-391 (-391)
> function old new delta
> chr_dev_init 162 147 -15
> mmap_zero 16 - -16
> zero_fops 116 - -116
> zero_bdi 244 - -244
>
> Signed-off-by: Tom Zanussi <tom.zanussi@xxxxxxxxxxxxxxx>

I'm not sure that 400 bytes are worth additional Kconfig noise. .. and
pretty much everyone needs /dev/zero...

Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/