diff options
author | Christoph Hellwig <hch@lst.de> | 2020-08-19 10:35:33 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-02 01:49:26 +0300 |
commit | c4823983538d5fdf38575b3f3ba3a0d10b7f021a (patch) | |
tree | 222a97aabc331ea78a565d74c38b288697e97f30 /drivers/char/raw.c | |
parent | 3310eebafe6f9a872c1f757b3d822dafae9c0cd8 (diff) | |
download | linux-c4823983538d5fdf38575b3f3ba3a0d10b7f021a.tar.xz |
raw: deprecate the raw driver
The raw driver has been replaced by O_DIRECT support on the block device
in 2002. Deprecate it to prepare for removal in a few kernel releases.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/char/raw.c')
-rw-r--r-- | drivers/char/raw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 380bf518338e..ccf5bd528642 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c @@ -63,6 +63,11 @@ static int raw_open(struct inode *inode, struct file *filp) return 0; } + pr_warn_ratelimited( + "process %s (pid %d) is using the deprecated raw device\n" + "support will be removed in Linux 5.14.\n", + current->comm, current->pid); + mutex_lock(&raw_mutex); /* |