Re: [PATCH-for-5.1 v3 1/7] scripts/coccinelle: Use _abort in TypeInfo::instance_init()

2020-04-14 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > The instance_init() calls are not suppose to fail. Add a > Coccinelle script to use _abort instead of ignoring > errors by using a NULL Error*. > > Signed-off-by: Philippe Mathieu-Daudé > --- > v3: Improved script (Vladimir Sementsov-Ogievskiy suggestions) > >

[PATCH-for-5.1 v3 1/7] scripts/coccinelle: Use _abort in TypeInfo::instance_init()

2020-04-13 Thread Philippe Mathieu-Daudé
The instance_init() calls are not suppose to fail. Add a Coccinelle script to use _abort instead of ignoring errors by using a NULL Error*. Signed-off-by: Philippe Mathieu-Daudé --- v3: Improved script (Vladimir Sementsov-Ogievskiy suggestions) .../use-error_abort-in-instance_init.cocci|