From: Cao jin Date: Wed, 27 Jan 2021 08:49:11 +0000 (+0800) Subject: Documentation/x86/boot.rst: Correct the example of SETUP_INDIRECT X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bcadb65fd64889cc3cf1ca4b8025d91b59ec1b02;p=linux.git Documentation/x86/boot.rst: Correct the example of SETUP_INDIRECT struct setup_data.len is the length of data field. In case of SETUP_INDIRECT, it should be sizeof(setup_indirect). Signed-off-by: Cao jin Reviewed-by: Daniel Kiper Link: https://lore.kernel.org/r/20210127084911.63438-1-jojing64@gmail.com Signed-off-by: Jonathan Corbet --- diff --git a/Documentation/x86/boot.rst b/Documentation/x86/boot.rst index abb9fc164657a..fc844913decef 100644 --- a/Documentation/x86/boot.rst +++ b/Documentation/x86/boot.rst @@ -851,7 +851,7 @@ Protocol: 2.09+ struct setup_data { __u64 next = 0 or ; __u32 type = SETUP_INDIRECT; - __u32 len = sizeof(setup_data); + __u32 len = sizeof(setup_indirect); __u8 data[sizeof(setup_indirect)] = struct setup_indirect { __u32 type = SETUP_INDIRECT | SETUP_E820_EXT; __u32 reserved = 0;