Message ID | 20200302033249.4515-38-dgilbert@interlog.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <SRS0=R5J5=4T=vger.kernel.org=linux-scsi-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1BA2F930 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 2 Mar 2020 03:33:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 05C1D24699 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 2 Mar 2020 03:33:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbgCBDdm (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Sun, 1 Mar 2020 22:33:42 -0500 Received: from smtp.infotech.no ([82.134.31.41]:60676 "EHLO smtp.infotech.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbgCBDdl (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Sun, 1 Mar 2020 22:33:41 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id F168120414E; Mon, 2 Mar 2020 04:33:40 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nDwCsuPM-NB6; Mon, 2 Mar 2020 04:33:39 +0100 (CET) Received: from xtwo70.bingwo.ca (host-23-251-188-50.dyn.295.ca [23.251.188.50]) by smtp.infotech.no (Postfix) with ESMTPA id 2F899204271; Mon, 2 Mar 2020 04:33:34 +0100 (CET) From: Douglas Gilbert <dgilbert@interlog.com> To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, jejb@linux.vnet.ibm.com, hare@suse.de Subject: [PATCH v8 37/38] sg: warn v3 write system call users Date: Sun, 1 Mar 2020 22:32:48 -0500 Message-Id: <20200302033249.4515-38-dgilbert@interlog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200302033249.4515-1-dgilbert@interlog.com> References: <20200302033249.4515-1-dgilbert@interlog.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
sg: add v4 interface
|
expand
|
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 0d835ae88c35..d899c2f18acf 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -645,6 +645,10 @@ sg_write(struct file *filp, const char __user *p, size_t count, loff_t *ppos) __func__); return -EPERM; } + WARN_ONCE(true, "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; }