[PATCH 0/1] Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-08-08 Thread Benoit Taine
We should prefer `const struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. A simplified version of the semantic patch that makes this change is as follows (http://coccinelle.lip6.fr/): // @@ identifier i; declarer

[PATCH 1/1] Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-08-08 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors except: - drivers/net/ethernet/pasemi/pasemi_mac.c - drivers/net/ethernet

[PATCH 4/25] net: pasemi: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Not tested. drivers/net/ethernet/pasemi/pasemi_mac.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 10/25] netxen: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c |2 +- 1 file

[PATCH 8/25] dscc4: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/wan/dscc4.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH 11/25] pcnet32: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/amd/pcnet32.c |2 +- 1 file changed, 1 insertion

[PATCH 1/25] bna: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/brocade/bna/bnad.c |2 +- 1 file changed, 1

[PATCH 15/25] qlcnic: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c |2 +- 1 file

[PATCH 5/25] net/ethernet/sgi/ioc3-eth: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Not tested. drivers/net/ethernet/sgi/ioc3-eth.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 24/25] starfire: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/adaptec/starfire.c |2 +- 1 file changed, 1

[PATCH 0/25] Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `const struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. A simplified version of the semantic patch that makes this change is as follows (http://coccinelle.lip6.fr/): // @@ identifier i; declarer

[PATCH 2/25] BusLogic: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/scsi/BusLogic.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH 22/25] drivers/net: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/arcnet/com20020-pci.c|2 +- drivers

[PATCH 19/25] irda: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Not tested. drivers/net/irda/donauboe.c |2 +- drivers/net/irda/via-ircc.c |2 +- drivers/net/irda

[PATCH 6/25] x86: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/platform/x86/intel_ips.c |2 +- drivers/platform/x86

[PATCH 20/25] via-rhine: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/via/via-rhine.c |2 +- 1 file changed, 1

[PATCH 9/25] net: neterion: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/neterion/s2io.c |2 +- drivers/net

[PATCH 17/25] block: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/block/rsxx/core.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH 14/25] adm8211: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/wireless/adm8211.c |2 +- 1 file changed, 1 insertion

[PATCH 3/25] iwlegacy: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Not tested. drivers/net/wireless/iwlegacy/3945.c |2 +- drivers/net/wireless/iwlegacy/4965-mac.c |2

[PATCH 13/25] IB/mlx5: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/infiniband/hw/mlx5/main.c |2 +- 1 file changed, 1 insertion

[PATCH 12/25] r8169: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/realtek/r8169.c |2 +- 1 file changed, 1

[PATCH 21/25] hostap: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/wireless/hostap/hostap_pci.c |2 +- drivers/net/wireless

[PATCH 25/25] ipack: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/ipack/carriers/tpci200.c |2 +- 1 file changed, 1 insertion

[PATCH 7/25] rt2x00: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/wireless/rt2x00/rt2400pci.c |2 +- drivers/net/wireless

[PATCH 23/25] virtio: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/virtio/virtio_pci.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH 16/25] be2net: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/emulex/benet/be_main.c |2 +- 1 file changed, 1

[PATCH 18/25] smsc9420: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Benoit Taine
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/ethernet/smsc/smsc9420.c |2 +- 1 file changed, 1

Re: How to automate checkpatch && get_maintainers && git send-email of commits range?

2014-07-18 Thread Benoit Taine
On 18/07/2014 17:38, Andrey Utkin wrote: > Is there script for automated checkpatch.pl && get_maintainers.pl && > git send-email for range of commits? I see none. Would it be welcome > to submit such one to kernel tree? You can use `splitpatch` to split a patch into multiple mails with the correct

[PATCH 2/2 v5] lpc_eth: Use resource_size instead of computation

2014-06-03 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/resource_size.cocci Signed-off-by: Benoit Taine --- Not compile tested, due incompatible architecture. Changes from V4: - Added blank line a the end of the diff (Thank to David Miller for your patience

[PATCH 2/2 v4] lpc_eth: Use resource_size instead of computation

2014-06-03 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/resource_size.cocci Signed-off-by: Benoit Taine --- Not compile tested, due incompatible architecture. Changes from V3: - should now apply correctly Changes from V2: - added line break to debug message

Re: [PATCH 2/2 v3] lpc_eth: Use resource_size instead of computation

2014-06-02 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/resource_size.cocci Signed-off-by: Benoit Taine --- Not compile tested, due incompatible architecture. Changes from V2: - added line break to debug message Changes from V1: - Use %pR format type with

[PATCH 2/2 v2] lpc_eth: Use resource_size instead of computation

2014-06-02 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/resource_size.cocci Signed-off-by: Benoit Taine --- Not compile tested, due incompatible architecture. diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index 422d9b5

[PATCH 2/2] lpc_eth: Use resource_size instead of computation

2014-05-28 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/resource_size.cocci Signed-off-by: Benoit Taine --- Not compile tested, due incompatible architecture. drivers/net/ethernet/nxp/lpc_eth.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions

[PATCH 1/2] ALSA: au1x00: Use resource_size instead of computation

2014-05-28 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/resource_size.cocci Signed-off-by: Benoit Taine --- Not compile tested, due incompatible architecture. sound/mips/au1x00.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH 0/2] Use resource_size instead of computation

2014-05-28 Thread Benoit Taine
These patches enhance kernel style usage, and make use of the resource_size() function instead of explicit computation. The semantic patch at scripts/coccinelle/api/resource_size.cocci was used to detect and edit this situation. -- To unsubscribe from this list: send the line "unsubscribe linux-ke

Re: [PATCH 9/18] staging: rtl8723au: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
On 26/05/2014 17:43, Jes Sorensen wrote: > Benoit Taine writes: > > This issue was reported by coccicheck using the semantic patch > > at scripts/coccinelle/api/memdup.cocci > > > > Signed-off-by: Benoit Taine > > --- > > Tested by compilation without err

[PATCH 1/18] USB: storage: ene_ub6250: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/usb/storage/ene_ub6250.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb

[PATCH 2/18] memstick: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/memstick/core/mspro_block.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH 14/18] r8152: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/usb/r8152.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/usb/r8152.c

[PATCH 3/18] VMCI: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/misc/vmw_vmci/vmci_datagram.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH 5/18] wcn36xx: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/net/wireless/ath/wcn36xx/smd.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH 16/18] HID: uhid: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/hid/uhid.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/hid/uhid.c b

[PATCH 0/18] Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
These patches enhance kernel style usage, and allows smaller code while preventing accidental code edits to produce overflows. The semantic patch at scripts/coccinelle/api/memdup.cocci was used to detect and edit this situation. -- To unsubscribe from this list: send the line "unsubscribe linux-ke

[PATCH 17/18] drx-j: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Not compile tested. drivers/media/dvb-frontends/drx39xyj/drxj.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH 13/18] drm/edid: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/gpu/drm/drm_edid.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 6/18] fusion: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/message/fusion/mptbase.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/message

[PATCH 12/18] aic7xxx: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/scsi/aic7xxx/aic79xx_core.c |4 ++-- drivers/scsi/aic7xxx/aic7xxx_core.c |4 ++-- 2 files changed, 4

[PATCH 4/18] qla4xxx: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/scsi/qla4xxx/ql4_os.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/scsi

[PATCH 8/18] Drivers: scsi: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/scsi/mpt2sas/mpt2sas_scsih.c |4 +--- drivers/scsi/mpt3sas/mpt3sas_scsih.c |3 +-- 2 files changed, 2

[PATCH 10/18] aacraid: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/scsi/aacraid/commctrl.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 7/18] qla2xxx: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/scsi/qla2xxx/qla_mbx.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi

[PATCH 9/18] staging: rtl8723au: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c |3 +-- drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 16

[PATCH 15/18] Drivers: media: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/media/platform/soc_camera/soc_camera.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a

[PATCH 11/18] usb: gadget: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/usb/gadget/configfs.c|4 +--- drivers/usb/gadget/lpc32xx_udc.c |3 +-- 2 files changed, 2 insertions

[PATCH 18/18] pinctrl: pinconf-generic: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Not compile tested, due incompatible architecture. drivers/pinctrl/pinconf-generic.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH] ALSA: Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-05-22 Thread Benoit Taine
name DEFINE_PCI_DEVICE_TABLE; initializer z; @@ - DEFINE_PCI_DEVICE_TABLE(i) + const struct pci_device_id i[] = z; // It has been tested by compilation. Signed-off-by: Benoit Taine --- sound/pci/hda/hda_intel.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci

[PATCH] nfsd: Remove assignments inside conditions

2014-05-22 Thread Benoit Taine
) +S // It has been tested by compilation. Signed-off-by: Benoit Taine --- fs/nfsd/nfs2acl.c | 12 fs/nfsd/nfs3acl.c |6 -- fs/nfsd/nfs3xdr.c | 27 ++- fs/nfsd/nfsxdr.c | 15 ++- 4 files changed, 40 insertions(+), 20 deletions

[PATCH] staging: rtl8723au: Use kmemdup() instead of memcpy() to duplicate memory

2014-05-22 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci, and tested by compilation. Signed-off-by: Benoit Taine --- drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c |3 +-- drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 17

[PATCH] staging: rts5208: Use pci_device_id rather than DEFINE_PCI_DEVICE_TABLE

2014-05-19 Thread Benoit Taine
This patch enhances kernel style usage for the rts5208 driver. We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. This issue was reported by checkpatch. Signed-off-by: Benoit Taine --- drivers/staging/rts5208/rtsx.c |2 +- 1 file

[PATCH] staging/rtl8192u: Put EXPORT_SYMBOL just after the exported function

2014-05-16 Thread Benoit Taine
; @@ - EXPORT_SYMBOL(f); @@ identifier r.f; @@ f(...) { ... } + EXPORT_SYMBOL(f); // Signed-off-by: Benoit Taine --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c |3 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c| 52 +- drivers/staging/rtl8192u/ieee80211