| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/drivers/video/dummycon.c -- A dummy console driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 33 | 34 | |
|---|
| 34 | 35 | void dummycon_register_output_notifier(struct notifier_block *nb) |
|---|
| 35 | 36 | { |
|---|
| 37 | + WARN_CONSOLE_UNLOCKED(); |
|---|
| 38 | + |
|---|
| 36 | 39 | raw_notifier_chain_register(&dummycon_output_nh, nb); |
|---|
| 37 | 40 | |
|---|
| 38 | 41 | if (dummycon_putc_called) |
|---|
| .. | .. |
|---|
| 41 | 44 | |
|---|
| 42 | 45 | void dummycon_unregister_output_notifier(struct notifier_block *nb) |
|---|
| 43 | 46 | { |
|---|
| 47 | + WARN_CONSOLE_UNLOCKED(); |
|---|
| 48 | + |
|---|
| 44 | 49 | raw_notifier_chain_unregister(&dummycon_output_nh, nb); |
|---|
| 45 | 50 | } |
|---|
| 46 | 51 | |
|---|
| 47 | 52 | static void dummycon_putc(struct vc_data *vc, int c, int ypos, int xpos) |
|---|
| 48 | 53 | { |
|---|
| 54 | + WARN_CONSOLE_UNLOCKED(); |
|---|
| 55 | + |
|---|
| 49 | 56 | dummycon_putc_called = true; |
|---|
| 50 | 57 | raw_notifier_call_chain(&dummycon_output_nh, 0, NULL); |
|---|
| 51 | 58 | } |
|---|