search for: dmi_header

Displaying 5 results from an estimated 5 matches for "dmi_header".

Did you mean: _m_header
2009 Apr 10
2
[RESEND][PATCH] gpllib: dmi: set default memory speed to "Unknown"
...rsions. - Sebastian Index: syslinux-3.74-20-g3b80c26/com32/gpllib/dmi/dmi.c =================================================================== --- syslinux-3.74-20-g3b80c26.orig/com32/gpllib/dmi/dmi.c +++ syslinux-3.74-20-g3b80c26/com32/gpllib/dmi/dmi.c @@ -496,6 +496,7 @@ void dmi_decode(struct dmi_header *h, ui if (h->length < 0x15) break; dmi->memory_count++; s_memory *mem = &dmi->memory[dmi->memory_count-1]; + sprintf(mem->speed, "%s", "Unknown"); dmi->memory[dmi->memory_count-1].filled=true;...
2012 Nov 19
0
[PATCH 222/493] char: remove use of __devinit
..._devinit ipmi_pnp_probe(struct pnp_dev *dev, +static int ipmi_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) { struct acpi_device *acpi_dev; @@ -2258,7 +2258,7 @@ struct dmi_ipmi_data { u8 slave_addr; }; -static int __devinit decode_dmi(const struct dmi_header *dm, +static int decode_dmi(const struct dmi_header *dm, struct dmi_ipmi_data *dmi) { const u8 *data = (const u8 *)dm; @@ -2320,7 +2320,7 @@ static int __devinit decode_dmi(const struct dmi_header *dm, return 0; } -static void __devinit try_init_dmi(struct dmi_ipmi_data *ipmi_data) +st...
2012 Nov 19
0
[PATCH 222/493] char: remove use of __devinit
..._devinit ipmi_pnp_probe(struct pnp_dev *dev, +static int ipmi_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) { struct acpi_device *acpi_dev; @@ -2258,7 +2258,7 @@ struct dmi_ipmi_data { u8 slave_addr; }; -static int __devinit decode_dmi(const struct dmi_header *dm, +static int decode_dmi(const struct dmi_header *dm, struct dmi_ipmi_data *dmi) { const u8 *data = (const u8 *)dm; @@ -2320,7 +2320,7 @@ static int __devinit decode_dmi(const struct dmi_header *dm, return 0; } -static void __devinit try_init_dmi(struct dmi_ipmi_data *ipmi_data) +st...
2015 Feb 10
0
[PATCH 3/6] gpllib: fix sizeof(char *) misuse
...) { if (code == 0xFFFF) - strlcpy(array, "Unknown", sizeof array); + strlcpy(array, "Unknown", len); else - snprintf(array, sizeof array, "%u min", code); + snprintf(array, len, "%u min", code); } /* @@ -947,13 +947,17 @@ void dmi_decode(struct dmi_header *h, uint16_t ver, s_dmi * dmi) dmi_system_reset_boot_option((data[0x04] >> 3) & 0x3), sizeof dmi->system.system_reset.boot_option_on_limit); dmi_system_reset_count(WORD(data + 0x05), - dmi->system.system_reset.reset_count); + dmi->system.system_reset.res...
2015 Feb 10
6
[PATCH 0/6] fix some compiler warnings
These patches fix a few compiler warnings. Tested on top of commit aee0dc5565711ef5be7c30fb5fc1c5f3f98db09f Jonathan Boeing (6): Use z width specifier when printing size_t variable pxe: fix truncation warning gpllib: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse com32/gpllib/dmi/dmi.c | 24 +++---