Files
rockchip-kernel/include/linux
Jason A. Donenfeld a4107d34f9 random: do not export add_vmfork_randomness() unless needed
Since add_vmfork_randomness() is only called from vmgenid.o, we can
guard it in CONFIG_VMGENID, similarly to how we do with
add_disk_randomness() and CONFIG_BLOCK. If we ever have multiple things
calling into add_vmfork_randomness(), we can add another shared Kconfig
symbol for that, but for now, this is good enough. Even though
add_vmfork_randomess() is a pretty small function, removing it means
that there are only calls to crng_reseed(false) and none to
crng_reseed(true), which means the compiler can constant propagate the
false, removing branches from crng_reseed() and its descendants.

Additionally, we don't even need the symbol to be exported if
CONFIG_VMGENID is not a module, so conditionalize that too.

Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-03-12 18:00:56 -07:00
..
2022-01-22 08:33:34 +02:00
2021-10-07 16:51:57 +02:00
2022-01-15 08:47:31 -08:00
2021-10-18 14:43:23 -06:00
2022-01-09 10:36:51 -07:00
2021-11-12 10:19:09 -08:00
2021-11-17 10:36:15 -05:00
2021-12-10 17:10:55 -08:00
2021-12-10 12:51:28 +01:00
2021-12-01 00:06:43 +01:00
2022-01-15 08:47:31 -08:00
2022-01-20 08:52:54 +02:00
2021-10-18 07:49:38 -04:00
2022-01-04 13:15:33 -05:00
2021-12-17 09:06:15 +01:00
2021-12-20 09:03:05 +01:00
2021-10-05 06:54:16 -05:00
2021-10-18 07:49:39 -04:00
2021-09-30 12:46:44 -06:00
2021-12-16 22:22:20 +01:00
2022-02-09 09:24:40 -05:00
2022-01-12 10:14:09 -06:00
2021-11-16 19:07:53 -08:00
2021-09-27 09:27:29 -04:00
2021-09-27 17:00:21 +02:00
2021-10-14 13:29:18 +02:00
2022-01-22 08:33:37 +02:00
2022-01-08 12:43:57 -06:00
2021-11-18 09:36:39 +01:00
2021-10-07 16:51:57 +02:00
2022-01-24 14:45:02 +01:00
2021-11-30 17:25:20 -08:00
2021-10-18 07:49:39 -04:00
2021-10-18 17:20:50 +02:00
2022-01-22 08:33:37 +02:00
2022-01-22 08:33:38 +02:00
2021-11-16 13:10:34 +00:00
2021-10-26 14:58:45 +01:00
2021-11-03 11:41:25 -07:00
2021-11-25 18:35:23 +01:00
2021-10-12 11:41:39 -03:00
2021-12-30 12:13:04 +01:00
2022-01-14 18:50:52 -05:00
2021-12-09 10:49:56 -08:00
2022-01-08 00:28:41 -05:00
2021-10-19 23:44:30 +08:00