Re: [PATCH v2 0/5] libsas: Some logging tidy-up

2018-11-15 Thread Joe Perches
On Thu, 2018-11-15 at 18:20 +0800, John Garry wrote: > This patchset presents some logging tidy-up, namely removing the printk > wrappers and using pr_XXX() instead. > > In addition, some log levels are revised, as previous levels (generally > debug) were too low. Seems sensible, thanks.

Re: [PATCH 4/5] scsi: libsas: Drop SAS_DPRINTK() and revise logs levels

2018-11-14 Thread Joe Perches
On Wed, 2018-11-14 at 15:12 +, John Garry wrote: > On 14/11/2018 14:53, Joe Perches wrote: > > On Wed, 2018-11-14 at 21:47 +0800, John Garry wrote: > > > Like sas_printk() did previously, SAS_DPRINTK() offers little value now > > > that libsas logs already have the

Re: [PATCH 4/5] scsi: libsas: Drop SAS_DPRINTK() and revise logs levels

2018-11-14 Thread Joe Perches
On Wed, 2018-11-14 at 21:47 +0800, John Garry wrote: > Like sas_printk() did previously, SAS_DPRINTK() offers little value now > that libsas logs already have the "sas" prefix through pr_fmt(fmt). So it > can be dropped. > > However, after reviewing some logs in libsas, it is noticed that debug >

Re: [PATCH] scsi: libsas: Remove pcidev reference

2018-11-13 Thread Joe Perches
On Tue, 2018-11-13 at 13:38 +, John Garry wrote: > On 12/11/2018 19:52, Joe Perches wrote: > > On Mon, 2018-11-12 at 19:31 +, John Garry wrote: > > > On 12/11/2018 18:58, Joe Perches wrote: > > > > > > +#define pr_fmt(fmt) "sas: " fmt []

Re: [PATCH] scsi: libsas: Remove pcidev reference

2018-11-12 Thread Joe Perches
On Mon, 2018-11-12 at 19:31 +, John Garry wrote: > On 12/11/2018 18:58, Joe Perches wrote: > > > > +#define pr_fmt(fmt) "sas: " fmt > > > > > > > > Some other subsystem may try to include this header, and gets its > > > > message p

Re: [PATCH] scsi: libsas: Remove pcidev reference

2018-11-12 Thread Joe Perches
On Mon, 2018-11-12 at 18:48 +, John Garry wrote: > On 12/11/2018 18:30, Joe Perches wrote: [] > > diff --git a/drivers/scsi/libsas/sas_internal.h > > b/drivers/scsi/libsas/sas_internal.h [] > > @@ -32,7 +32,10 @@ > > #include > > #include > > &

Re: [PATCH] scsi: libsas: Remove pcidev reference

2018-11-12 Thread Joe Perches
On Mon, 2018-11-12 at 17:55 +, John Garry wrote: > On 12/11/2018 17:49, John Garry wrote: > > On 12/11/2018 17:32, Joe Perches wrote: > > > On Tue, 2018-11-13 at 01:28 +0800, John Garry wrote: > > > > Not all host drivers are PCI drivers - like hisi_sas, whi

Re: [PATCH] scsi: libsas: Remove pcidev reference

2018-11-12 Thread Joe Perches
On Tue, 2018-11-13 at 01:28 +0800, John Garry wrote: > Not all host drivers are PCI drivers - like hisi_sas, which supports a > platform driver - so remove reference to "pcidev". > > The debug level is also downgraded to KERN_ERR for the same message. [] > diff --git a/drivers/scsi/libsas/sas_disc

Re: [PATCH] scsi: aic7xxx: Fix unintended sign extension issue

2018-10-25 Thread Joe Perches
On Thu, 2018-10-25 at 16:13 +0100, Colin King wrote: > From: Colin Ian King > > In the expression "ahc_inb(ahc, port+3) << 24", the initial value is a > u8, but is promoted to a signed int, then sign-extended to uint64_t. If > the value read from the port has the upper bit set then the sign > ex

Re: [PATCH 0/7] Neaten logging uses

2018-10-11 Thread Joe Perches
On Thu, 2018-10-11 at 19:25 -0400, Martin K. Petersen wrote: > Joe, > > > > Applied to 4.20/scsi-queue, thanks! > > > > Is this branch also applied to Stephen Rothwell's -next? > > Yes. Via what tree? It doesn't seem directly pulled.

Re: [PATCH 0/7] Neaten logging uses

2018-10-11 Thread Joe Perches
On Wed, 2018-10-10 at 21:54 -0400, Martin K. Petersen wrote: > Joe, > > > Several defects exist in the logging uses > > > > o Missing KERN_ > > o Unnecessary KERN_ uses with panic > > o Mismatched MPT3SAS_FMT and %s: with name and __func__ > > > > Correct these defects and perhaps add some clari

Re: [PATCH 0/7] Neaten logging uses

2018-10-01 Thread Joe Perches
On Mon, 2018-09-17 at 08:01 -0700, Joe Perches wrote: > Several defects exist in the logging uses > > o Missing KERN_ > o Unnecessary KERN_ uses with panic > o Mismatched MPT3SAS_FMT and %s: with name and __func__ > > Correct these defects and perhaps add some clarity to th

Re: [PATCH] scsi: arcmsr: clean up clang warning on extraneous parentheses

2018-09-30 Thread Joe Perches
On Mon, 2018-10-01 at 00:03 +0100, Colin King wrote: > From: Colin Ian King > > There are extraneous parantheses that are causing clang to produce a > warning so remove these. > > Clean up 3 clang warnings: > equality comparison with extraneous parentheses [-Wparentheses-equality] [] > diff --gi

Bad MAINTAINERS pattern in section 'CXLFLASH (IBM Coherent Accelerator Processor Interface CAPI Flash) SCSI DRIVER'

2018-09-28 Thread Joe Perches
Please fix this defect appropriately. linux-next MAINTAINERS section: 3964CXLFLASH (IBM Coherent Accelerator Processor Interface CAPI Flash) SCSI DRIVER 3965M: Manoj N. Kumar 3966M: Matthew R. Ochs 3967M: Uma Krishnan 3968

[PATCH 7/7] mpt3sas: Remove unused macro MPT3SAS_FMT

2018-09-17 Thread Joe Perches
All the uses have been removed, delete the macro. Signed-off-by: Joe Perches --- drivers/scsi/mpt3sas/mpt3sas_base.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index 941a4faf20be..8f1d6b071b39 100644 --- a

[PATCH 6/7] mpt3sas: Convert logging uses with MPT3SAS_FMT without logging levels

2018-09-17 Thread Joe Perches
Convert these uses to ioc_ where appropriate. Signed-off-by: Joe Perches --- drivers/scsi/mpt3sas/mpt3sas_base.c | 41 +++- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 12 +- drivers/scsi/mpt3sas/mpt3sas_transport.c | 6 ++--- 3 files changed, 28

[PATCH 3/7] mpt3sas: Convert mlsleading uses of pr_ with MPT3SAS_FMT

2018-09-17 Thread Joe Perches
These have misordered uses of __func__ and ioc->name that could mismatch MPT3SAS_FMT and "%s: ". Convert them to ioc_. Signed-off-by: Joe Perches --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 50 +++- drivers/scsi/mpt3sas/mpt3sas_transport.c | 18 ++

[PATCH 1/7] mpt3sas: Add ioc_ logging macros

2018-09-17 Thread Joe Perches
These macros can help identify specific logging uses and eventually perhaps reduce object sizes. Signed-off-by: Joe Perches --- drivers/scsi/mpt3sas/mpt3sas_base.h | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas

[PATCH 0/7] Neaten logging uses

2018-09-17 Thread Joe Perches
Several defects exist in the logging uses o Missing KERN_ o Unnecessary KERN_ uses with panic o Mismatched MPT3SAS_FMT and %s: with name and __func__ Correct these defects and perhaps add some clarity to the logging. Joe Perches (7): mpt3sas: Add ioc_ logging macros mpt3sas: Convert uses of

[PATCH 4/7] mpt3sas: Convert logging uses with MPT3SAS_FMT and reply_q_name to %s:

2018-09-17 Thread Joe Perches
Convert the existing 2 uses to make the format and arguments matching more obvious. Miscellanea: o Move the word "enabled" into the format to trivially reduce object size o Remove unnecessary parentheses Signed-off-by: Joe Perches --- drivers/scsi/mpt3sas/mpt3sas_base.c | 10 +++

[PATCH 5/7] mpt3sas: Remove KERN_WARNING from panic uses

2018-09-17 Thread Joe Perches
Remove the logging level as panic calls stop the machine and should always be emitted regardless of requested logging level. These existing panic uses are perhaps inappropriate. Miscellanea: o Coalesce formats and convert MPT3SAS_FMT to "%s: " to improve clarity Signed-off-by: J

Re: [PATCH] scsi: mpt3sas: make sysfs error messages ratelimited

2018-09-14 Thread Joe Perches
On Fri, 2018-09-07 at 11:39 +0100, Colin King wrote: > From: Colin Ian King > > It is possible to heavily spam the kernel logs with messages by > excessive reading of the mpt3sas sysfs files. Make the error messages > ratelimited to reduce the spamming effect. [] > diff --git a/drivers/scsi/mpt3

[trivial PATCH V2] treewide: Align function definition open/close braces

2018-03-21 Thread Joe Perches
Some functions definitions have either the initial open brace and/or the closing brace outside of column 1. Move those braces to column 1. This allows various function analyzers like gnu complexity to work properly for these modified functions. Signed-off-by: Joe Perches Acked-by: Andy

Re: [-next PATCH 2/4] treewide: Use DEVICE_ATTR_RW

2017-12-20 Thread Joe Perches
On Wed, 2017-12-20 at 10:59 +0100, Greg Kroah-Hartman wrote: > > > Why you didn't send that patch to the sysfs maintainer is a bit odd... :) > > > > So here's an opportunity for you: > > > > The sysfs maintainer hasn't added include/linux/sysfs.h to > > the list of maintained files... > > > > D

Re: [-next PATCH 2/4] treewide: Use DEVICE_ATTR_RW

2017-12-20 Thread Joe Perches
On Wed, 2017-12-20 at 10:32 +0100, Greg Kroah-Hartman wrote: > On Wed, Dec 20, 2017 at 01:24:44AM -0800, Joe Perches wrote: > > On Wed, 2017-12-20 at 10:34 +0200, Jarkko Nikula wrote: > > > On Tue, Dec 19, 2017 at 10:15:07AM -0800, Joe Perches wrote: > > > &g

Re: [-next PATCH 2/4] treewide: Use DEVICE_ATTR_RW

2017-12-20 Thread Joe Perches
On Wed, 2017-12-20 at 10:34 +0200, Jarkko Nikula wrote: > On Tue, Dec 19, 2017 at 10:15:07AM -0800, Joe Perches wrote: > > Convert DEVICE_ATTR uses to DEVICE_ATTR_RW where possible. [] > > diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c [] > > @@ -854,7 +85

Re: [-next PATCH 4/4] treewide: Use DEVICE_ATTR_WO

2017-12-19 Thread Joe Perches
On Tue, 2017-12-19 at 19:44 +0100, Borislav Petkov wrote: > On Tue, Dec 19, 2017 at 10:15:09AM -0800, Joe Perches wrote: > > Convert DEVICE_ATTR uses to DEVICE_ATTR_WO where possible. > > > > Done with perl script: > > > > $ git grep -w --name-only DEVICE_ATTR

[-next PATCH 0/4] sysfs and DEVICE_ATTR_

2017-12-19 Thread Joe Perches
Joe Perches (4): sysfs.h: Use octal permissions treewide: Use DEVICE_ATTR_RW treewide: Use DEVICE_ATTR_RO treewide: Use DEVICE_ATTR_WO arch/arm/mach-pxa/sharpsl_pm.c | 4 +- arch/s390/kernel/smp.c | 2 +- arch/s390/kernel/topology.c

[-next PATCH 4/4] treewide: Use DEVICE_ATTR_WO

2017-12-19 Thread Joe Perches
TR_WO(\1)/g; print;}' Signed-off-by: Joe Perches --- arch/s390/kernel/smp.c | 2 +- arch/x86/kernel/cpu/microcode/core.c | 2 +- drivers/input/touchscreen/elants_i2c.c | 2 +- drivers/net/ethernet/ibm/ibmvnic.c | 2 +- drivers/net/wimax/i2400m/sysfs.c | 3 +-- d

[-next PATCH 2/4] treewide: Use DEVICE_ATTR_RW

2017-12-19 Thread Joe Perches
_show\s*,\s*\1_store\s*\)/DEVICE_ATTR_RW(\1)/g; print;}' Signed-off-by: Joe Perches --- arch/s390/kernel/topology.c | 3 +-- arch/tile/kernel/sysfs.c | 2 +- drivers/gpu/drm/i915/i915_sysfs.c| 6 ++--- drivers/platform/x86/compal-laptop.c | 18 +--

[-next PATCH 3/4] treewide: Use DEVICE_ATTR_RO

2017-12-19 Thread Joe Perches
)/g; print;}' Signed-off-by: Joe Perches --- arch/arm/mach-pxa/sharpsl_pm.c | 4 ++-- arch/sh/drivers/push-switch.c| 2 +- arch/tile/kernel/sysfs.c | 10 +- drivers/acpi/device_sysfs.c

[trivial PATCH] treewide: Align function definition open/close braces

2017-12-17 Thread Joe Perches
line from xfs_agf_verify Signed-off-by: Joe Perches --- git diff -w shows no difference other than the above 'Miscellanea' (this is against -next, but it applies against Linus' tree with a couple offsets) arch/x86/include/asm/atomic64_32.h | 2 +

Re: [PATCH 01/10] arch:powerpc: return -ENOMEM on failed allocation

2017-09-13 Thread Joe Perches
On Wed, 2017-09-13 at 13:02 +0530, Allen Pais wrote: > Signed-off-by: Allen Pais I think the changelog for this series of conversions should show that you've validated the change by inspecting the return call chain at each modified line. Also, it seems you've cc'd the same mailing lists for all

Re: [PATCH] scsi: remove memset before memcpy

2017-08-29 Thread Joe Perches
On Wed, 2017-08-30 at 00:19 +0530, Himanshu Jha wrote: > drivers/scsi/megaraid/megaraid_sas_fusion.c I don't know if you did this with coccinelle. If so, it would be good to show the tool and script in the commit message. If not, the input script is pretty simple. $ cat memset_before_memcpy.coc

Re: [PATCH] lpfc: nvmet_fc: fix format string

2017-05-20 Thread Joe Perches
On Sat, 2017-05-20 at 21:10 +0200, Arnd Bergmann wrote: > On Sat, May 20, 2017 at 12:28 PM, Joe Perches wrote: > > On Fri, 2017-05-19 at 10:04 +0200, Arnd Bergmann wrote: > > > The lpfc_nvmeio_data() tracing helper always takes a format string and > > > three additiona

Re: [PATCH 1/2] scsi: nsp32: add __printf attribute to logging functions

2017-05-20 Thread Joe Perches
On Sat, 2017-05-20 at 13:16 +0200, Nicolas Iooss wrote: > nsp32_message() and nsp32_dmessage() use printf format strings in order > to format a message. Adding __printf attributes helps to detect errors > in such format strings at build time, like: > > drivers/scsi/nsp32.c:3314:23: error: form

Re: [PATCH] lpfc: nvmet_fc: fix format string

2017-05-20 Thread Joe Perches
On Fri, 2017-05-19 at 10:04 +0200, Arnd Bergmann wrote: > The lpfc_nvmeio_data() tracing helper always takes a format string and > three additional arguments. No it doesn't. It takes a format and arguments. I don't disagree with the patch, just the characterization of the lpfc_mvmeio_data call i

[PATCH] scsi: fas216: Add __printf validation, fix fallout

2017-04-30 Thread Joe Perches
__printf makes the compiler check format and arguments. Fix fallout. Miscellanea: o Convert formats to const char * o Use vsprintf extension %pV instead of a static buffer. o Add newline to logging and remove now unnecessary printk("\n") o Use pr_cont where appropriate Signed-o

Re: Checking error messages for failed memory allocations

2017-04-26 Thread Joe Perches
On Wed, 2017-04-26 at 20:50 +0200, SF Markus Elfring wrote: > > Basically most everything that has a gfp_t argument does a > > dump_stack() on OOM unless __GFP_NOWARN is specified by that gfp_t. > > How do you think about to improve any programming interface documentation > around such a function

Re: [PATCH 2/3] scsi: ufs: Delete an error message for a failed memory allocation in ufshcd_memory_alloc()

2017-04-26 Thread Joe Perches
On Wed, 2017-04-26 at 10:57 -0700, Subhash Jadavani wrote: > PS: ufshcd_memory_alloc() also does some DMA coherent memory allocation > (via dmam_alloc_coherent() APIs) and tries to print out the message on > allocation failure. Although i don't know "out of memory" messages will > be printed out

Re: [PATCH] scsi: qedf: Fix defective logging format and argument mismatches

2017-03-06 Thread Joe Perches
On Mon, 2017-03-06 at 10:17 -0800, Joe Perches wrote: > On Tue, 2017-03-07 at 02:03 +0800, kbuild test robot wrote: > > Hi Joe, > > Hi again Fengguang's robot. Rehi. OK, it is a new message. Patch sent.

[PATCH] scsi: qedf: Use vsprintf extension %pad

2017-03-06 Thread Joe Perches
Using %llx for a dma_addr_t can lead to format/argument mismatches. Use %pad and the address of the dma_addr_t instead. Signed-off-by: Joe Perches --- drivers/scsi/qedf/qedf_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers

Re: [PATCH] scsi: qedf: Fix defective logging format and argument mismatches

2017-03-06 Thread Joe Perches
gt; help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Joe-Perches/scsi-qedf-Fix-defective-logging-format-and-argument-mismatches/20170307-005400 > base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next > config: parisc-allmodconf

[PATCH] scsi: qedf: Fix defective logging format and argument mismatches

2017-03-04 Thread Joe Perches
Add __printf compiler verification of format and arguments. Fix fallout. Signed-off-by: Joe Perches --- drivers/scsi/qedf/qedf_dbg.h | 13 - drivers/scsi/qedf/qedf_fip.c | 2 +- drivers/scsi/qedf/qedf_io.c | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a

[PATCH] qla2xxx: Fix ql_dump_buffer

2017-03-02 Thread Joe Perches
/qla2xxx/qla_dbg.o.new 39164 0 0 3916498fc drivers/scsi/qla2xxx/qla_dbg.o.old Signed-off-by: Joe Perches --- drivers/scsi/qla2xxx/qla_dbg.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx

Re: [PATCH v4 00/19] Replace PCI pool by DMA pool API

2017-03-01 Thread Joe Perches
On Wed, 2017-03-01 at 16:55 +0100, Romain Perier wrote: > support to warn about this old API in checkpath.pl checkpatch This part isn't true anymore, but it seems sensible enough, thanks.

Re: [PATCH v3 20/20] checkpatch: warn for use of old PCI pool API

2017-02-27 Thread Joe Perches
On Mon, 2017-02-27 at 13:52 +0100, Romain Perier wrote: > > I also wonder if you've in fact converted all of the > > pci_pool struct and function uses why a new checkpatch > > test is needed at all. > > That's just to avoid futures mistakes/uses. When all instances and macro definitions are remo

Re: [PATCH v3 20/20] checkpatch: warn for use of old PCI pool API

2017-02-27 Thread Joe Perches
s > > > in the DMA pool API. This adds support to check for use of these pci > > > functions and display a warning when it is the case. > > > > > > > I guess Joe Perches did sent some comments for this one, did you address > > them? > > See the

Re: [PATCH v3 20/20] checkpatch: warn for use of old PCI pool API

2017-02-27 Thread Joe Perches
t; > functions and display a warning when it is the case. > > > > I guess Joe Perches did sent some comments for this one, did you address > them? > Reviewed-by: Peter Senna Tschudin > > Signed-off-by: Romain Perier > > --- > > scripts/checkpatch.pl | 9 +

Re: [PATCH 00/35] treewide trivial patches converting pr_warning to pr_warn

2017-02-23 Thread Joe Perches
On Thu, 2017-02-23 at 17:41 +, Emil Velikov wrote: > On 23 February 2017 at 17:18, Joe Perches wrote: > > On Thu, 2017-02-23 at 09:28 -0600, Rob Herring wrote: > > > On Fri, Feb 17, 2017 at 1:11 AM, Joe Perches wrote: > > > > There are ~4300 uses of pr_w

Re: [PATCH 00/35] treewide trivial patches converting pr_warning to pr_warn

2017-02-23 Thread Joe Perches
On Thu, 2017-02-23 at 09:28 -0600, Rob Herring wrote: > On Fri, Feb 17, 2017 at 1:11 AM, Joe Perches wrote: > > There are ~4300 uses of pr_warn and ~250 uses of the older > > pr_warning in the kernel source tree. > > > > Make the use of pr_warn consistent across all

[PATCH 00/35] treewide trivial patches converting pr_warning to pr_warn

2017-02-16 Thread Joe Perches
with 'sed s/\bpr_warning\b/pr_warn/' and some emacsing. Miscellanea: o Coalesce formats and realign arguments Some files not compiled - no cross-compilers Joe Perches (35): alpha: Convert remaining uses of pr_warning to pr_warn ARM: ep93xx: Convert remaining uses of pr_warning

[PATCH 29/35] drivers/scsi: Convert remaining use of pr_warning to pr_warn

2017-02-16 Thread Joe Perches
To enable eventual removal of pr_warning This makes pr_warn use consistent for drivers/scsi Prior to this patch, there was 1 use of pr_warning and 96 uses of pr_warn in drivers/scsi Signed-off-by: Joe Perches --- drivers/scsi/a3000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [RFC 19/19] checkpatch: warn for use of old PCI pool API

2017-02-08 Thread Joe Perches
On Wed, 2017-02-08 at 19:55 +0100, Peter Senna Tschudin wrote: > On Wed, Feb 08, 2017 at 05:34:57PM +0100, Romain Perier wrote: > > pci_pool_*() functions should be replaced by the corresponding functions > > in the DMA pool API. This adds support to check for use of these pci > > functions and dis

Re: [PATCH] net-next: treewide use is_vlan_dev() helper function.

2017-02-03 Thread Joe Perches
On Fri, 2017-02-03 at 22:26 -0600, Parav Pandit wrote: > This patch makes use of is_vlan_dev() function instead of flag > comparison which is exactly done by is_vlan_dev() helper function. Thanks. btw: after applying this patch, there is one left $ git grep -E -n "&\s*IFF_802_1Q_VLAN\b" -- "*.c

Re: [PATCH v2 1/4] mpt3sas: Added print to notify cable running at a degraded speed.

2017-01-20 Thread Joe Perches
On Fri, 2017-01-20 at 09:55 -0800, Joe Perches wrote: > I believe MPT3SAS_FMT is unnecessary obfuscation and > it should just be replaced by "%s: " everywhere. Here's a trivial command that could be used one day: $ git grep --name-only MPT3SAS_FMT -- "*.c" |

Re: [PATCH v2 1/4] mpt3sas: Added print to notify cable running at a degraded speed.

2017-01-20 Thread Joe Perches
On Fri, 2017-01-20 at 20:12 +0530, Chaitra P B wrote: > Driver processes the event MPI26_EVENT_ACTIVE_CABLE_DEGRADED > when a cable is present and is running at a degraded speed > (below the SAS3 12 Gb/s rate). Prints added > to inform the user that the cable is not running at > optimal speed. [] >

Re: [PATCH v1 12/12] scsi: ufs: Improve fatal error logs

2016-12-12 Thread Joe Perches
On Mon, 2016-12-12 at 16:56 -0800, Subhash Jadavani wrote: > Errors such as UIC error, illegal OCS values, and others may require > more information for debugging. Such information could be hibern8 events, > events sequences, recoverable errors, error history, and more. [] > diff --git a/drivers/sc

Re: [PATCH] scsi/qla2xxx: label endian-ness for many fields

2016-12-09 Thread Joe Perches
On Fri, 2016-12-09 at 22:45 +0200, Michael S. Tsirkin wrote: > This adds endian-ness labels for lots of qla structs. > Doing this cuts down number of sparse warnings from ~1700 to ~1400. > Will help find and resolve some of real issues down the road. > > Signed-off-by: Michael S. Tsirkin > > ---

Re: [PATCH] sd: assign appropriate log level

2016-10-17 Thread Joe Perches
On Mon, 2016-10-17 at 09:51 -0700, David Singleton wrote: > From: Shikhar Dogra > > Reduce chatter on console for usb hotplug. > KERN_ERR is too high severity for these messages, moving them > to KERN_WARNING Perhaps KERN_NOTICE is more appropriate. That's the level for most of these sd_first_pr

Re: [PATCH 00/26] constify local structures

2016-09-11 Thread Joe Perches
On Sun, 2016-09-11 at 15:05 +0200, Julia Lawall wrote: > Constify local structures. Thanks Julia. A few suggestions & questions: Perhaps the script should go into scripts/coccinelle/ so that future cases could be caught by the robot and commit message referenced by the patch instances. Can you

[PATCH 1/2] wd719x: Remove last declaration using DEFINE_PCI_DEVICE_TABLE

2016-08-31 Thread Joe Perches
Convert it to the preferred const struct pci_device_id instead. Signed-off-by: Joe Perches --- drivers/scsi/wd719x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c index e3da1a2..2a9da2e 100644 --- a/drivers/scsi/wd719x.c +++ b

[PATCH 0/2] Remove last use and references to DEFINE_PCI_DEVICE_TABLE

2016-08-31 Thread Joe Perches
Joe Perches (2): wd719x: Remove last declaration using DEFINE_PCI_DEVICE_TABLE treewide: Remove references to the now unnecessary DEFINE_PCI_DEVICE_TABLE Documentation/PCI/pci.txt | 1 - drivers/scsi/wd719x.c | 2 +- include/linux/pci.h | 9 - scripts/checkpatch.pl | 9

Re: [PATCH] be2iscsi: Use a more current logging style

2016-08-16 Thread Joe Perches
On Wed, 2016-08-17 at 09:20 +0530, Jitendra Bhivare wrote: > > > > -Original Message- > > From: Joe Perches [mailto:j...@perches.com] > > Sent: Tuesday, August 16, 2016 3:57 PM > > To: Jitendra Bhivare; Christophe JAILLET; Jayamohan Kallickal; Ketan > Muk

Re: [PATCH 0/2] be2iscsi: Logging neatening

2016-08-16 Thread Joe Perches
On Wed, 2016-08-17 at 01:19 +, Bart Van Assche wrote: > On 08/14/16 10:29, Joe Perches wrote: > > On Sun, 2016-08-14 at 17:09 +, Bart Van Assche wrote: > > > My primary concern is how to enable and disable log messages from user > > > space. [] > > I think

Re: [PATCH] be2iscsi: Use a more current logging style

2016-08-16 Thread Joe Perches
On Tue, 2016-08-16 at 11:32 +0530, Jitendra Bhivare wrote: > Thanks Joe for taking this up. It has been pending for long time from our > side. Thanks, not a problem, it took ~10 minutes. There was a bit of an issue about your reply though. First there was ~50 k of quoted stuff without any conten

[PATCH] be2iscsi: Use a more current logging style

2016-08-14 Thread Joe Perches
kbasename(__FILE__) and stringify(__LINE__) to reduce code size in beiscsi_printk o Realign arguments Signed-off-by: Joe Perches --- drivers/scsi/be2iscsi/be_cmds.c | 142 drivers/scsi/be2iscsi/be_iscsi.c | 223 ++-- drivers/scsi/be2iscsi/be_main.c | 733

Re: [PATCH 0/2] be2iscsi: Logging neatening

2016-08-14 Thread Joe Perches
On Sun, 2016-08-14 at 17:09 +, Bart Van Assche wrote: > My primary concern is how to enable and disable log messages from user  > space. Many drivers define their own logging macros and export a bitmask  > that allows to enable and disable logging messages per category. These  > bitmask contro

Re: [PATCH 0/2] be2iscsi: Logging neatening

2016-08-14 Thread Joe Perches
On Sun, 2016-08-14 at 14:34 +, Bart Van Assche wrote: > On 08/13/16 13:42, Joe Perches wrote: > > Joe Perches (2): > >   be2iscsi: Coalesce split strings and formats > >   be2iscsi: Use a standard logging style > Hello Joe, Hello Bart. > As one can see in be_mai

[PATCH 2/2] be2iscsi: Use a standard logging style

2016-08-14 Thread Joe Perches
Neaten all the beiscsi_log uses. Remove the leading 'B_%d" prefixes and make the format and arguments match without an implied __LINE__. Signed-off-by: Joe Perches --- drivers/scsi/be2iscsi/be_cmds.c | 54 +++ drivers/scsi/be2iscsi/be_iscsi.c | 100 ++-- drivers/scs

[PATCH 1/2] be2iscsi: Coalesce split strings and formats

2016-08-14 Thread Joe Perches
Split strings are not preferred for ease of grep. Signed-off-by: Joe Perches --- drivers/scsi/be2iscsi/be_cmds.c | 15 ++-- drivers/scsi/be2iscsi/be_iscsi.c | 33 +++ drivers/scsi/be2iscsi/be_main.c | 180 ++- drivers/scsi/be2iscsi/be_mgmt.c | 3

[PATCH 0/2] be2iscsi: Logging neatening

2016-08-14 Thread Joe Perches
Joe Perches (2): be2iscsi: Coalesce split strings and formats be2iscsi: Use a standard logging style drivers/scsi/be2iscsi/be_cmds.c | 61 +++--- drivers/scsi/be2iscsi/be_iscsi.c | 115 ++- drivers/scsi/be2iscsi/be_main.c | 398 +-- drivers/scsi

Re: [PATCH 2/2 v3] be2iscsi: Fix some error messages

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 09:41 -0700, Joe Perches wrote: > On Sat, 2016-08-13 at 14:31 +0200, Christophe JAILLET wrote: > > Le 13/08/2016 à 13:35, Joe Perches a écrit : > > > > @@ -268,7 +268,7 @@ static int beiscsi_eh_abort

Re: [PATCH 2/2 v3] be2iscsi: Fix some error messages

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 14:31 +0200, Christophe JAILLET wrote: > Le 13/08/2016 à 13:35, Joe Perches a écrit : > > > @@ -268,7 +268,7 @@ static int beiscsi_eh_abort(struct scsi_cmnd *sc) > > >   &nonemb_cmd.dma); > > >  

Re: [PATCH 2/2 v3] be2iscsi: Fix some error messages

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 09:20 +0200, Christophe JAILLET wrote: > This fixes: [] >    - concatenate strings on the same line to fix checkpatch warnings [] > diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c [] > @@ -268,7 +268,7 @@ static int beiscsi_eh_abort(struct scsi_c

Re: [PATCH v2 0/7] lib: string: add functions to case-convert strings

2016-07-05 Thread Joe Perches
On Tue, 2016-07-05 at 15:36 -0700, Markus Mayer wrote: > On 5 July 2016 at 15:14, Joe Perches wrote: > > On Tue, 2016-07-05 at 13:47 -0700, Markus Mayer wrote: > > > This series introduces a family of generic string case conversion > > > functions. This kind of functio

Re: [PATCH v2 0/7] lib: string: add functions to case-convert strings

2016-07-05 Thread Joe Perches
On Tue, 2016-07-05 at 13:47 -0700, Markus Mayer wrote: > This series introduces a family of generic string case conversion > functions. This kind of functionality is needed in several places in > the kernel. Right now, everybody seems to be implementing their own > copy of this functionality. > >

Re: [PATCH v2] scsi: wd7000: print sector number as 64-bit

2016-06-21 Thread Joe Perches
On Tue, 2016-06-21 at 11:02 +0200, Arnd Bergmann wrote: > Enabling format checking in dprintk() shows that wd7000_biosparam > uses an incorrect format string for sector_t: trivia: > diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c [] > @@ -192,7 +192,7 @@ >  #ifdef WD7000_DEBUG >  #defi

Re: [PATCH] VMW_PVSCSI: Change to update maintainer details (name, email)

2016-06-17 Thread Joe Perches
On Fri, 2016-06-17 at 17:44 +, Jim Gill wrote: > On 6/16/16, 8:11 PM, "Julian Calaby" wrote: > > > > > > > [] > > > > > > > > > > > > > On Fri, Jun 17, 2016 at 12:33 PM, Joe Perches wrote: > > &g

Re: [PATCH] VMW_PVSCSI: Change to update maintainer details (name, email)

2016-06-16 Thread Joe Perches
On Fri, 2016-06-17 at 12:44 +1000, Julian Calaby wrote: > Hi Joe, rehi Julian. > On Fri, Jun 17, 2016 at 12:33 PM, Joe Perches wrote: [] > > get_maintainer.pl also has a rarely used "--file-emails" option to > > scan for what appears to be email addresses in specific

Re: [PATCH] VMW_PVSCSI: Change to update maintainer details (name, email)

2016-06-16 Thread Joe Perches
On Fri, 2016-06-17 at 12:18 +1000, Julian Calaby wrote: > ./scripts/get_maintainers.pl -f drivers/scsi/vmw_pvscsi.c just fyi: the script name is not plural $ ./scripts/get_maintainer.pl  -f drivers/scsi/vmw_pvscsi.c Arvind Kumar (maintainer:VMware PVSCSI driver) VMware PV-Drivers (maintainer:V

Re: [PATCH v6] ibmvscsis: Initial commit of IBM VSCSI Tgt Driver

2016-06-16 Thread Joe Perches
On Thu, 2016-06-16 at 16:20 -0500, Bryant G. Ly wrote: > This driver is a pick up of the old IBM VIO scsi Target Driver > that was started by Nick and Fujita 2-4 years ago. > http://comments.gmane.org/gmane.linux.scsi/90119 (style trivia only, nothing important enough to force a respin  but nice t

Re: [PATCH v5] ibmvscsis: Initial commit of IBM VSCSI Tgt Driver

2016-06-15 Thread Joe Perches
On Wed, 2016-06-15 at 18:41 -0500, Bryant G. Ly wrote: > The driver provides a virtual SCSI device on IBM Power Servers. [] >  MAINTAINERS  |   11 + >  drivers/scsi/Kconfig |   27 +- >  drivers/scsi/Makefile|2 +- >  drivers/scs

Re: [PATCH] Use the correct size to set block max sectors

2016-05-26 Thread Joe Perches
dOn Thu, 2016-05-26 at 17:08 -0700, Long Li wrote: > The block sector size should be in unit of 512 bytes, not in bytes. Thanks. The patch subject should use something like: [PATCH] sd: Use the correct size to set block max sectors to show what subsystem is being modified. > diff --git a/drive

Re: [PATCH 3/3] ibmvscsis: clean up functions

2016-05-25 Thread Joe Perches
On Wed, 2016-05-25 at 09:17 -0500, Bryant G. Ly wrote: > From: bryantly Please use your whole name here and for your sign-off like: From: Bryant G. Ly Signed-off-by: Bryant G. Ly > This patch removes forward declarations and re-organizes the > functions within the driver. This patch also fixe

Re: [PATCH] ibmvscsis: Initial commit of IBM VSCSI Tgt Driver

2016-05-24 Thread Joe Perches
On Tue, 2016-05-24 at 08:52 -0500, Bryant G. Ly wrote: > From: bgly > > This initial commit contains WIP of the IBM VSCSI Target Fabric > Module. It currently supports read/writes, and I have tested > the ability to create a file backstore with the driver and install > RHEL VIA NIM and then boot

Re: [PATCH] megaraid_sas: trivial fix, add missing space in dev_err message

2016-04-25 Thread Joe Perches
On Mon, 2016-04-25 at 22:58 +0100, Colin King wrote: > From: Colin Ian King > > Add a missing space in dev_err message, missed because the string > spans a few lines. This is a dev_notice() not dev_err(). > diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c > b/drivers/scsi/megaraid/megara

Re: [PATCH] cxgbit: fix dma_addr_t printk format

2016-03-04 Thread Joe Perches
On Sat, 2016-03-05 at 01:34 +0100, Arnd Bergmann wrote: > On Friday 04 March 2016 16:25:07 Joe Perches wrote: > > > diff --git a/drivers/target/iscsi/cxgbit/cxgbit_ddp.c > > > b/drivers/target/iscsi/cxgbit/cxgbit_ddp.c [] > > > @@ -179,7 +179,7 @@ cxgbit_du

Re: [PATCH] cxgbit: fix dma_addr_t printk format

2016-03-04 Thread Joe Perches
On Sat, 2016-03-05 at 01:04 +0100, Arnd Bergmann wrote: > The newly added driver prints a dma_addr_t using the %llx format string, > but that is wrong on most 32-bit architectures: > > drivers/target/iscsi/cxgbit/cxgbit_ddp.c: In function 'cxgbit_dump_sgl': > drivers/target/iscsi/cxgbit/cxgbit_ddp

Re: [PATCH 2/2] Modified Maintainers list for MPT FUSION DRIVERS.

2016-02-17 Thread Joe Perches
On Wed, 2016-02-17 at 16:55 +0530, Chaitra P B wrote: > Signed-off-by: Chaitra P B > Suganath prabu Subramani Is this supposed to be a signed-off-by line? A couple questions below. > diff --git a/MAINTAINERS b/MAINTAINERS [] > @@ -6659,10 +6659,9 @@ S: Maintained >  F: arch/arm/mach-lpc3

Re: [PATCH v4 69/78] ncr5380: Fix whitespace in comments using regexp

2016-01-03 Thread Joe Perches
On Sun, 2016-01-03 at 22:05 +, One Thousand Gnomes wrote: > On Sun, 03 Jan 2016 13:46:22 -0800 > Joe Perches wrote: > > > (using an email address for James that shouldn't bounce) > > > > On Sun, 2016-01-03 at 21:29 +, One Thousand Gnomes wrote: > >

Re: [PATCH v4 69/78] ncr5380: Fix whitespace in comments using regexp

2016-01-03 Thread Joe Perches
(using an email address for James that shouldn't bounce) On Sun, 2016-01-03 at 21:29 +, One Thousand Gnomes wrote: > > > I would beg to differ. As a tool for understanding the > > > differences as you > > > step through the versions it's invaluable. > > > > This removes intentional formatting

Re: [PATCH v4 69/78] ncr5380: Fix whitespace in comments using regexp

2016-01-03 Thread Joe Perches
On Sun, 2016-01-03 at 14:10 +, One Thousand Gnomes wrote: > On Sat, 02 Jan 2016 23:54:28 -0800 > Joe Perches wrote: > > > On Sun, 2016-01-03 at 16:06 +1100, Finn Thain wrote: > > > Hanging indentation was a poor choice for the text inside comments. It > > >

Re: [PATCH v4 69/78] ncr5380: Fix whitespace in comments using regexp

2016-01-02 Thread Joe Perches
On Sun, 2016-01-03 at 16:06 +1100, Finn Thain wrote: > Hanging indentation was a poor choice for the text inside comments. It > has been used in the wrong places and done badly elsewhere. There is > little consistency within any file. One fork of the core driver uses > tabs for this indentation whi

Re: [PATCH v3 68/77] ncr5380: Fix whitespace issues using regexp

2015-12-22 Thread Joe Perches
On Wed, 2015-12-23 at 13:03 +1100, Finn Thain wrote: > On Tue, 22 Dec 2015, Joe Perches wrote: > > > On Wed, 2015-12-23 at 11:56 +1100, Finn Thain wrote: > > > On Tue, 22 Dec 2015, Joe Perches wrote: > > >  > > > > On Tue, 2015-12-22 at 12:18 +1100, Finn

Re: [PATCH v3 68/77] ncr5380: Fix whitespace issues using regexp

2015-12-22 Thread Joe Perches
On Wed, 2015-12-23 at 11:56 +1100, Finn Thain wrote: > On Tue, 22 Dec 2015, Joe Perches wrote: > > > On Tue, 2015-12-22 at 12:18 +1100, Finn Thain wrote: > > > This patch is just the result of two substitutions. The first removes  > > > any tabs and spaces at t

Re: [PATCH v3 68/77] ncr5380: Fix whitespace issues using regexp

2015-12-22 Thread Joe Perches
On Tue, 2015-12-22 at 12:18 +1100, Finn Thain wrote: > This patch is just the result of two substitutions. The first removes any > tabs and spaces at the end of the line. The second replaces runs of > tabs and spaces at the beginning of comment lines with a single space. I think the second of thes

Re: [PATCH] [SCSI] osd: fix signed char versus %02x issue

2015-12-10 Thread Joe Perches
On Thu, 2015-12-10 at 14:13 -0500, Martin K. Petersen wrote: > > > > > > "Andy" == Andy Shevchenko writes: > > Andy> I have several patches on SCSI subsytem like this one. Some of > Andy> them didn't manage kernel (even having Ack!) for years already. > Andy> Is it okay if I collect them together

Re: [PATCH] storvsc: add more logging for error and warning messages

2015-12-03 Thread Joe Perches
On Thu, 2015-12-03 at 19:47 -0800, Long Li wrote: > Introduce a logging level for storvsc to log certain error/warning > messages. Those messages are helpful in some environments, e.g. > Microsoft Azure, for customer support and troubleshooting purposes. [] > diff --git a/drivers/scsi/storvsc_drv.c

Re: [PATCH 2/3] arcmsr: Split dma resource allocation to a new function

2015-11-26 Thread Joe Perches
On Thu, 2015-11-26 at 19:41 +0800, Ching Huang wrote: > split dma resource allocation and io register assignment from get_config to a > new function arcmsr_alloc_io_queue. trivia: > diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c > b/drivers/scsi/arcmsr/arcmsr_hba.c [] > +static bool arcmsr_alloc

  1   2   3   >