summaryrefslogtreecommitdiff
path: root/lib/tables_csum.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-01-09 12:50:04 -0500
committerTom Rini <trini@konsulko.com>2024-01-09 12:50:04 -0500
commit344667db6450de838bd83f0f57e177e6d4744d89 (patch)
treeddaf47cefe8467400e4b8eca348265996d61160f /lib/tables_csum.c
parent0727b10f6bf28b551b1127ea0fb1008abc130bf0 (diff)
parent8aec7031112eba0dbfc8f23f9be11c081ea5cc56 (diff)
Merge tag 'smbios-2024-04-rc1' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request smbios-2024-04-rc1 * make table_compute_checksum() arguments const * remove duplicate function verify_checksum() * enable setting processor family > 0xff * set correct SMBIOS processor family value for RISC-V * avoid importing ofnode.h in smbios.h * provide a UEFI tool to dump SMBIOS table
Diffstat (limited to 'lib/tables_csum.c')
-rw-r--r--lib/tables_csum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tables_csum.c b/lib/tables_csum.c
index 636aa596768..305b1ec31c5 100644
--- a/lib/tables_csum.c
+++ b/lib/tables_csum.c
@@ -5,9 +5,9 @@
#include <linux/types.h>
-u8 table_compute_checksum(void *v, int len)
+u8 table_compute_checksum(const void *v, const int len)
{
- u8 *bytes = v;
+ const u8 *bytes = v;
u8 checksum = 0;
int i;