Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,49 +32,49 @@ index 16fe05a46c..d348bbb458 100644
--- a/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c
+++ b/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c
@@ -227,8 +227,8 @@ STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_a72_l1i = {
CacheTypeInstruction, //instruction cache
CacheAssociativityOther, //three way
// SMBIOS 3.1.0 fields
- 48, //48k I-cache max
- 48, //48k installed
+ {48,0},//48k I-cache max
+ {48,0},//48k installed
};

STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_a72_l1d = {
CacheTypeInstruction, //instruction cache
CacheAssociativityOther, //three way
// SMBIOS 3.1.0 fields
- 48, //48k I-cache max
- 48, //48k installed
+ {48,0},//48k I-cache max
+ {48,0},//48k installed
};
STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_a72_l1d = {
@@ -248,8 +248,8 @@ STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_a72_l1d = {
CacheTypeData, //data cache
CacheAssociativity2Way, //two way
// SMBIOS 3.1.0 fields
- 32, //32k D-cache max
- 32, //32k installed
+ {32,0},//32k D-cache max
+ {32,0},//32k installed
};

STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_a72_l2 = {
CacheTypeData, //data cache
CacheAssociativity2Way, //two way
// SMBIOS 3.1.0 fields
- 32, //32k D-cache max
- 32, //32k installed
+ {32,0},//32k D-cache max
+ {32,0},//32k installed
};
STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_a72_l2 = {
@@ -269,8 +269,8 @@ STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_a72_l2 = {
CacheTypeUnified, //instruction cache
CacheAssociativity16Way, //16 way associative
// SMBIOS 3.1.0 fields
- 512, //512k D-cache max
- 512, //512k installed
+ {512,0},//512k D-cache max
+ {512,0},//512k installed
};

STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_l3 = {
CacheTypeUnified, //instruction cache
CacheAssociativity16Way, //16 way associative
// SMBIOS 3.1.0 fields
- 512, //512k D-cache max
- 512, //512k installed
+ {512,0},//512k D-cache max
+ {512,0},//512k installed
};
STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_l3 = {
@@ -290,8 +290,8 @@ STATIC SMBIOS_TABLE_TYPE7 mArmadaDefaultType7_l3 = {
CacheTypeUnified, //instruction cache
CacheAssociativity8Way, //8 way associative
// SMBIOS 3.1.0 fields
- 1024, //1M cache max
- 1024, //1M installed
+ {1024,0},//1M cache max
+ {1024,0},//1M installed
};

STATIC CONST CHAR8 *mArmadaDefaultType7Strings[] = {
CacheTypeUnified, //instruction cache
CacheAssociativity8Way, //8 way associative
// SMBIOS 3.1.0 fields
- 1024, //1M cache max
- 1024, //1M installed
+ {1024,0},//1M cache max
+ {1024,0},//1M installed
};
STATIC CONST CHAR8 *mArmadaDefaultType7Strings[] = {
--
2.52.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From fc8820cfaa8b5e17328f731df93911f6ab92443b Mon Sep 17 00:00:00 2001
From: Stefan Berger <stefanb@linux.ibm.com>
Date: Fri, 2 Jan 2026 11:37:31 -0500
Subject: [PATCH] Fix a compilation error in TPMLIB_GetPlaintext

Fix a compilation error that newer gcc versions may complain about:

tpm_library.c: In function 'TPMLIB_GetPlaintext':
tpm_library.c:441:11: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
441 | start = strstr(stream, starttag);
| ^
At top level:
cc1: note: unrecognized command-line option '-Wno-self-assign' may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>

Upstream: https://github.com/stefanberger/libtpms/commit/fc8820cfaa8b5e17328f731df93911f6ab92443b

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/tpm_library.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tpm_library.c b/src/tpm_library.c
index f48f4fd3..7b2ea687 100644
--- a/src/tpm_library.c
+++ b/src/tpm_library.c
@@ -435,7 +435,7 @@ static unsigned char *TPMLIB_GetPlaintext(const char *stream,
const char *endtag,
size_t *length)
{
- char *start, *end;
+ const char *start, *end;
unsigned char *plaintext = NULL;

start = strstr(stream, starttag);
--
2.47.3

3 changes: 2 additions & 1 deletion package/libtpms/libtpms.hash
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sha256 ebc24f3191d90f6cf0b4d4200cd876db4bd224b3c565708bbea0a82ee275e0fb libtpms-0.10.1.tar.gz
# Locally computed
sha256 edac03680f8a4a1c5c1d609a10e3f41e1a129e38ff5158f0c8deaedc719fb127 libtpms-0.10.2.tar.gz
sha256 82f1e6bae374bb6a9d4f4596767fd33e499718d560de140fd9f3d402cc5e41fb LICENSE
2 changes: 1 addition & 1 deletion package/libtpms/libtpms.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
################################################################################

LIBTPMS_VERSION = 0.10.1
LIBTPMS_VERSION = 0.10.2
LIBTPMS_SITE = $(call github,stefanberger,libtpms,v$(LIBTPMS_VERSION))
LIBTPMS_LICENSE = BSD-4-Clause
LIBTPMS_LICENSE_FILES = LICENSE
Expand Down