[PATCH 1/4] drm/amd/powerplay: Cocci spatch "alloc_cast"

2017-09-21 Thread Thomas Meyer
Remove casting the values returned by memory allocation functions like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." Found by coccinelle spatch "api/alloc/alloc_cast.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_proce

[PATCH 0/4] Cocci spatch "alloc_cast" - v4.14-rc1

2017-09-21 Thread Thomas Meyer
Remove casting the values returned by memory allocation functions like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." Found by coccinelle spatch "api/alloc/alloc_cast.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of

[PATCH 2/4] fs: Cocci spatch "alloc_cast"

2017-09-21 Thread Thomas Meyer
Remove casting the values returned by memory allocation functions like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." Found by coccinelle spatch "api/alloc/alloc_cast.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/fs/9p/vfs_inode.c b/fs/9p

[PATCH 0/4] Cocci spatch "alloc_cast" - v4.14-rc1

2017-09-21 Thread Thomas Meyer
Remove casting the values returned by memory allocation functions like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." Found by coccinelle spatch "api/alloc/alloc_cast.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of

[PATCH 2/4] fs: Cocci spatch "alloc_cast"

2017-09-21 Thread Thomas Meyer
Remove casting the values returned by memory allocation functions like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." Found by coccinelle spatch "api/alloc/alloc_cast.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c --- a/fs

[PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast"

2017-09-21 Thread Thomas Meyer
Remove casting the values returned by memory allocation functions like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." Found by coccinelle spatch "api/alloc/alloc_cast.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/sound/pci/emu10k1/emufx.

[PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast"

2017-09-21 Thread Thomas Meyer
Remove casting the values returned by memory allocation functions like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." Found by coccinelle spatch "api/alloc/alloc_cast.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/sound/pci/emu10k1/emufx.c b/sound/pci/

[PATCH 3/3] net: stmmac: Cocci spatch "of_table"

2017-09-21 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/s

[PATCH 3/3] net: stmmac: Cocci spatch "of_table"

2017-09-21 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c --- a/d

[PATCH 0/3] Cocci spatch "of_table" - v4.14-rc1

2017-09-21 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of patches. I can exclude you by path; e.g. all findings in "drivers/scsi" will

[PATCH 0/3] Cocci spatch "of_table" - v4.14-rc1

2017-09-21 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of patches. I can exclude you by path; e.g. all findings in "drivers/scsi" will

[PATCH 2/3] i2c: Cocci spatch "of_table"

2017-09-21 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/i2c/busses/i2c-sprd.c b/drivers/i2c/busses/i2c-sprd.c --- a/drivers/i2c/busses/i2c-sprd.c +

[PATCH 1/3] ARM: mediatek: Cocci spatch "of_table"

2017-09-21 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c --- a/arch/arm/mach-mediatek/plat

[PATCH 2/3] i2c: Cocci spatch "of_table"

2017-09-21 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/i2c/busses/i2c-sprd.c b/drivers/i2c/busses/i2c-sprd.c --- a/drivers/i2c/busses/i2c-sprd.c +++ b/drivers/i2c/busses/

[PATCH 1/3] ARM: mediatek: Cocci spatch "of_table"

2017-09-21 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c --- a/arch/arm/mach-mediatek/platsmp.c +++ b/arch/arm/mac

[PATCH 2/6] e100: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c --- a/driv

[PATCH 2/6] e100: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c --- a/drivers/net/ethernet/intel/e1

[PATCH 4/6] mvsas: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c --- a/drivers/scsi/mvsa

[PATCH 6/6] scsi: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c --- a/driv

[PATCH 4/6] mvsas: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c --- a/drivers/scsi/mvsas/mv_sas.c +++ b/drivers/

[PATCH 6/6] scsi: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c --- a/drivers/scsi/qla4xxx/ql4_mbx.c +++

[PATCH 5/6] scsi: qla2xxx: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c --- a/driv

[PATCH 5/6] scsi: qla2xxx: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c --- a/drivers/scsi/qla2xxx/qla_bsg.c +++

[PATCH 0/6] Cocci spatch "pool_zalloc-simple" - v4.14-rc1

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of patches. I can exclude you by path; e.g. all findings in

[PATCH 0/6] Cocci spatch "pool_zalloc-simple" - v4.14-rc1

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of patches. I can exclude you by path; e.g. all findings in

[PATCH 1/6] mailbox: bcm-flexrm-mailbox: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c --- a

[PATCH 3/6] scsi: lpfc: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c --- a/drivers/scsi/

[PATCH 1/6] mailbox: bcm-flexrm-mailbox: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c --- a/drivers/mailbox/

[PATCH 3/6] scsi: lpfc: Cocci spatch "pool_zalloc-simple"

2017-09-21 Thread Thomas Meyer
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c --- a/drivers/scsi/lpfc/lpfc_nvme.c +++ b/dr

[PATCH 0/1] Cocci spatch "simple_open" - v4.14-rc1

2017-09-20 Thread Thomas Meyer
This removes an open coded simple_open() function and replaces file operations references to the function with simple_open() instead. Found by coccinelle spatch "api/simple_open.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of

[PATCH 0/1] Cocci spatch "simple_open" - v4.14-rc1

2017-09-20 Thread Thomas Meyer
This removes an open coded simple_open() function and replaces file operations references to the function with simple_open() instead. Found by coccinelle spatch "api/simple_open.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of

[PATCH 1/1] [SCSI] fnic: Cocci spatch "simple_open"

2017-09-20 Thread Thomas Meyer
This removes an open coded simple_open() function and replaces file operations references to the function with simple_open() instead. Found by coccinelle spatch "api/simple_open.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/scsi/fnic/fnic_debugfs.

[PATCH 1/1] [SCSI] fnic: Cocci spatch "simple_open"

2017-09-20 Thread Thomas Meyer
This removes an open coded simple_open() function and replaces file operations references to the function with simple_open() instead. Found by coccinelle spatch "api/simple_open.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/scsi/fnic/fnic_debugfs.c b/drivers

[PATCH 2/7] arm64: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c --- a/arch/arm64/mm/dma-mapping.c +++

[PATCH 2/7] arm64: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma

[PATCH 0/7] Cocci spatch "vma_pages" - v4.14-rc1

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of patches. I can exclude you by path; e.g. all findings in "drivers/scsi"

[PATCH 0/7] Cocci spatch "vma_pages" - v4.14-rc1

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of patches. I can exclude you by path; e.g. all findings in "drivers/scsi"

[PATCH 3/7] metag: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/arch/metag/kernel/dma.c b/arch/metag/kernel/dma.c --- a/arch/metag/kernel/dma.c +++ b/arch/me

[PATCH 3/7] metag: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/arch/metag/kernel/dma.c b/arch/metag/kernel/dma.c --- a/arch/metag/kernel/dma.c +++ b/arch/metag/kernel/dma.c @@ -34

[PATCH 1/7] ARM: dma-mapping: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c --- a/arch/arm/mm/dma-mapping.c +++ b

[PATCH 4/7] microblaze: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c --- a/arch/microblaze/kernel/

[PATCH 1/7] ARM: dma-mapping: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c

[PATCH 4/7] microblaze: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c --- a/arch/microblaze/kernel/dma.c +++ b/arch/microblaze/ke

[PATCH 5/7] MIPS: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c --- a/arch/mips/mm/dma-default.c +++ b/

[PATCH 7/7] drm/rockchip: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c --- a

[PATCH 6/7] KVM: PPC: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff -u -p a/arch/powerpc/kvm/e500_mmu_host.c b/arch/powerpc/kvm/e500_mmu_host.c --- a/arch/powerpc/kvm/e500_

[PATCH 5/7] MIPS: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c

[PATCH 7/7] drm/rockchip: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c --- a/drivers/gpu/dr

[PATCH 6/7] KVM: PPC: Cocci spatch "vma_pages"

2017-09-20 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/arch/powerpc/kvm/e500_mmu_host.c b/arch/powerpc/kvm/e500_mmu_host.c --- a/arch/powerpc/kvm/e500_mmu_host.c +++ b/arch/p

Re: (*ABS*+0xbb29b267): multiple definition of `__crc___gcov_merge_add'

2017-09-18 Thread Thomas Meyer
True, as CONFIG_GCOV and CONFIG_GCOV_KERNEL should be mutually exclusive CONFIG options. With kind regards Thomas > Am 17.09.2017 um 20:52 schrieb kbuild test robot : > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head:

Re: (*ABS*+0xbb29b267): multiple definition of `__crc___gcov_merge_add'

2017-09-18 Thread Thomas Meyer
True, as CONFIG_GCOV and CONFIG_GCOV_KERNEL should be mutually exclusive CONFIG options. With kind regards Thomas > Am 17.09.2017 um 20:52 schrieb kbuild test robot : > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head:

Re: [PATCH V2] tipc: Use bsearch library function

2017-09-17 Thread Thomas Meyer
> Am 16.09.2017 um 15:20 schrieb Jon Maloy . >> >> What part of "very time critical" have you verified and benchmarked as >> inconsequential? >> >> Please post your results. > > I agree with Joe here. This change does not simplify anything, it does not > reduce the

Re: [PATCH V2] tipc: Use bsearch library function

2017-09-17 Thread Thomas Meyer
> Am 16.09.2017 um 15:20 schrieb Jon Maloy . >> >> What part of "very time critical" have you verified and benchmarked as >> inconsequential? >> >> Please post your results. > > I agree with Joe here. This change does not simplify anything, it does not > reduce the amount of code, plus that

[PATCH] vt: Use bsearch library function in is_double_width

2017-09-16 Thread Thomas Meyer
Use bsearch library function instead of duplicated functionality. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- drivers/tty/vt/vt.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 2ebaba

[PATCH] vt: Use bsearch library function in is_double_width

2017-09-16 Thread Thomas Meyer
Use bsearch library function instead of duplicated functionality. Signed-off-by: Thomas Meyer --- drivers/tty/vt/vt.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 2ebaba16f785..ca55004a639e

[PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Thomas Meyer
Use common library function rather than explicitly coding some variant of it yourself. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- net/tipc/name_table.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) V2: Coding style diff --git a/ne

[PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Thomas Meyer
Use common library function rather than explicitly coding some variant of it yourself. Signed-off-by: Thomas Meyer --- net/tipc/name_table.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) V2: Coding style diff --git a/net/tipc/name_table.c b/net/tipc

kselftest on UML results - 4.13.0-11224-gcb1606851304

2017-09-12 Thread Thomas Meyer
Hi, Overall coverage rate: lines..: 34.6% (90861 of 262609 lines) functions..: 40.4% (9978 of 24683 functions) Coverage is available here: http://m3y3r.de/kselftest/4.13.0-11224-gcb1606851304/coverage/index.html My script also outputs those results files: 1.) Cyclomatic complexity

kselftest on UML results - 4.13.0-11224-gcb1606851304

2017-09-12 Thread Thomas Meyer
Hi, Overall coverage rate: lines..: 34.6% (90861 of 262609 lines) functions..: 40.4% (9978 of 24683 functions) Coverage is available here: http://m3y3r.de/kselftest/4.13.0-11224-gcb1606851304/coverage/index.html My script also outputs those results files: 1.) Cyclomatic complexity

[PATCH] ARC: reset: Only build on archs that have IOMEM

2017-09-11 Thread Thomas Meyer
This avoids the error: drivers/reset/reset-hsdk-v1.o: In function `hsdkv1_reset_probe': /home/thomas/git/linux/drivers/reset/reset-hsdk-v1.c:101: undefined reference to `devm_ioremap_resource' collect2: error: ld returned 1 exit status Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- d

[PATCH] ARC: reset: Only build on archs that have IOMEM

2017-09-11 Thread Thomas Meyer
This avoids the error: drivers/reset/reset-hsdk-v1.o: In function `hsdkv1_reset_probe': /home/thomas/git/linux/drivers/reset/reset-hsdk-v1.c:101: undefined reference to `devm_ioremap_resource' collect2: error: ld returned 1 exit status Signed-off-by: Thomas Meyer --- drivers/reset/Kconfig | 1

[PATCH] tipc: Use bsearch library function

2017-09-11 Thread Thomas Meyer
Use common library function rather than explicitly coding some variant of it yourself. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- net/tipc/name_table.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/net/tipc/name_table.c b/ne

[PATCH] tipc: Use bsearch library function

2017-09-11 Thread Thomas Meyer
Use common library function rather than explicitly coding some variant of it yourself. Signed-off-by: Thomas Meyer --- net/tipc/name_table.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c index

[PATCH] media: rc: Use bsearch library function

2017-09-08 Thread Thomas Meyer
Replace self coded binary search, by existing library version. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- drivers/media/rc/rc-main.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media

[PATCH] media: rc: Use bsearch library function

2017-09-08 Thread Thomas Meyer
Replace self coded binary search, by existing library version. Signed-off-by: Thomas Meyer --- drivers/media/rc/rc-main.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index

[PATCH 3/3] selftests/net: msg_zerocopy enable build with older kernel headers

2017-09-08 Thread Thomas Meyer
Explicitly define SO_EE_ORIGIN_ZEROCOPY. This makes the test program build with older kernel headers, e.g. from Debian 9. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- tools/testing/selftests/net/msg_zerocopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/t

[PATCH 2/3] selftests/intel_pstate: No need to compile test progs in the run script

2017-09-08 Thread Thomas Meyer
: line 35: gcc: command not found Problem compiling aperf.c. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- tools/testing/selftests/intel_pstate/run.sh | 6 -- 1 file changed, 6 deletions(-) diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_

[PATCH 3/3] selftests/net: msg_zerocopy enable build with older kernel headers

2017-09-08 Thread Thomas Meyer
Explicitly define SO_EE_ORIGIN_ZEROCOPY. This makes the test program build with older kernel headers, e.g. from Debian 9. Signed-off-by: Thomas Meyer --- tools/testing/selftests/net/msg_zerocopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net

[PATCH 2/3] selftests/intel_pstate: No need to compile test progs in the run script

2017-09-08 Thread Thomas Meyer
: line 35: gcc: command not found Problem compiling aperf.c. Signed-off-by: Thomas Meyer --- tools/testing/selftests/intel_pstate/run.sh | 6 -- 1 file changed, 6 deletions(-) diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh index

[PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for support

2017-09-08 Thread Thomas Meyer
The multiple_kprobes test case fails to check for KPROBE_EVENT support. Add the check to prevent a false test result. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for support

2017-09-08 Thread Thomas Meyer
The multiple_kprobes test case fails to check for KPROBE_EVENT support. Add the check to prevent a false test result. Signed-off-by: Thomas Meyer --- tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests

[PATCH] selftests/bpf: Make bpf_util work on uniprocessor systems

2017-09-08 Thread Thomas Meyer
The current implementation fails to work on uniprocessor systems. Fix the parser to also handle the uniprocessor case. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- tools/testing/selftests/bpf/bpf_util.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff

[PATCH] selftests/bpf: Make bpf_util work on uniprocessor systems

2017-09-08 Thread Thomas Meyer
The current implementation fails to work on uniprocessor systems. Fix the parser to also handle the uniprocessor case. Signed-off-by: Thomas Meyer --- tools/testing/selftests/bpf/bpf_util.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tools/testing

Re: [PATCH] selftests: breakpoints: re-order TEST_GEN_PROGS targets

2017-09-08 Thread Thomas Meyer
On Fri, Sep 08, 2017 at 11:41:21AM +0300, Fathi Boudra wrote: > Shuah, should I resend? Hi, I also did send some patches to his kernel.org address after lazy searching for "Shuah" in my inbox. But maybe his other email address is the correct one. with kind regards thomas

Re: [PATCH] selftests: breakpoints: re-order TEST_GEN_PROGS targets

2017-09-08 Thread Thomas Meyer
On Fri, Sep 08, 2017 at 11:41:21AM +0300, Fathi Boudra wrote: > Shuah, should I resend? Hi, I also did send some patches to his kernel.org address after lazy searching for "Shuah" in my inbox. But maybe his other email address is the correct one. with kind regards thomas

[PATCH 2/2] selftests/memfd: Add null check for freepgs.

2017-09-07 Thread Thomas Meyer
User mode linux kernel has no huge pages. So this variable will be null. Guard all tests in the shell script with a null check. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- tools/testing/selftests/memfd/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 2/2] selftests/memfd: Add null check for freepgs.

2017-09-07 Thread Thomas Meyer
User mode linux kernel has no huge pages. So this variable will be null. Guard all tests in the shell script with a null check. Signed-off-by: Thomas Meyer --- tools/testing/selftests/memfd/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests

[PATCH 1/2] selftests/memfd: Actually make the test executable.

2017-09-07 Thread Thomas Meyer
The current shell script misses the execute flag. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- tools/testing/selftests/memfd/run_tests.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tools/testing/selftests/memfd/run_tests.sh diff --git a/tool

[PATCH 1/2] selftests/memfd: Actually make the test executable.

2017-09-07 Thread Thomas Meyer
The current shell script misses the execute flag. Signed-off-by: Thomas Meyer --- tools/testing/selftests/memfd/run_tests.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tools/testing/selftests/memfd/run_tests.sh diff --git a/tools/testing/selftests/me

Re: [PATCH 6/10] ixgbe: Use ARRAY_SIZE macro

2017-09-06 Thread Thomas Meyer
On Tue, Sep 05, 2017 at 02:22:05PM -0700, David Miller wrote: > From: Joe Perches <j...@perches.com> > Date: Tue, 05 Sep 2017 13:01:18 -0700 > > > On Tue, 2017-09-05 at 21:45 +0200, Thomas Meyer wrote: > >> On Tue, Sep 05, 2017 at 11:50:44AM -0700, David Miller wr

Re: [PATCH 6/10] ixgbe: Use ARRAY_SIZE macro

2017-09-06 Thread Thomas Meyer
On Tue, Sep 05, 2017 at 02:22:05PM -0700, David Miller wrote: > From: Joe Perches > Date: Tue, 05 Sep 2017 13:01:18 -0700 > > > On Tue, 2017-09-05 at 21:45 +0200, Thomas Meyer wrote: > >> On Tue, Sep 05, 2017 at 11:50:44AM -0700, David Miller wrote: > >> >

Re: [PATCH 6/10] ixgbe: Use ARRAY_SIZE macro

2017-09-05 Thread Thomas Meyer
On Tue, Sep 05, 2017 at 11:50:44AM -0700, David Miller wrote: > From: Thomas Meyer <tho...@m3y3r.de> > Date: Sun, 03 Sep 2017 14:19:31 +0200 > > > Use ARRAY_SIZE macro, rather than explicitly coding some variant of it > > yourself. > > Found with: find -type f -

Re: [PATCH 6/10] ixgbe: Use ARRAY_SIZE macro

2017-09-05 Thread Thomas Meyer
On Tue, Sep 05, 2017 at 11:50:44AM -0700, David Miller wrote: > From: Thomas Meyer > Date: Sun, 03 Sep 2017 14:19:31 +0200 > > > Use ARRAY_SIZE macro, rather than explicitly coding some variant of it > > yourself. > > Found with: find -type f -name "*.c"

[PATCH] vt: Use bsearch library function in is_double_width

2017-09-05 Thread Thomas Meyer
Use bsearch library function instead of duplicated functionality. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- drivers/tty/vt/vt.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 2ebaba

[PATCH] vt: Use bsearch library function in is_double_width

2017-09-05 Thread Thomas Meyer
Use bsearch library function instead of duplicated functionality. Signed-off-by: Thomas Meyer --- drivers/tty/vt/vt.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 2ebaba16f785..ca55004a639e

Re: [PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7

2017-09-03 Thread Thomas Meyer
On Sun, Sep 03, 2017 at 08:36:02AM -0700, Joe Perches wrote: > On Sun, 2017-09-03 at 14:19 +0200, Thomas Meyer wrote: > > Use ARRAY_SIZE macro, rather than explicitly coding some variant of it > > yourself. > > > > Found with: find -type f -name "*.c" -o -na

Re: [PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7

2017-09-03 Thread Thomas Meyer
On Sun, Sep 03, 2017 at 08:36:02AM -0700, Joe Perches wrote: > On Sun, 2017-09-03 at 14:19 +0200, Thomas Meyer wrote: > > Use ARRAY_SIZE macro, rather than explicitly coding some variant of it > > yourself. > > > > Found with: find -type f -name "*.c" -o -na

[PATCH 1/10] KVM: PPC: Book3S HV: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 359c79cdf0cc..ae80181c4e1f 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -19,6 +19,7 @@ */ #include +#include #inc

[PATCH 1/10] KVM: PPC: Book3S HV: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer --- diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 359c79cdf0cc..ae80181c4e1f 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -19,6 +19,7 @@ */ #include +#include #include #include #include

[PATCH 6/10] ixgbe: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c index 72d84a065e34..fabb11475fb4 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c +++ b/drivers/net/ethernet/intel/ixgbe/i

[PATCH 6/10] ixgbe: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer --- diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c index 72d84a065e34..fabb11475fb4 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c @@ -21,6

[PATCH 3/10] drm/i915/gvt: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c index 3deadcbd5a24..7d8035093a1e 100644 --- a/drivers/gpu/drm/i915/gvt/vgpu.c +++ b/drivers/gpu/drm/i915/gvt/vgpu.c @@ -30,6 +30,7 @@ *Bi

[PATCH 3/10] drm/i915/gvt: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer --- diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c index 3deadcbd5a24..7d8035093a1e 100644 --- a/drivers/gpu/drm/i915/gvt/vgpu.c +++ b/drivers/gpu/drm/i915/gvt/vgpu.c @@ -30,6 +30,7 @@ *Bing Niu * */ +#include #include &q

[PATCH 9/10] [SCSI] bfa: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c index 3e1caec82554..4a03cd9fa63f 100644 --- a/drivers/scsi/bfa/bfa_core.c +++ b/drivers/scsi/bfa/bfa_core.c @@ -16,6 +16,7 @@ * General Public License for more

[PATCH 4/10] drm/nouveau/bios/init: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c index b58ee99f7bfc..440efa333d6c 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c +++ b/drivers/gpu/drm/nouve

[PATCH 9/10] [SCSI] bfa: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer --- diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c index 3e1caec82554..4a03cd9fa63f 100644 --- a/drivers/scsi/bfa/bfa_core.c +++ b/drivers/scsi/bfa/bfa_core.c @@ -16,6 +16,7 @@ * General Public License for more details. */ +#include

[PATCH 4/10] drm/nouveau/bios/init: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer --- diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c index b58ee99f7bfc..440efa333d6c 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/i

[PATCH 7/10] net/mlx4_core: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff --git a/drivers/net/ethernet/mellanox/mlx4/fw.c b/drivers/net/ethernet/mellanox/mlx4/fw.c index 041c0ed65929..8eca12927be0 100644 --- a/drivers/net/ethernet/mellanox/mlx4/fw.c +++ b/drivers/net/ethernet/mellanox/mlx4/fw.c @@ -36,6 +36

[PATCH 7/10] net/mlx4_core: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer --- diff --git a/drivers/net/ethernet/mellanox/mlx4/fw.c b/drivers/net/ethernet/mellanox/mlx4/fw.c index 041c0ed65929..8eca12927be0 100644 --- a/drivers/net/ethernet/mellanox/mlx4/fw.c +++ b/drivers/net/ethernet/mellanox/mlx4/fw.c @@ -36,6 +36,7 @@ #include

[PATCH 10/10] staging/atomisp: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
ication. Signed-off-by: Thomas Meyer <tho...@m3y3r.de> --- diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/ifmtr/src/ifmtr.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/ifmtr/src/ifmtr.c index a7c6bba7e094..11d3995ba0db 100644 --- a/drivers/staging/

<    1   2   3   4   5   6   7   >