From: Matthew Wilcox Date: Sun, 18 Jun 2006 03:37:30 +0000 (-0700) Subject: IB/srp: Use SCAN_WILD_CARD from SCSI headers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1962a4a1e4b3716aa836ebeb5b80c804a7f7c5ba;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git IB/srp: Use SCAN_WILD_CARD from SCSI headers SCAN_WILD_CARD is indeed available from , which is already included. So get rid of private hack. Signed-off-by: Matthew Wilcox Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 9c373139ee6..28d741e7805 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1456,9 +1456,8 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target) target->state = SRP_TARGET_LIVE; - /* XXX: are we supposed to have a definition of SCAN_WILD_CARD ?? */ scsi_scan_target(&target->scsi_host->shost_gendev, - 0, target->scsi_id, ~0, 0); + 0, target->scsi_id, SCAN_WILD_CARD, 0); return 0; }