]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bloblist: Drop spare value from bloblist record
authorSimon Glass <sjg@chromium.org>
Wed, 27 Dec 2023 21:07:04 +0000 (13:07 -0800)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Dec 2023 14:21:02 +0000 (07:21 -0700)
Drop spare value from bloblist record header.

For now it is still present in the header, with an underscore, so that
tests continue to pass.

Signed-off-by: Simon Glass <sjg@chromium.org>
Co-developed-by: Raymond Mao <raymond.mao@linaro.org>
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
common/bloblist.c
include/bloblist.h

index 168993e0a7b7e242a4960b5b7fcd96c38d81d123..88e2a0f5c06c1c258c4bc1e4fc8d8ec6c4471f03 100644 (file)
@@ -165,7 +165,6 @@ static int bloblist_addrec(uint tag, int size, int align_log2,
        rec->tag = tag;
        rec->hdr_size = data_start - hdr->alloced;
        rec->size = size;
-       rec->spare = 0;
 
        /* Zero the record data */
        memset((void *)rec + rec_hdr_size(rec), '\0', rec->size);
index 7eff709ec8d68fbe4f4d09bf8ffc87ff973da2f7..68f97395b78dc57451ff3e454fd68e6d21745254 100644 (file)
@@ -205,13 +205,12 @@ struct bloblist_hdr {
  *     record's data starts at this offset from the start of the record
  * @size: Size of record in bytes, excluding the header size. This does not
  *     need to be aligned (e.g. 3 is OK).
- * @spare: Spare space for other things
  */
 struct bloblist_rec {
        u32 tag;
        u32 hdr_size;
        u32 size;
-       u32 spare;
+       u32 _spare;
 };
 
 /**