diff options
| author | Colin McAllister <[email protected]> | 2024-03-12 07:57:29 -0500 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2024-04-02 09:09:58 +0200 |
| commit | 7a0cfb87672f727b089844dc635bef01d512816f (patch) | |
| tree | d77b2c35b73c806f05dd9bb5e2d53024842added /include/linux/compiler_types.h | |
| parent | 109b9044bccf99ab9e6dea4d63a33ebfdeed6134 (diff) | |
android_ab: Fix ANDROID_AB_BACKUP_OFFSET
Currently, setting CONFIG_AB_BACKUP_OFFSET in a target's defconfig will
not actually enable the #if protected code in android_ab.c. This is
because "CONFIG_" should have been prepended to the config macro, or the
macros defined in kconfig.h could have been used.
The code included by ANDROID_AB_BACKUP_OFFSET has been refactored to no
longer be conditionally compiled by preprocessor conditionals and
instead use C conditionals. This better aligns with the Linux kernel
style guide.
Fixes: 3430f24bc6 ("android_ab: Try backup booloader_message")
Signed-off-by: Colin McAllister <[email protected]>
Cc: Joshua Watt <[email protected]>
Cc: Simon Glass <[email protected]>
Signed-off-by: Colin McAllister <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Reviewed-by: Igor Opaniuk <[email protected]>
Reviewed-by: Sam Protsenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include/linux/compiler_types.h')
0 files changed, 0 insertions, 0 deletions
