Message ID | 20201015020643.432908-39-dgilbert@interlog.com |
---|---|
State | Superseded |
Headers | show |
Series | [v11,01/44] sg: move functions around | expand |
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index da10e6d32f53..b95eb87a3c43 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -645,6 +645,9 @@ sg_write(struct file *filp, const char __user *p, size_t count, loff_t *ppos) __func__); return -EPERM; } + pr_warn_once("Please use %s instead of write(),\n%s\n", + "ioctl(SG_SUBMIT_V3)", + " See: http://sg.danny.cz/sg/sg_v40.html"); res = sg_v3_submit(filp, sfp, h3p, false, NULL); return res < 0 ? res : (int)count; }