1 comment:
File src/soc/intel/cannonlake/cnl_memcfg_init.c:
Patch Set #13, Line 57: static size_t last_set_spd_data_len;
Or you're worried about a potential compiler problem?
The variable is static, so it will have a definite memory address. If the compiler puts it into a zero-init section, then yes, it will be zero. But if it's in an uninitialized section of memory, the contents are undefined. It is safer to explicitly initialize it. If you initialize to 0 as part of the decl, it won't even result in any extra code in the executable.
To view, visit change 32513. To unsubscribe, or for help writing mail filters, visit settings.