From: Catalin Iacob <iacobcatalin@gmail.com>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
"Christophe Leroy (CS GROUP)" <chleroy@kernel.org>,
Rich Felker <dalias@libc.org>,
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
"David S. Miller" <davem@davemloft.net>,
Andreas Larsson <andreas@gaisler.com>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Jens Axboe <axboe@kernel.dk>,
Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org,
sparclinux@vger.kernel.org, linux-scsi@vger.kernel.org,
Catalin Iacob <iacobcatalin@gmail.com>
Subject: [PATCH v3 2/6] scsi: core: Move scsi_device_from_queue() to scsi_priv.h
Date: Thu, 04 Jun 2026 16:20:25 +0300 [thread overview]
Message-ID: <20260604-remove-pktcdvd-references-v3-2-e2f06fb4eef4@gmail.com> (raw)
In-Reply-To: <20260604-remove-pktcdvd-references-v3-0-e2f06fb4eef4@gmail.com>
scsi_device_from_queue() is only referenced in drivers/scsi so move its
prototype to drivers/scsi/scsi_priv.h.
Signed-off-by: Catalin Iacob <iacobcatalin@gmail.com>
---
drivers/scsi/scsi_priv.h | 1 +
include/scsi/scsi_device.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index 7a193cc04e5b..37e5601be2b8 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -102,6 +102,7 @@ void scsi_eh_done(struct scsi_cmnd *scmd);
/* scsi_lib.c */
extern void scsi_device_unbusy(struct scsi_device *sdev, struct scsi_cmnd *cmd);
+extern struct scsi_device *scsi_device_from_queue(struct request_queue *q);
extern void scsi_queue_insert(struct scsi_cmnd *cmd,
enum scsi_qc_status reason);
extern void scsi_io_completion(struct scsi_cmnd *, unsigned int);
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 9c2a7bbe5891..9f716497a959 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -407,7 +407,6 @@ void scsi_attach_vpd(struct scsi_device *sdev);
void scsi_cdl_check(struct scsi_device *sdev);
int scsi_cdl_enable(struct scsi_device *sdev, bool enable);
-extern struct scsi_device *scsi_device_from_queue(struct request_queue *q);
extern int __must_check scsi_device_get(struct scsi_device *);
extern void scsi_device_put(struct scsi_device *);
extern struct scsi_device *scsi_device_lookup(struct Scsi_Host *,
--
2.54.0
next prev parent reply other threads:[~2026-06-04 13:20 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-30 12:31 [PATCH] scsi: core: Remove dead code export of scsi_device_from_queue Catalin Iacob
2026-05-30 12:46 ` John Paul Adrian Glaubitz
2026-06-03 13:27 ` [PATCH v2] scsi: core: Remove remaining references to the pktcdvd driver Catalin Iacob
2026-06-03 15:36 ` John Garry
2026-06-03 16:06 ` Bart Van Assche
2026-06-04 13:20 ` [PATCH v3 0/6] " Catalin Iacob
2026-06-04 13:20 ` [PATCH v3 1/6] scsi: core: Remove remaining reference " Catalin Iacob
2026-06-04 15:51 ` Bart Van Assche
2026-06-05 7:30 ` Geert Uytterhoeven
2026-06-04 13:20 ` Catalin Iacob [this message]
2026-06-04 15:51 ` [PATCH v3 2/6] scsi: core: Move scsi_device_from_queue() to scsi_priv.h Bart Van Assche
2026-06-04 13:20 ` [PATCH v3 3/6] mips: Remove remaining defconfig references to the pktcdvd driver Catalin Iacob
2026-06-04 13:20 ` [PATCH v3 4/6] powerpc: " Catalin Iacob
2026-06-04 13:20 ` [PATCH v3 5/6] sh: Remove remaining defconfig reference " Catalin Iacob
2026-06-04 13:20 ` [PATCH v3 6/6] sparc: Remove remaining defconfig references " Catalin Iacob
2026-06-04 15:50 ` [PATCH v3 0/6] Remove remaining " Bart Van Assche
2026-06-04 20:59 ` Catalin Iacob
2026-06-04 21:17 ` Bart Van Assche
2026-06-08 14:29 ` [PATCH v4 0/5] " Catalin Iacob
2026-06-08 14:29 ` [PATCH v4 1/5] scsi: core: Remove export for scsi_device_from_queue() Catalin Iacob
2026-06-16 1:33 ` Martin K. Petersen
2026-06-08 14:29 ` [PATCH v4 2/5] mips: Remove remaining defconfig references to the pktcdvd driver Catalin Iacob
2026-06-15 10:28 ` Thomas Bogendoerfer
2026-06-08 14:29 ` [PATCH v4 3/5] powerpc: " Catalin Iacob
2026-06-08 14:29 ` [PATCH v4 4/5] sh: Remove remaining defconfig reference " Catalin Iacob
2026-06-08 14:29 ` [PATCH v4 5/5] sparc: Remove remaining defconfig references " Catalin Iacob
2026-06-15 10:52 ` Andreas Larsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260604-remove-pktcdvd-references-v3-2-e2f06fb4eef4@gmail.com \
--to=iacobcatalin@gmail.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=andreas@gaisler.com \
--cc=axboe@kernel.dk \
--cc=chleroy@kernel.org \
--cc=dalias@libc.org \
--cc=davem@davemloft.net \
--cc=glaubitz@physik.fu-berlin.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=martin.petersen@oracle.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=sparclinux@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
--cc=ysato@users.sourceforge.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.