From 0ca7aab7609032af3f70f7ab660fd52969fa3617 Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Wed, 16 Mar 2022 14:55:15 +0800 Subject: commonlib/bsd: Add struct name "mem_chip_channel" for external access struct mem_chip_info { ... struct { --> If no struct name, can't access the channel structure ... } channel[0]; }; BUG=b:182963902,b:177917361 TEST=Build pass on Kingler Signed-off-by: Xi Chen Change-Id: I8dcd3b52f33f80afb7885ffdcad826d86b54b543 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62850 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commonlib/bsd') diff --git a/src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h b/src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h index 7194f70174..8dc6db3439 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h +++ b/src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h @@ -15,7 +15,7 @@ struct mem_chip_info { uint8_t type; /* enum mem_chip_type */ uint8_t num_channels; uint8_t reserved[6]; - struct { + struct mem_chip_channel { uint64_t density; uint8_t io_width; uint8_t manufacturer_id; -- cgit v1.2.3