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

2023-08-24 Thread Nathan Lynch
Russell Currey writes: > 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- >qualifiers] > if (test_harness(t->function,

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

2023-08-24 Thread Russell Currey
On Tue, 2023-08-22 at 16:33 -0500, Nathan Lynch via B4 Relay wrote: > From: Nathan Lynch 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

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

2023-08-22 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Add selftests for /dev/papr-vpd, exercising the common expected use cases: * Retrieve all VPD by passing an empty location code. * Retrieve the "system VPD" by passing a location code derived from DT root node properties, as done by the vpdupdate command. The tests also