ACK: [PATCH] dmi: dmicheck: constify array dmi_used_by_kernel_table

Alex Hung alex.hung at canonical.com
Tue Sep 5 05:30:50 UTC 2017


On 2017-09-04 06:00 AM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> The array dmi_used_by_kernel_table is static and read-only so also
> make it const
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/dmi/dmicheck/dmicheck.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
> index 20f28b17..61c6b816 100644
> --- a/src/dmi/dmicheck/dmicheck.c
> +++ b/src/dmi/dmicheck/dmicheck.c
> @@ -264,7 +264,7 @@ static const fwts_dmi_version dmi_versions[] = {
>    *  we care that work,
>    *	see drivers/firmware/dmi_scan.c, dmi_decode()
>    */
> -static fwts_dmi_used_by_kernel dmi_used_by_kernel_table[] = {
> +static const fwts_dmi_used_by_kernel dmi_used_by_kernel_table[] = {
>   	/* Type 0 BIOS Information fields */
>   	{ 0, 4 },
>   	{ 0, 5 },
> 
Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list