Re: [PATCH-for-6.2 v3 5/6] tests/unit/test-smp-parse: Constify some pointer/struct

2021-11-11 Thread wangyanan (Y)
On 2021/11/11 18:03, Philippe Mathieu-Daudé wrote: Declare structures const when we don't need to modify them at runtime. Signed-off-by: Philippe Mathieu-Daudé --- tests/unit/test-smp-parse.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Reviewed-by: Yanan Wang Teste

Re: [PATCH-for-6.2 v3 5/6] tests/unit/test-smp-parse: Constify some pointer/struct

2021-11-11 Thread Richard Henderson
On 11/11/21 11:03 AM, Philippe Mathieu-Daudé wrote: Declare structures const when we don't need to modify them at runtime. Signed-off-by: Philippe Mathieu-Daudé --- tests/unit/test-smp-parse.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Reviewed-by: Richard Henderson

[PATCH-for-6.2 v3 5/6] tests/unit/test-smp-parse: Constify some pointer/struct

2021-11-11 Thread Philippe Mathieu-Daudé
Declare structures const when we don't need to modify them at runtime. Signed-off-by: Philippe Mathieu-Daudé --- tests/unit/test-smp-parse.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/test-smp-parse.c b/tests/unit/test-smp-parse.c index 83a5b8ffdc