[PATCH RFC 2/2] powerpc/selftests: add test for papr-vpd

Russell Currey ruscur at russell.cc
Thu Aug 24 16:20:16 AEST 2023

On Tue, 2023-08-22 at 16:33 -0500, Nathan Lynch via B4 Relay wrote:
> From: Nathan Lynch <nathanl at linux.ibm.com>

Hi Nathan,

snowpatch has found a compiler error with this patch.

   Error: papr_vpd.c:346:33: error: passing argument 2 of 'test_harness'
   discards 'const' qualifier from pointer target type [-Werror=discarded-
      if (test_harness(t->function, t->description))
   In file included from papr_vpd.c:11:0:
   /linux/tools/testing/selftests/powerpc/include/utils.h:35:5: note:
   expected 'char *' but argument is of type 'const char * const'
    int test_harness(int (test_function)(void), char *name);


- Russell

More information about the Linuxppc-dev mailing list