From: Christoph Hellwig Date: Wed, 19 Aug 2020 07:35:33 +0000 (+0200) Subject: raw: deprecate the raw driver X-Git-Tag: v5.10.7~1462^2~182 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4823983538d5fdf38575b3f3ba3a0d10b7f021a;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jens Axboe --- diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 380bf51..ccf5bd5 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); /*