Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/block: remove redundant 'default n' from Kconfig-s

'default n' is the default value for any bool or tristate Kconfig
setting so there is no need to write it explicitly.

Also since commit f467c5640c29 ("kconfig: only write '# CONFIG_FOO
is not set' for visible symbols") the Kconfig behavior is the same
regardless of 'default n' being present or not:

...
One side effect of (and the main motivation for) this change is making
the following two definitions behave exactly the same:

config FOO
bool

config FOO
bool
default n

With this change, neither of these will generate a
'# CONFIG_FOO is not set' line (assuming FOO isn't selected/implied).
That might make it clearer to people that a bare 'default n' is
redundant.
...

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Bartlomiej Zolnierkiewicz and committed by
Jens Axboe
486c6fba 1306ad4e

-4
-1
drivers/block/Kconfig
··· 461 461 select LIBCRC32C 462 462 select CRYPTO_AES 463 463 select CRYPTO 464 - default n 465 464 help 466 465 Say Y here if you want include the Rados block device, which stripes 467 466 a block device over objects stored in the Ceph distributed object
-1
drivers/block/drbd/Kconfig
··· 11 11 depends on PROC_FS && INET 12 12 select LRU_CACHE 13 13 select LIBCRC32C 14 - default n 15 14 help 16 15 17 16 NOTE: In order to authenticate connections you have to select
-2
drivers/block/zram/Kconfig
··· 3 3 tristate "Compressed RAM block device support" 4 4 depends on BLOCK && SYSFS && ZSMALLOC && CRYPTO 5 5 select CRYPTO_LZO 6 - default n 7 6 help 8 7 Creates virtual block devices called /dev/zramX (X = 0, 1, ...). 9 8 Pages written to these disks are compressed and stored in memory ··· 17 18 config ZRAM_WRITEBACK 18 19 bool "Write back incompressible page to backing device" 19 20 depends on ZRAM 20 - default n 21 21 help 22 22 With incompressible page, there is no memory saving to keep it 23 23 in memory. Instead, write it out to backing device.