// SPDX-License-Identifier: GPL-2.0 #include <linux/bsg.h> #include <scsi/scsi.h> #include <scsi/scsi_ioctl.h> #include <scsi/scsi_cmnd.h> #include <scsi/scsi_device.h> #include <scsi/sg.h> #include "scsi_priv.h" #define uptr64(val) … static int scsi_bsg_sg_io_fn(struct request_queue *q, struct sg_io_v4 *hdr, bool open_for_write, unsigned int timeout) { … } struct bsg_device *scsi_bsg_register_queue(struct scsi_device *sdev) { … }