Use kvfree() to fix the following Coccinelle/coccicheck warning reported
by kfree_mismatch.cocci:
WARNING kvmalloc is used to allocate this memory at line 10398
Reviewed-by: Tomer Tayar
Signed-off-by: Thorsten Blum
---
drivers/accel/habanalabs/gaudi2/gaudi2.c | 2 +-
1 file changed, 1
Use kvfree() to fix the following Coccinelle/coccicheck warning reported
by kfree_mismatch.cocci:
WARNING kvmalloc is used to allocate this memory at line 10398
Reviewed-by: Tomer Tayar
Signed-off-by: Thorsten Blum
---
drivers/accel/habanalabs/gaudi2/gaudi2.c | 2 +-
1 file changed, 1
l seems to be able to handle this now.
Signed-off-by: Thorsten Blum
---
include/uapi/drm/drm.h | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 16122819edfe..315af7b19c97 100644
--- a/include/uapi/drm/drm.h
+++ b/includ
: Thorsten Blum
---
drivers/gpu/drm/i915/i915_perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 0b1cd4c7a525..24722e758aaf 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915
On 10. Jul 2024, at 13:38, Ville Syrjälä wrote:
> On Wed, Jul 10, 2024 at 09:46:51AM +0200, Thorsten Blum wrote:
>> As the comment explains, the if check ensures that the divisor oa_period
>> is a u32. Explicitly cast oa_period to u32 to remove the following
>> Coccinel
: do_div() does a 64-by-32 division, please consider using div64_u64
instead
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/tegra/hub.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c
index f21e57e8599e..e0c2019a591b
Use the vma_pages() helper function and remove the following
Coccinelle/coccicheck warning reported by vma_pages.cocci:
WARNING: Consider using vma_pages helper on vma
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/xe/xe_oa.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff
preferred div_u64() function instead of the do_div() macro and
remove the now unnecessary local variable tmp.
Signed-off-by: Thorsten Blum
---
Changes in v2:
- Use div_u64() instead of do_div() after feedback from Ville Syrjälä
- Link to v1:
https://lore.kernel.org/linux-kernel/20240710074650.419902-2
preferred div_u64() function instead of the do_div() macro and
remove the now unnecessary local variable tmp.
Inline the if/else and invert the conditional expression.
Reviewed-by: Jonathan Cavitt
Signed-off-by: Thorsten Blum
---
Changes in v2:
- Use div_u64() instead of do_div() after feedback from
Use the vma_pages() helper function and remove the following
Coccinelle/coccicheck warning reported by vma_pages.cocci:
WARNING: Consider using vma_pages helper on vma
Reviewed-by: Ashutosh Dixit
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/xe/xe_oa.c | 3 +--
1 file changed, 1
Merge the identical if/elif code blocks and remove the following two
warnings reported by make includecheck:
asm/ioctl.h is included more than once
linux/types.h is included more than once
Signed-off-by: Thorsten Blum
---
include/uapi/drm/drm.h | 8 +---
1 file changed, 1
On 15. May 2024, at 09:43, Luc Ma wrote:
> On Tue, 14 May 2024 at 19:37, Thorsten Blum wrote:
>>
>> Merge the identical if/elif code blocks and remove the following two
>> warnings reported by make includecheck:
>>
>>asm/ioctl.h is included more tha
On 15. May 2024, at 11:22, Thorsten Blum wrote:
> On 15. May 2024, at 09:43, Luc Ma wrote:
>> On Tue, 14 May 2024 at 19:37, Thorsten Blum wrote:
>>>
>>> Merge the identical if/elif code blocks and remove the following two
>>> warnings reported by make includ
Fixes the following Coccinelle/coccicheck warning reported by
kfree_mismatch.cocci:
WARNING kvmalloc is used to allocate this memory at line 10398
Signed-off-by: Thorsten Blum
---
drivers/accel/habanalabs/gaudi2/gaudi2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all
occurrences of "the the" and replace them with a single "the".
Changes only comments and documentation - no code changes.
Signed-off-by: Thorsten Blum
---
Documentation/trace/histogram.rst
Use `find . -type f -exec sed -i 's/\/the/g' {} +` to find all
occurrences of "the the" and replace them with a single "the".
In arch/arm/include/asm/unwind.h replace "the the" with "to the".
Changes only comments and documentation - no code c
On 11. Apr 2024, at 17:25, Dan Carpenter wrote:
>
> It's tricky to know which tree a patch like this would go through.
The patch is based on the mainline tree. Should I have sent it directly to
Linus then?
I'm relatively new here and therefore only sent it to the corresponding mailing
lists.
T
s/,please/, please/
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 7753a2e64d41..3cba0e196ca8 100644
The if condition !A || A && B can be simplified to !A || B.
Fixes the following Coccinelle/coccicheck warning reported by
excluded_middle.cocci:
WARNING !A || A && B is equivalent to !A || B
Compile-tested only.
Acked-by: Thomas Zimmermann
Signed-off-by: Thorsten Bl
Use kvfree() to fix the following Coccinelle/coccicheck warning reported
by kfree_mismatch.cocci:
WARNING kvmalloc is used to allocate this memory at line 10398
Signed-off-by: Thorsten Blum
---
drivers/accel/habanalabs/gaudi2/gaudi2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
The if condition !A || A && B can be simplified to !A || B.
Fixes the following Coccinelle/coccicheck warning reported by
excluded_middle.cocci:
WARNING !A || A && B is equivalent to !A || B
Compile-tested only.
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/xe/xe_
On 16. May 2024, at 03:24, Luc Ma wrote:
> On Wed, 15 May 2024 at 17:31, Thorsten Blum wrote:
>> On 15. May 2024, at 11:22, Thorsten Blum wrote:
>>> On 15. May 2024, at 09:43, Luc Ma wrote:
>>>> On Tue, 14 May 2024 at 19:37, Thorsten Blum
>>>> wrote
cause
make headers_install seems to be able to handle this now.
Signed-off-by: Thorsten Blum
---
include/uapi/drm/drm.h | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 16122819edfe..315af7b19c97 100644
--- a/include/uapi/drm/d
WARNING !A || A && B is equivalent to !A || B
Compile-tested only.
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c | 6 +++---
.../gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
The if condition !A || A && B can be simplified to !A || B.
Fixes the following Coccinelle/coccicheck warning reported by
excluded_middle.cocci:
WARNING !A || A && B is equivalent to !A || B
Compile-tested only.
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/drm_man
The address of a struct field is usually not NULL, making this test
always truthy. Test the boolean value instead.
Fixes the following Coccinelle/coccicheck error reported by
test_addr.cocci:
ERROR: test of a variable/field address
Compile-tested only.
Signed-off-by: Thorsten Blum
WARNING: NULL check before some freeing functions is not needed
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
index
WARNING: NULL check before some freeing functions is not needed
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
index
Use memdup_user() instead of kmalloc() followed by copy_from_user() to
simplify set_context_image().
Fixes the following Coccinelle/coccicheck warning reported by
memdup_user.cocci:
WARNING opportunity for memdup_user
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/i915/gem
Remove hard-coded strings by using the str_enabled_disabled() helper
function.
Signed-off-by: Thorsten Blum
---
drivers/video/fbdev/sm501fb.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/video/fbdev/sm501fb.c b/drivers/video/fbdev/sm501fb.c
index 86ecbb2d86db
the argument is omitted. This
makes the explicit size arguments unnecessary.
No functional changes intended.
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/drm_property.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm
the argument is omitted. This
makes the explicit size arguments unnecessary.
No functional changes intended.
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/drm_property.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm
strncpy() is deprecated for NUL-terminated destination buffers. Use
strscpy() instead and remove the manual NUL-termination.
Compile-tested only.
Link: https://github.com/KSPP/linux/issues/90
Cc: linux-harden...@vger.kernel.org
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/gma500
the argument is omitted. This
makes the explicit size arguments unnecessary.
No functional changes intended.
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/drm_property.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm
the argument is omitted. This
makes the explicit size arguments unnecessary.
No functional changes intended.
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/drm_property.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm
the argument is omitted. This
makes the explicit size arguments unnecessary.
No functional changes intended.
Signed-off-by: Thorsten Blum
---
drivers/gpu/drm/drm_property.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm
36 matches
Mail list logo