# Re: \[PATCH v3 0/2\] fbdev/core: Disable console-lock warnings when fb.lockless\_register\_fb is set

- From: Sergey Senozhatsky \<hidden\>
- Date: 2018-07-20 12:08:04 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2018/07/9142450
- Thread: https://ratatoskr.run/linux-fbdev/2018/07/9142382/t.md

```text
On (07/19/18 12:15), Thomas Zimmermann wrote:
> this is version 3 of the WARN_CONSOLE_UNLOCKED patch set. The
> macro prints a warning if the console's critical sections are
> entered without holding the console lock. This patch set allows
> to disable the warnings while debugging the console.
> 
> In the original approach, WARN_CONSOLE_UNLOCKED was disabled by
> setting ignore_console_lock_warning of type bool. As suggested by
> Petr Mladek, the new implementation is based on atomic_t and allows
> multiple threads to manipulate the warning state concurrently.
> 
> With version 3, the patch set now includes the patch for introducing
> ignore_console_lock_warning. This patch superseds all previous patches
> of the same purpose.
> 
> Best regards
> Thomas
> 
> v3:
> 	- implement ignore_console_lock_warning with atomic_t
> v2:
> 	- restore ignore_console_lock_warning if lock_fb_info() fails

Reviewed-by: Sergey Senozhatsky <redacted>

	-ss
```
