Johan Hovold
fe2f4fe139
params: use type alignment for kernel parameters
...
Specify type alignment for kernel parameters instead of sizeof(void *).
The alignment attribute is used to prevent gcc from increasing the
alignment of objects with static extent as an optimisation, something
which would mess up the __param array stride.
Using __alignof__(struct kernel_param) rather than sizeof(void *) is
preferred since it better indicates why it is there and doesn't break
should the type size or alignment change.
Note that on m68k the alignment of struct kernel_param is actually two
and that adding a 1- or 2-byte field to the 20-byte struct would cause a
breakage with the current 4-byte alignment.
Link: https://lore.kernel.org/lkml/20201103175711.10731-1-johan@kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org >
Signed-off-by: Jessica Yu <jeyu@kernel.org >
2020-11-25 15:45:03 +01:00
..
2020-10-21 11:22:08 -07:00
2020-10-17 11:18:18 -07:00
2020-10-25 14:51:49 -07:00
2020-10-24 10:33:08 -07:00
2020-10-17 11:18:18 -07:00
2020-10-25 14:51:49 -07:00
2020-10-24 10:39:22 -07:00
2020-10-24 10:33:08 -07:00
2020-10-22 09:44:27 -07:00
2020-10-16 15:02:21 -07:00
2020-10-25 14:51:49 -07:00
2020-10-16 11:11:20 -07:00
2020-10-16 11:11:19 -07:00
2020-10-22 09:59:21 -07:00
2020-10-16 11:11:19 -07:00
2020-10-25 14:51:49 -07:00
2020-10-25 14:51:49 -07:00
2020-10-25 14:51:49 -07:00
2020-10-16 11:11:21 -07:00
2020-10-25 14:51:49 -07:00
2020-10-16 12:21:15 -07:00
2020-10-19 14:28:30 -07:00
2020-10-20 10:41:07 +02:00
2020-10-20 10:41:07 +02:00
2020-10-25 14:51:49 -07:00
2020-10-25 14:51:49 -07:00
2020-10-16 11:11:22 -07:00
2020-10-22 01:28:54 +02:00
2020-10-25 14:51:49 -07:00
2020-10-24 12:26:05 -07:00
2020-10-22 22:44:35 +02:00
2020-10-16 11:11:20 -07:00
2020-10-25 14:51:49 -07:00
2020-10-25 14:51:49 -07:00
2020-10-25 14:51:49 -07:00
2020-10-17 09:25:47 -06:00
2020-10-20 07:10:14 -06:00
2020-10-16 11:11:18 -07:00
2020-10-21 23:22:37 -04:00
2020-10-16 11:11:19 -07:00
2020-10-25 14:51:49 -07:00
2020-10-23 03:42:13 -04:00
2020-10-25 14:51:49 -07:00
2020-10-16 11:11:20 -07:00
2020-10-25 14:51:49 -07:00
2020-10-18 09:27:09 -07:00
2020-10-16 11:11:18 -07:00
2020-10-16 11:11:19 -07:00
2020-10-18 09:27:09 -07:00
2020-10-16 11:11:19 -07:00
2020-11-25 15:44:46 +01:00
2020-11-25 15:45:03 +01:00
2020-10-21 18:24:08 -07:00
2020-10-21 10:31:20 -04:00
2020-10-16 11:11:18 -07:00
2020-10-16 11:11:19 -07:00
2020-10-25 14:51:49 -07:00
2020-10-25 14:51:49 -07:00
2020-10-17 11:18:18 -07:00
2020-10-16 11:11:15 -07:00
2020-10-16 11:11:16 -07:00
2020-10-16 11:11:16 -07:00
2020-10-22 13:00:44 -07:00
2020-10-25 14:51:49 -07:00
2020-10-18 09:27:10 -07:00
2020-10-16 17:53:22 +02:00
2020-10-20 19:45:14 +02:00
2020-10-24 20:21:57 +02:00
2020-10-25 14:51:49 -07:00
2020-10-24 10:39:22 -07:00
2020-10-25 14:51:49 -07:00
2020-10-16 11:11:22 -07:00
2020-10-25 14:51:49 -07:00
2020-10-25 11:39:02 -07:00
2020-10-25 14:51:49 -07:00
2020-10-22 14:15:51 -06:00
2020-10-25 14:51:49 -07:00
2020-10-17 15:05:30 -06:00
2020-10-25 14:51:49 -07:00
2020-10-17 15:04:36 -06:00
2020-10-25 14:51:49 -07:00
2020-10-24 10:57:57 -07:00
2020-10-23 11:00:57 -07:00
2020-10-18 09:27:10 -07:00
2020-10-16 11:11:19 -07:00
2020-10-20 14:39:37 -07:00