include/asm-generic/bug.h defines BUG_ON(condition) as
do { if (unlikely(condition)) BUG(); } while (0).
So BUG_ON already provides unlikely() to the condition so there is no point
in having a unlikely(unlikely(condition)) - drop the excess unlikely()
Signed-off-by: Nicholas Mc Guire
---
Found
The redundant init_completion() here seems to be a cut&past error as
struct scsi_qla_host only has 4 completion elements to initialize, thus
the duplicate init_completion(disable_acb_comp) is simply removed.
Signed-off-by: Nicholas Mc Guire
---
Found by experimental coccinelle sc
Hi !
in drivers/scsi/dc395x.c:srb_done()
3387 if (srb->total_xfer_length
3388 && srb->total_xfer_length >= cmd->underflow)
3389 cmd->result =
3390 MK_RES_LNX(DRIVER_SENSE, DID_OK,
3391
scanning for trivial bug-patters with coccinelle spatches returned:
./drivers/scsi/pmcraid.c:1603
WARNING: condition with no effect (if branch == else)
introduced in 'commit c20c426732a5 ("[SCSI] pmcraid: MSI-X support and other
changes")'
drivers/scsi/pmcraid.c - line numbers from 4.1-
4.1-rc5 (localversion-next is -next-20150527)
Signed-off-by: Nicholas Mc Guire
---
As there is no documentation of the intended timeout it might be wrong
to convert it with msecs_to_jiffies as this can reduces the actual
jiffies value by at least a factor of 10 - so someone that knows this
driver
-off-by: Nicholas Mc Guire
---
Originally posted as http://lkml.org/lkml/2014/12/23/355
Patch was only compile-tested with x86_64_defconfig + CONFIG_SCSI_LOWLEVEL=y,
CONFIG_SCSI_QLA_ISCSI=m
Patch is against 4.0-rc3 (localversion-next is -next-20150316
drivers/scsi/qla4xxx/ql4_os.c |1 -
1 file
wait_for_completion_timeout returns unsigned long not int. As other
instances of wait_for_completion_timeout in fc_fcp.c use ticks_left
of appropriate type, this name is used here as well.
Signed-off-by: Nicholas Mc Guire
---
Patch was only compile tested with x86_64_defconfig + SCSI_LOWLEVEL=y
Hi !
while reviewing some type missmatch of wait_for_completion_timeout in
drivers/scsi/aic94xx/aic94xx_tmf.c:asd_clear_nexus() a question regarding
the struct completion use came up:
(line numbers are from 4.0-rc2 linux-next)
351 tascb->completion = &completion;
352
353 ASD_DPRINTK(
return type of wait_for_completion_timeout is unsigned long not int. As
leftover is used exclusively for wait_for_completion_timeout its type is
simply changed to unsigned long.
Signed-off-by: Nicholas Mc Guire
---
This was only compile tested for x86_64_defconfig +
CONFIG_SCSI_LOWLEVEL=y
return type of wait_for_completion_timeout is unsigned long not int. An
appropriately named variable of type unsigned long is added and the
assignments fixed up.
Signed-off-by: Nicholas Mc Guire
---
The was only complie tested with x86_64_defconfig + SCSI_LOWLEVEL
CONFIG_SCSI_FC_ATTRS=m
return type of wait_for_completion_timeout is unsigned long not int. An
appropriately named variable of type unsigned long is added and the
assignments fixed up.
Signed-off-by: Nicholas Mc Guire
---
The was only compile tested with x86_64_defconfig + SCSI_LOWLEVEL
CONFIG_SCSI_FC_ATTRS=m
return type of wait_for_completion_timeout is unsigned long not int. rc
is appropriately renamed, changed to type unsigned long and the
assignments fixed up.
Signed-off-by: Nicholas Mc Guire
---
The was only compile tested with x86_64_defconfig + SCSI_LOWLEVEL
CONFIG_SCSI_FC_ATTRS=m
wait_for_completion_timeout() returns unsigned long not int. This assigns
the return value to an appropriately typed variable.
Signed-off-by: Nicholas Mc Guire
---
As a suitable typed and named variable "timeout" is available and there is
no conflict in this case no new variable
Instances of var * HZ / 1000 are replaced by msecs_to_jiffies(var).
In addition some timing constants that assumed HZ 100 were adjusted
to HZ independent settings based on review comments from Michael Schmitz
and review of the original drivers in 1.0.31 and
2.2.16.
Signed-off-by: Nicholas Mc
.
Signed-off-by: Nicholas Mc Guire
---
v2: the original patch was not taking care of all the dependencies
as reported by Finn Thain - this
version now uses the suggested config to check the patch.
v3: g_NCR5380.c changes fixed up based on feedback from Michael Schmitz
as these settings
On Mon, 02 Feb 2015, Michael Schmitz wrote:
> Hi Nicholas,
>
> >> The values for USLEEP_* are taken to be in units jiffies, according to
> >> comments in NCR5380.c. Replacing them by the msecs_to_jiffies conversion
> >> is in fact wrong.
> >>
> >> Please drop the changes to g_NCR5380.c for that r
On Sun, 01 Feb 2015, Michael Schmitz wrote:
> Finn, Nicholas,
>
>> On Sat, 31 Jan 2015, Nicholas Mc Guire wrote:
>>
>>> This is only an API consolidation to make things more readable.
>>>
>>> Instances of var * HZ / 1000 are replaced by msecs_to_
This is only an API consolidation to make things more readable.
Instances of var * HZ / 1000 are replaced by msecs_to_jiffies(var).
Signed-off-by: Nicholas Mc Guire
v2: the original patch was not taking care of all the dependencies
as reported by Finn Thain - this
version now uses
This is only an API consolidation to make things more readable
Signed-off-by: Nicholas Mc Guire
---
Converting milliseconds to jiffies by "val * HZ / 1000" is technically
ok but msecs_to_jiffies(val) is the cleaner solution and handles all
corner cases correctly. This is a minor A
linux-next 3.19.0-rc1 -next-20141226
Acked-by: Joe Lawrence
Signed-off-by: Nicholas Mc Guire
---
drivers/scsi/mpt2sas/mpt2sas_config.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/mpt2sas/mpt2sas_config.c
b/drivers/scsi/mpt2sas/mpt2sas_config.c
index
linux-next 3.19.0-rc1 -next-20141226
Acked-by: Joe Lawrence
Signed-off-by: Nicholas Mc Guire
---
drivers/scsi/mpt3sas/mpt3sas_config.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/mpt3sas/mpt3sas_config.c
b/drivers/scsi/mpt3sas/mpt3sas_config.c
index
-next-20141226
Signed-off-by: Nicholas Mc Guire
---
drivers/scsi/mpt2sas/mpt2sas_config.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/mpt2sas/mpt2sas_config.c
b/drivers/scsi/mpt2sas/mpt2sas_config.c
index c72a2ff..02dc2d8 100644
--- a/drivers/scsi/mpt2sas
-rc1 -next-20141226
Signed-off-by: Nicholas Mc Guire
---
drivers/scsi/mpt3sas/mpt3sas_config.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/mpt3sas/mpt3sas_config.c
b/drivers/scsi/mpt3sas/mpt3sas_config.c
index 4472c2a..04ff21b 100644
--- a/drivers/scsi
ile tested with i386_defconfig + CONFIG_ISA=y
SCSI_LOWLEVEL=y, CONFIG_SCSI_AHA152X=y
Signed-off-by: Nicholas Mc Guire
---
drivers/scsi/aha152x.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
create mode 100644 fixups
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
ind
: Nicholas Mc Guire
---
drivers/scsi/mpt2sas/mpt2sas_config.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/mpt2sas/mpt2sas_config.c
b/drivers/scsi/mpt2sas/mpt2sas_config.c
index c72a2ff..02dc2d8 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_config.c
+++ b/drivers
a valid e-mail address.
Signed-off-by: Nicholas Mc Guire
---
drivers/scsi/qla4xxx/ql4_os.c |1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 6d25879..0c1da76 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/
viewed and compile tested
Signed-off-by: Nicholas Mc Guire
---
drivers/macintosh/ams/ams-pmu.c |4 ++--
drivers/misc/sgi-gru/grukservices.c |2 +-
drivers/scsi/aha152x.c|2 +-
drivers/usb/gadget/udc/fsl_qe_udc.c |2 +-
drivers/usb/gadget/udc/fsl_udc_core.c |
27 matches
Mail list logo