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

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


On 2017-09-04 05:57 AM, 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: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list