Message ID | 20221209084130.31805-1-lukas.bulwahn@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp654988wrr; Fri, 9 Dec 2022 00:48:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oxFazyGDUSm+mfFwVGMqijpmzx0Ous/qnP1Jttj/bfvCP950Sjmg2fECVQXFTPAIDPYH1 X-Received: by 2002:a05:6a21:e38b:b0:a9:e84f:8893 with SMTP id cc11-20020a056a21e38b00b000a9e84f8893mr6379688pzc.16.1670575722272; Fri, 09 Dec 2022 00:48:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670575722; cv=none; d=google.com; s=arc-20160816; b=Fqd6+7liITyW3+2EILyk2i5z6SQPKhCDck0mhK+c2WvsTyrU5uisH8u95iv7Ue5aYC v0dzTOj70eIQoloxfL0HieOrH6nKbFClKNg9H94IsYsD5qx+oG778q40m4QAx9fQi9Wh BMtKPa8OR5pvXJLmtQzHFxrOfTEC6YAt6TIwSzYFniBZsr8a15kpXz9fr9HLFdO4ingU mtGjJLSeSxwg3NVUXwCTpHZpQOuLGCjRiRb6d/C9oMr5GjHVMGKC2erwjFehebgLgnF9 GY2qfhHyh4BRYCxLagmHSnO75Guv/ig2Whs6CYLkqOOGzZIGhNRDLe6lVSnOxZ3XZO/i Gbrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=sYgdzP39Mql0zjvJT+T/NeOtFYXDAl47Xpm4LtbcItg=; b=ju1XizQZcmdJS6y8e87KdPy+if8J5JjjpYIOwlPZ4DnkWs0HBcVhA+9UFyTOocIbol sVIydmpJvHjalFdkCZNglDr1+56ILoKe4yvVC+L0hNSN0UAYyacDnMfe0RnF+4qVVw/n VMcdfO7AcyPujBVUv0Dd8yPAF9brYSlfqxWJXQZSSs1fst6iKt/BBKdwPqKU4Z+Pzs/6 2jGwzWTe2OnRYcgOYKlOVralGLmHRzrefXyx20zMikHradjEUqBLcOAl6p8gleYwrKKh ZEQk04qXFKNdZk4vH5110iHW1bTeZi2sYY64nu6avJDi7ld/4RyNxUhqs8cGf0yX9Mqu 1nuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="g/c0JYB7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t26-20020a63955a000000b004789dd14e07si1087902pgn.268.2022.12.09.00.48.29; Fri, 09 Dec 2022 00:48:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="g/c0JYB7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229824AbiLIImW (ORCPT <rfc822;sophiezhao968@gmail.com> + 99 others); Fri, 9 Dec 2022 03:42:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbiLIImS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 9 Dec 2022 03:42:18 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECE474FF83; Fri, 9 Dec 2022 00:42:17 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id b2so9846537eja.7; Fri, 09 Dec 2022 00:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sYgdzP39Mql0zjvJT+T/NeOtFYXDAl47Xpm4LtbcItg=; b=g/c0JYB7XkFF+GPMps2pIh6aCduU1FOs8Az9gcNRxtlJDgVcTjMfFLg5IEiryJoWtK slkV5q+0/knYk50p+xc5idAR2CDh0p1d1G6kKqiqNiA58aybFkaVipw1GxZ2OSq05lAn a3JHUqYXPX0JHDfHstM9qKUCJg4RTtUN6aiqSKizybxO0m+yclacQowBaiU7i27yNX72 voIxUd/54XDaklL89+1PrrT2zYp058WfP9HkrRiO5EEPJw2XPf1D0A/BsbOTK4e3Cywb PJg3oAc+Q6Cb54G2N9ThaUHsbDI3vPWyYHajl8MI743T15yUxYPPVp9B2U0N9qpDmFii ZsCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sYgdzP39Mql0zjvJT+T/NeOtFYXDAl47Xpm4LtbcItg=; b=5c0x+zrNa7CIURUBEU7pFRHcYd8wGcQhT+Mka9u3ohZZYZnGsUsiiBXfDVUW3jYxFB pXilKoK56gzVwTmnoXCUn1AbdhaOwDTp6rI2bmDgohyMf9ieW4NGu2gMhU/ZMcwM+g1k 4GlWNt/2xVyLLUrvRCwN5iAmNxC7q5DRjwtnFS8MpqfnxP8ePmTt+0a9vT1RHcqTxlcz z+5AOqLAHoGXKGWQMSh3UaTQUtkVAmTOTzU8yEXQrUh4tVKMdQeYKhaVtZ9+AQYIFns+ FOr/I9bYlchYmYLNOraQdTHo5ynRf8MmiyQW0aXKAJ/s64qst1d0fj7dyjvNqPEDkhwL ON6A== X-Gm-Message-State: ANoB5pkH1trNjZHFG68o4yxEf+e6436xostu/NHjc9N8+jeOypGEVeLg uRVg8QAGMzOoSboPLnrJMWFk+TxNmlQ= X-Received: by 2002:a17:906:174f:b0:7b9:8678:50a5 with SMTP id d15-20020a170906174f00b007b9867850a5mr3942066eje.32.1670575336246; Fri, 09 Dec 2022 00:42:16 -0800 (PST) Received: from felia.fritz.box (200116b826756500611a29889499a521.dip.versatel-1u1.de. [2001:16b8:2675:6500:611a:2988:9499:a521]) by smtp.gmail.com with ESMTPSA id l2-20020a170906938200b007bf5250b515sm305611ejx.29.2022.12.09.00.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 00:42:15 -0800 (PST) From: Lukas Bulwahn <lukas.bulwahn@gmail.com> To: "James E . J . Bottomley" <jejb@linux.ibm.com>, "Martin K . Petersen" <martin.petersen@oracle.com>, linux-scsi@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn <lukas.bulwahn@gmail.com> Subject: [PATCH] scsi: remove left-over due to now gone pktcdvd shortcomings Date: Fri, 9 Dec 2022 09:41:30 +0100 Message-Id: <20221209084130.31805-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751725608343896343?= X-GMAIL-MSGID: =?utf-8?q?1751725608343896343?= |
Series |
scsi: remove left-over due to now gone pktcdvd shortcomings
|
|
Commit Message
Lukas Bulwahn
Dec. 9, 2022, 8:41 a.m. UTC
Commit f40eb99897af ("pktcdvd: remove driver.") removes the pktcdvd driver,
including the config CDROM_PKTCDVD and CDROM_PKTCDVD_WCACHE, and the uapi
header file.
Remove some further unneeded left-over due to now gone pktcdvd shortcomings
in the scsi library.
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
---
drivers/scsi/scsi_lib.c | 8 --------
1 file changed, 8 deletions(-)
Comments
Hi Lukas,
I love your patch! Yet something to improve:
[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on jejb-scsi/for-next linus/master v6.1-rc8]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Lukas-Bulwahn/scsi-remove-left-over-due-to-now-gone-pktcdvd-shortcomings/20221209-164340
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
patch link: https://lore.kernel.org/r/20221209084130.31805-1-lukas.bulwahn%40gmail.com
patch subject: [PATCH] scsi: remove left-over due to now gone pktcdvd shortcomings
config: x86_64-rhel-8.3-rust
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/f744be58fe1bbc94c5b17ccafbf0be5620f25c16
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Lukas-Bulwahn/scsi-remove-left-over-due-to-now-gone-pktcdvd-shortcomings/20221209-164340
git checkout f744be58fe1bbc94c5b17ccafbf0be5620f25c16
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: "scsi_device_from_queue" [drivers/block/pktcdvd.ko] undefined!
On Fri, Dec 09, 2022 at 09:41:30AM +0100, Lukas Bulwahn wrote: > Commit f40eb99897af ("pktcdvd: remove driver.") removes the pktcdvd driver, > including the config CDROM_PKTCDVD and CDROM_PKTCDVD_WCACHE, and the uapi > header file. > > Remove some further unneeded left-over due to now gone pktcdvd shortcomings > in the scsi library. Right now the removal is only in the block tree, so this will have to wait until that and the scsi tree are merged to mainline. I was actually going to send this patch at that point, but we can just pick up yours now: Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 9ed1ebcb7443..d74536d4cc94 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -2018,14 +2018,6 @@ struct scsi_device *scsi_device_from_queue(struct request_queue *q) return sdev; } -/* - * pktcdvd should have been integrated into the SCSI layers, but for historical - * reasons like the old IDE driver it isn't. This export allows it to safely - * probe if a given device is a SCSI one and only attach to that. - */ -#ifdef CONFIG_CDROM_PKTCDVD_MODULE -EXPORT_SYMBOL_GPL(scsi_device_from_queue); -#endif /** * scsi_block_requests - Utility function used by low-level drivers to prevent