RE: [PATCH 02/10] compiler.h: add is_const() as a replacement of __is_constexpr()

2024-12-08 Thread David Laight
From: Martin Uecker > Sent: 07 December 2024 23:52 ... > While the compiler can not automatically prove every use > of VLA bounded, it can reliably diagnose the cases where it > can *not* see that it is bounded. Consider this example: > > void oob(int n, char p[n]); > void f(unsigned int n) > { >

Re: [PATCH 02/10] compiler.h: add is_const() as a replacement of __is_constexpr()

2024-12-08 Thread Martin Uecker
Am Sonntag, dem 08.12.2024 um 11:26 + schrieb David Laight: > From: Martin Uecker > > Sent: 07 December 2024 23:52 > ... > > While the compiler can not automatically prove every use > > of VLA bounded, it can reliably diagnose the cases where it > > can *not* see that it is bounded. Consider th

Re: [PATCH 02/10] compiler.h: add is_const() as a replacement of __is_constexpr()

2024-12-08 Thread Martin Uecker
Am Samstag, dem 07.12.2024 um 17:58 -0800 schrieb Linus Torvalds: > On Sat, 7 Dec 2024 at 15:52, Martin Uecker wrote: > > > > Can you point me to some horror stories? > > So the main issues tended to be about various static verification tools. > > Ranging from things like the stackleak plugin f

Re: [PATCH 02/10] compiler.h: add is_const() as a replacement of __is_constexpr()

2024-12-08 Thread Martin Uecker
Am Sonntag, dem 08.12.2024 um 16:48 + schrieb David Laight: > From: Martin Uecker > > Sent: 08 December 2024 12:38 ... > ... > > So a lot of this macro business seems to be necessary > > to avoid creating warnings for ISO VLAs when instead you really > > care about the created code not having

Re: [PATCH 02/10] compiler.h: add is_const() as a replacement of __is_constexpr()

2024-12-08 Thread Linus Torvalds
On Sun, 8 Dec 2024 at 10:11, Martin Uecker wrote: > > > > A lot of the 'macro business' for min/max is avoiding unexpected > > conversion of negative values to very large unsigned ones. > > And no, -Wsign-compare is spectacularly useless. > > This is a different topic, but what would be needed her

✗ Fi.CI.BUILD: failure for linux-next: build failure after merge of the drm-misc tree

2024-12-08 Thread Patchwork
== Series Details == Series: linux-next: build failure after merge of the drm-misc tree URL : https://patchwork.freedesktop.org/series/142270/ State : failure == Summary == Error: make failed CALLscripts/checksyscalls.sh DESCEND objtool INSTALL libsubcmd_headers CHK kernel/khea

linux-next: build failure after merge of the drm-misc tree

2024-12-08 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/module.h:22, from include/linux/device/driver.h:21, from include/linux/device.h:32, from include/linux/d

[PATCH] drm/i915: Update license on selftest lists to MIT

2024-12-08 Thread Ed Maste
These two files (i915_live_selftests.h, i915_mock_selftests.h) were introduced in commit 953c7f82eb89 ("drm/i915: Provide a hook for selftests") and are effectively just a list of selftests. The selftest implementation itself is largely in i915_selftest.c, and uses a MIT license. Graphics drivers

✓ i915.CI.BAT: success for drm/i915: Update license on selftest lists to MIT

2024-12-08 Thread Patchwork
== Series Details == Series: drm/i915: Update license on selftest lists to MIT URL : https://patchwork.freedesktop.org/series/142266/ State : success == Summary == CI Bug Log - changes from CI_DRM_15804 -> Patchwork_142266v1 Summary ---

RE: [PATCH 02/10] compiler.h: add is_const() as a replacement of __is_constexpr()

2024-12-08 Thread David Laight
From: Martin Uecker > Sent: 08 December 2024 12:38 > > Am Sonntag, dem 08.12.2024 um 11:26 + schrieb David Laight: > > From: Martin Uecker > > > Sent: 07 December 2024 23:52 > > ... > > > While the compiler can not automatically prove every use > > > of VLA bounded, it can reliably diagnose th