Revert "scsi: core: Use 32-bit hostnum in scsi_host_lookup()"
This reverts commit356da2d5c0which is commit62ec209209upstream. It breaks the Android KABI and isn't needed for android systems at this point in time. If it is needed in the future, it can be brought back in an abi-safe way. Bug: 161946584 Change-Id: I2d96eecc78d7d7848d465c8759ebcf81b5276c0b Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -522,7 +522,7 @@ EXPORT_SYMBOL(scsi_host_alloc);
|
||||
static int __scsi_host_match(struct device *dev, const void *data)
|
||||
{
|
||||
struct Scsi_Host *p;
|
||||
const unsigned int *hostnum = data;
|
||||
const unsigned short *hostnum = data;
|
||||
|
||||
p = class_to_shost(dev);
|
||||
return p->host_no == *hostnum;
|
||||
@@ -539,7 +539,7 @@ static int __scsi_host_match(struct device *dev, const void *data)
|
||||
* that scsi_host_get() took. The put_device() below dropped
|
||||
* the reference from class_find_device().
|
||||
**/
|
||||
struct Scsi_Host *scsi_host_lookup(unsigned int hostnum)
|
||||
struct Scsi_Host *scsi_host_lookup(unsigned short hostnum)
|
||||
{
|
||||
struct device *cdev;
|
||||
struct Scsi_Host *shost = NULL;
|
||||
|
||||
@@ -753,7 +753,7 @@ extern void scsi_remove_host(struct Scsi_Host *);
|
||||
extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *);
|
||||
extern int scsi_host_busy(struct Scsi_Host *shost);
|
||||
extern void scsi_host_put(struct Scsi_Host *t);
|
||||
extern struct Scsi_Host *scsi_host_lookup(unsigned int hostnum);
|
||||
extern struct Scsi_Host *scsi_host_lookup(unsigned short);
|
||||
extern const char *scsi_host_state_name(enum scsi_host_state);
|
||||
extern void scsi_host_complete_all_commands(struct Scsi_Host *shost,
|
||||
int status);
|
||||
|
||||
Reference in New Issue
Block a user