lkml.org 
[lkml]   [2022]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 4/4] KVM: s390: selftests: Use TAP interface in the reset test
From
On 20/04/2022 12.34, Janosch Frank wrote:
> On 4/19/22 20:58, Thomas Huth wrote:
>> Let's standardize the s390x KVM selftest output to the TAP output
>> generated via the kselftests.h interface.
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>
> Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
>
> [...]
>> -    return 0;
>> +
>> +    ksft_finished();
>
> main() is still int so it looks really weird, that we remove the return
> here. After reading the ksft_finished() code I know that we never return
> because we do an exit() but I'd like to have a comment, change to void or
> noreturn tag to make this clearer.

Changing the return type of main() to void causes a compiler warning here,
so I'll go with the comment.

Thomas



\
 
 \ /
  Last update: 2022-04-29 08:22    [W:0.393 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site