ACK: [PATCH] bios: multiproc: constify array bus_types

ivanhu ivan.hu at canonical.com
Wed Sep 6 08:20:20 UTC 2017



On 09/04/2017 08:57 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> array bus_types is static and read-only, so make it also const
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/bios/multiproc/mpcheck.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bios/multiproc/mpcheck.c b/src/bios/multiproc/mpcheck.c
> index 24941f15..9927e4f5 100644
> --- a/src/bios/multiproc/mpcheck.c
> +++ b/src/bios/multiproc/mpcheck.c
> @@ -147,7 +147,7 @@ static int mpcheck_test_cpu_entries(fwts_framework *fw)
>   	return FWTS_OK;
>   }
>   
> -static char *bus_types[] = {
> +static const char *const bus_types[] = {
>   	"CBUS",
>   	"CBUSII",
>   	"EISA",
> 

Acked-by: Ivan Hu <ivan.hu at canonical.com>



More information about the fwts-devel mailing list