On Mon, 05 Mar 2018, Daniel Vetter <[email protected]> wrote:
> On Fri, Mar 02, 2018 at 05:58:00PM +0200, Jani Nikula wrote:
>> checkpatch already covers "WARNING:AVOID_BUG: Avoid crashing the kernel
>> - try using WARN_ON & recovery code rather than BUG() or BUG_ON()"
>
> Nice. Reviewed-by: Daniel Vetter <[email protected]> on both patches.

Thanks, pushed both.

BR,
Jani.

>> 
>> Remove the redundant warning in dim.
>> 
>> Signed-off-by: Jani Nikula <[email protected]>
>
>> ---
>>  dim | 5 -----
>>  1 file changed, 5 deletions(-)
>> 
>> diff --git a/dim b/dim
>> index 35eb16104222..ea9be9ace78c 100755
>> --- a/dim
>> +++ b/dim
>> @@ -1366,11 +1366,6 @@ function checkpatch_commit
>>              rv=1
>>      fi
>>  
>> -    if bug_lines=$($cmd | grep -m 1 -B 1 '^\+.*\WBUG' | grep -c 
>> '^[+-].*\WBUG') && [[ "$bug_lines" = "1" ]]; then
>> -            echoerr "WARNING: New BUG macro added"
>> -            rv=1
>> -    fi
>> -
>>      return $rv
>>  }
>>  
>> -- 
>> 2.11.0
>> 
>> _______________________________________________
>> dim-tools mailing list
>> [email protected]
>> https://lists.freedesktop.org/mailman/listinfo/dim-tools

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dim-tools mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dim-tools

Reply via email to