Message ID | 20221024032058.14077-37-dgilbert@interlog.com |
---|---|
State | New |
Headers | show |
Series | [v25,01/44] sg: move functions around | expand |
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index ef83f2097c73..c9eb9e842f9e 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -644,6 +644,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: https://sg.danny.cz/sg/sg_v40.html"); res = sg_v3_submit(filp, sfp, h3p, false, NULL); return res < 0 ? res : (int)count; }