Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1927714imm; Tue, 22 May 2018 11:36:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoC8O97m07MMTneWyhwfvc9of6XKbnA10qkufISFgUHXYXfJ4GbyNW76vyu83ZXlm7wB866 X-Received: by 2002:a17:902:8307:: with SMTP id bd7-v6mr25731104plb.234.1527014208424; Tue, 22 May 2018 11:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527014208; cv=none; d=google.com; s=arc-20160816; b=qDDjPNP3fssQyzWL9MiqwrTIyZJUA5pcU+tFSZfMtesWnAkvgL2cW2PGY75Vr5k2Lg 2bTREjuRtyAZqjETc80viv2qdazikvqv1H/0vs6IvWPuQOw6pFuRh0BVxp562Oe54Qyq 5u7GgtdvFKy1G2qTfp3jYprPeS9P/U8EZ+Q2t9DtBZRQRznyE1zXTmytNsi3V/LXcG3U XYdLddRaSnOP0N9iOLgMfWo0PjPRdUNQc9hb2BPXroZYAeAZ36pmnKZ84xbqYmDQ0wX6 GjYw1ybloDKSVciCVeVJFznk+PBposGAMtmgoFcGgfa5Mcjtd7426BJDYLvULTE91OHC x9vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=cYyjiE9owcXLTir/wWq9MNdQvkrl7SWq2sMHzQUYJ0c=; b=UCPpFIs4EBxUSJRHCNinMETXArHlpRcGM2HZwpbRczmFEKvUrgux8gdE7CIMWT9bvy Q4A7/bQcvz9fpjDxG05b4H49oj7od3iYI2w9DWQaESFjMhAYx0J2NMjSO6f9YDXUf+g0 bYPs04pyxfJCztDvfbamQudLu9ZtYT0y6hLskodOo8zR3DjbwOZXKk7PuHd7cJOf+6UD CyqBTRWTCp4Sjm/0nOHpObGFZOkYsgwS+F91YabvjST99XngK/hRDubCqvScAfZmmMgr H6t32cry8geFToyo47IeDTop0MdhU/cyhkATK2CNLu4Qdrc8nQ3OU+VkQWT0QTrQqjGx YtmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Jxn9XYVk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6-v6si17259405pfi.147.2018.05.22.11.36.33; Tue, 22 May 2018 11:36:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Jxn9XYVk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751454AbeEVSgY (ORCPT + 99 others); Tue, 22 May 2018 14:36:24 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33444 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751277AbeEVSgW (ORCPT ); Tue, 22 May 2018 14:36:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cYyjiE9owcXLTir/wWq9MNdQvkrl7SWq2sMHzQUYJ0c=; b=Jxn9XYVkawBz8XIHzGyjKkMoq vpBIXqO4e4I+82ib+YgVcsDy52bQ4nqH+HvWSxBZutpxI2citvEBU5uFRXFGRfIJfUI2YkIhsKusX R3lWPKRwned7pcOjzC8lQn3NpaVtsGwyGqtGhF0JIwyq4CXdz2EGqAilHQVXR+4kaycRnO6AzitHC 1b5njm+GbnT5yS715NcCZyv8dBvGqlSxS2Dhn2XZRdPnjnw5dj4SjI6H/B6mmM7QmJYp7+X1tBi3Q 4GKL84z3+rnD8Tqkfk75WbkOgRiysDJTiclf+EHR1CRbuNQA4XO/D1mF7kVFGiKJ9hhyOVUDgIhBa VpKQwLlqw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLC8r-0002H5-Od; Tue, 22 May 2018 18:36:13 +0000 Date: Tue, 22 May 2018 11:36:13 -0700 From: Christoph Hellwig To: Kees Cook Cc: Jens Axboe , "Martin K. Petersen" , James Bottomley , Tejun Heo , Borislav Petkov , "David S. Miller" , "Manoj N. Kumar" , "Matthew R. Ochs" , Uma Krishnan , linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI Message-ID: <20180522183613.GA3784@infradead.org> References: <20180522181512.39316-1-keescook@chromium.org> <20180522181512.39316-4-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180522181512.39316-4-keescook@chromium.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 11:15:09AM -0700, Kees Cook wrote: > Both SCSI and ATAPI share the sense header. In preparation for using the > struct scsi_sense_hdr more widely, move this into a separate header and > move the helper function to scsi_ioctl.c which is linked with CONFIG_IDE > by way of CONFIG_BLK_SCSI_REQUEST. Please keep the code where it is and just depend on SCSI on the legacy ide driver. No need to do gymnastics just for a legacy case.