Message ID | 20200823221248.15678-39-dgilbert@interlog.com |
---|---|
State | Superseded |
Headers | show |
Series | sg: add v4 interface | expand |
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 449ea4cc0ee3..f9aa707765d7 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; }