the explanation of what the code really
does. cmpxchg64() will *succeed* for the winner of the race and
try_cmpxchg64() nicely documents this fact.
No functional change intended.
Signed-off-by: Uros Bizjak
Cc: Jani Nikula
Cc: Joonas Lahtinen
Cc: Rodrigo Vivi
Cc: Tvrtko Ursulin
Cc: David Airlie
On Mon, Feb 24, 2025 at 10:56 PM H. Peter Anvin wrote:
>
> On 2/24/25 07:24, Uros Bizjak wrote:
> >
> >
> > On 23. 02. 25 17:42, Kuan-Wei Chiu wrote:
> >> Refactor parity calculations to use the standard parity8() helper. This
> >> change eliminates r
faster and smaller (-10 bytes) code.
Reviewed-by: Uros Bizjak
Thanks,
Uros.
Co-developed-by: Yu-Chun Lin
Signed-off-by: Yu-Chun Lin
Signed-off-by: Kuan-Wei Chiu
---
arch/x86/kernel/bootflag.c | 18 +++---
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/arch/x86
On 23. 02. 25 17:42, Kuan-Wei Chiu wrote:
Several parts of the kernel contain redundant implementations of parity
calculations for 32-bit and 64-bit values. Introduces generic
parity32() and parity64() helpers in bitops.h, providing a standardized
and optimized implementation.
Subsequent patc
On 21. 11. 24 01:25, Dave Airlie wrote:
This is the main drm pull request for 6.13.
I've done a test merge into your tree, there were two conflicts both
of which seem easy enough to resolve for you.
There's a lot of rework, the panic helper support is being added to
more drivers, v3d gets s
Use atomic64_inc_return(&ref) instead of atomic64_add_return(1, &ref)
to use optimized implementation and ease register pressure around
the primitive for targets that implement optimized variant.
Signed-off-by: Uros Bizjak
Cc: Sumit Semwal
Cc: "Christian König"
---
drivers
Replace this pattern in active_fence_cb():
cmpxchg(*ptr, old, new) == old
... with the simpler and faster:
try_cmpxchg(*ptr, &old, new)
The x86 CMPXCHG instruction returns success in the ZF flag,
so this change saves a compare after the CMPXCHG.
Signed-off-by: Uros Bizjak
Cc:
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
---
lib/rbtree_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c
index 41ae3c7570d3
Include header to allow the removal of legacy
inclusion of from .
Signed-off-by: Uros Bizjak
Cc: Stephen Hemminger
Cc: Jamal Hadi Salim
Cc: Cong Wang
Cc: Jiri Pirko
Cc: "David S. Miller"
Cc: Eric Dumazet
Cc: Jakub Kicinski
Cc: Paolo Abeni
---
net/sched/sch_netem.c | 1
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: "David S. Miller"
Cc: Eric Dumazet
Cc: Jakub Kicinski
Cc: Paolo Abeni
---
lib/random32.c | 2 +-
1 file changed, 1 insertion(+),
Files that use prandom infrastructure are now converted to
use header instead of .
Remove the legacy inclusion of from
.
This is the "nice cleanup" part, wished in c0842fbc1b18.
Signed-off-by: Uros Bizjak
Fixes: c0842fbc1b18 ("random32: move the pseudo-random 32-bit definition
vert of d9f29deb7fe8
("prandom: Remove unused include").
[1] https://lore.kernel.org/lkml/20240812115945.484051-4-ubiz...@gmail.com/
Signed-off-by: Uros Bizjak
Cc: "Theodore Ts'o"
Cc: "Jason A. Donenfeld"
Cc: Kent Overstreet
---
include/linux/prandom.h | 1
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Acked-by: Petr Mladek
Cc: Steven Rostedt
Cc: Andy Shevchenko
Cc: Rasmus Villemoes
Cc: Sergey Senozhatsky
Cc: Andrew Morton
---
lib/test_scanf.c | 2 +-
1 file changed
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: Alexei Starovoitov
Cc: Daniel Borkmann
Cc: Andrii Nakryiko
Cc: Martin KaFai Lau
Cc: Eduard Zingerman
Cc: Song Liu
Cc: Yonghong Song
Cc: John
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: Jiri Pirko
---
lib/test_parman.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/test_parman.c b/lib/test_parman.c
index
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Acked-by: Miquel Raynal
Cc: Richard Weinberger
Cc: Vignesh Raghavendra
---
drivers/mtd/tests/oobtest.c | 2 +-
drivers/mtd/tests/pagetest.c| 2 +-
drivers/mtd
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Alexei Starovoitov
Cc: Daniel Borkmann
Cc: John Fastabend
Cc: Andrii Nakryiko
Cc: Martin KaFai Lau
Cc: Eduard Zingerman
Cc: Song Liu
Cc: Yonghong Song
Cc: KP Singh
Include header to allow the removal of legacy
inclusion of from .
Signed-off-by: Uros Bizjak
Cc: Brendan Higgins
Cc: David Gow
Cc: Rae Moar
---
lib/kunit/string-stream-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/kunit/string-stream-test.c b/lib/kunit/string-stream-test.c
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Reviewed-by: Bart Van Assche
Cc: Hannes Reinecke
Cc: "James E.J. Bottomley"
Cc: "Martin K. Petersen"
---
include/scsi/libfcoe.h | 2 +-
1 file change
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
---
lib/interval_tree_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c
index
Include to allow the removal of legacy
inclusion of from .
Signed-off-by: Uros Bizjak
Acked-by: Hans Verkuil
Cc: Mauro Carvalho Chehab
Cc: linux-me...@vger.kernel.org
---
drivers/media/test-drivers/vivid/vivid-vid-cap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/test
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Maarten Lankhorst
Cc: Maxime Ripard
Cc: Thomas Zimmermann
Cc: David Airlie
Cc: Daniel Vetter
---
drivers/gpu/drm/lib/drm_random.h | 2 +-
1 file changed, 1 insertion
Include header to allow the removal of legacy
inclusion of from .
Signed-off-by: Uros Bizjak
Acked-by: Eric Biggers
Cc: "Theodore Y. Ts'o"
Cc: Jaegeuk Kim
---
v2: Include instead of
---
fs/crypto/keyring.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/crypto
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Acked-by: Jani Nikula
Cc: Joonas Lahtinen
Cc: Rodrigo Vivi
Cc: Tvrtko Ursulin
Cc: David Airlie
Cc: Daniel Vetter
---
drivers/gpu/drm/i915/selftests/i915_gem.c| 2
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Herbert Xu
Cc: "David S. Miller"
---
crypto/testmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/testmgr.c b/crypto/testm
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Dave Hansen
Cc: Andy Lutomirski
Cc: Peter Zijlstra
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: Borislav Petkov
Cc: "H. Peter Anvin"
---
arch/x86/mm/kaslr.c
dt
Cc: Andy Shevchenko
Cc: Rasmus Villemoes
Cc: Sergey Senozhatsky
Cc: Stephen Hemminger
Cc: Jamal Hadi Salim
Cc: Cong Wang
Cc: Kent Overstreet
---
v2: - Reword commit messages to mention the removal of legacy inclusion
of from
- Add missing substitution in crypto/testmgr.c
On Mon, Sep 9, 2024 at 5:57 PM Jason A. Donenfeld wrote:
> On Mon, Sep 09, 2024 at 09:53:43AM +0200, Uros Bizjak wrote:
> > a) Substitutes the inclusion of with the
> > inclusion of where needed (patches 1 - 17).
> >
> > b) Removes legacy inclusion of from
> >
vert of d9f29deb7fe8
("prandom: Remove unused include").
[1] https://lore.kernel.org/lkml/20240812115945.484051-4-ubiz...@gmail.com/
Signed-off-by: Uros Bizjak
Cc: "Theodore Ts'o"
Cc: "Jason A. Donenfeld"
Cc: Kent Overstreet
---
include/linux/prandom.h | 1
Files that use prandom infrastructure are now converted to
use header instead of .
Remove the legacy inclusion of from
.
This is the "nice cleanup" part, wished in c0842fbc1b18.
Signed-off-by: Uros Bizjak
Fixes: c0842fbc1b18 ("random32: move the pseudo-random 32-bit definition
Include header to allow the removal of legacy
inclusion of from .
Signed-off-by: Uros Bizjak
Cc: Stephen Hemminger
Cc: Jamal Hadi Salim
Cc: Cong Wang
Cc: Jiri Pirko
Cc: "David S. Miller"
Cc: Eric Dumazet
Cc: Jakub Kicinski
Cc: Paolo Abeni
---
net/sched/sch_netem.c | 1
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: "David S. Miller"
Cc: Eric Dumazet
Cc: Jakub Kicinski
Cc: Paolo Abeni
---
lib/random32.c | 2 +-
1 file changed, 1 insertion(+),
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Petr Mladek
Cc: Steven Rostedt
Cc: Andy Shevchenko
Cc: Rasmus Villemoes
Cc: Sergey Senozhatsky
Cc: Andrew Morton
---
lib/test_scanf.c | 2 +-
1 file changed, 1
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: Jiri Pirko
---
lib/test_parman.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/test_parman.c b/lib/test_parman.c
index
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: Alexei Starovoitov
Cc: Daniel Borkmann
Cc: Andrii Nakryiko
Cc: Martin KaFai Lau
Cc: Eduard Zingerman
Cc: Song Liu
Cc: Yonghong Song
Cc: John
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
---
lib/rbtree_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c
index 41ae3c7570d3
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
---
lib/interval_tree_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c
index
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Brendan Higgins
Cc: David Gow
Cc: Rae Moar
---
lib/kunit/string-stream-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/kunit/string-stream-test.c b/lib
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Hannes Reinecke
Cc: "James E.J. Bottomley"
Cc: "Martin K. Petersen"
---
include/scsi/libfcoe.h | 2 +-
1 file changed, 1 insertion(+), 1 delet
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Alexei Starovoitov
Cc: Daniel Borkmann
Cc: John Fastabend
Cc: Andrii Nakryiko
Cc: Martin KaFai Lau
Cc: Eduard Zingerman
Cc: Song Liu
Cc: Yonghong Song
Cc: KP Singh
Include header to allow the removal of legacy
inclusion of from .
Signed-off-by: Uros Bizjak
Cc: Eric Biggers
Cc: "Theodore Y. Ts'o"
Cc: Jaegeuk Kim
---
v2: Include instead of
---
fs/crypto/keyring.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/crypto/keyrin
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Miquel Raynal
Cc: Richard Weinberger
Cc: Vignesh Raghavendra
---
drivers/mtd/tests/oobtest.c | 2 +-
drivers/mtd/tests/pagetest.c| 2 +-
drivers/mtd/tests
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Cc: linux-me...@vger.kernel.org
---
drivers/media/test-drivers/vivid/vivid-vid-cap.c | 1 +
1 file changed, 1 insertion(+)
diff
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Acked-by: Jani Nikula
Cc: Joonas Lahtinen
Cc: Rodrigo Vivi
Cc: Tvrtko Ursulin
Cc: David Airlie
Cc: Daniel Vetter
---
drivers/gpu/drm/i915/selftests/i915_gem.c| 2
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Maarten Lankhorst
Cc: Maxime Ripard
Cc: Thomas Zimmermann
Cc: David Airlie
Cc: Daniel Vetter
---
drivers/gpu/drm/lib/drm_random.h | 2 +-
1 file changed, 1 insertion
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Herbert Xu
Cc: "David S. Miller"
---
crypto/testmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/testmgr.c b/crypto/testm
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Dave Hansen
Cc: Andy Lutomirski
Cc: Peter Zijlstra
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: Borislav Petkov
Cc: "H. Peter Anvin"
---
arch/x86/mm/kaslr.c
akub Kicinski
Cc: Paolo Abeni
Cc: Jiri Pirko
Cc: Petr Mladek
Cc: Steven Rostedt
Cc: Andy Shevchenko
Cc: Rasmus Villemoes
Cc: Sergey Senozhatsky
Cc: Stephen Hemminger
Cc: Jamal Hadi Salim
Cc: Cong Wang
Cc: Kent Overstreet
---
v2: - Reword commit messages to mention the removal of legac
vert of d9f29deb7fe8
("prandom: Remove unused include").
[1] https://lore.kernel.org/lkml/20240812115945.484051-4-ubiz...@gmail.com/
Signed-off-by: Uros Bizjak
Cc: "Theodore Ts'o"
Cc: "Jason A. Donenfeld"
Cc: Kent Overstreet
---
include/linux/prandom.h | 1
Files that use prandom infrastructure are now converted to
use header instead of .
Remove the legacy inclusion of from
.
This is the "nice cleanup" part, wished in c0842fbc1b18.
Signed-off-by: Uros Bizjak
Fixes: c0842fbc1b18 ("random32: move the pseudo-random 32-bit definition
Include header to allow the removal of legacy
inclusion of from .
Signed-off-by: Uros Bizjak
Cc: Stephen Hemminger
Cc: Jamal Hadi Salim
Cc: Cong Wang
Cc: Jiri Pirko
Cc: "David S. Miller"
Cc: Eric Dumazet
Cc: Jakub Kicinski
Cc: Paolo Abeni
---
net/sched/sch_netem.c | 1
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Petr Mladek
Cc: Steven Rostedt
Cc: Andy Shevchenko
Cc: Rasmus Villemoes
Cc: Sergey Senozhatsky
Cc: Andrew Morton
---
lib/test_scanf.c | 2 +-
1 file changed, 1
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
---
lib/rbtree_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c
index 41ae3c7570d3
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: Alexei Starovoitov
Cc: Daniel Borkmann
Cc: Andrii Nakryiko
Cc: Martin KaFai Lau
Cc: Eduard Zingerman
Cc: Song Liu
Cc: Yonghong Song
Cc: John
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: Jiri Pirko
---
lib/test_parman.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/test_parman.c b/lib/test_parman.c
index
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Brendan Higgins
Cc: David Gow
Cc: Rae Moar
---
lib/kunit/string-stream-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/kunit/string-stream-test.c b/lib
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
Cc: "David S. Miller"
Cc: Eric Dumazet
Cc: Jakub Kicinski
Cc: Paolo Abeni
---
lib/random32.c | 2 +-
1 file changed, 1 insertion(+),
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Andrew Morton
---
lib/interval_tree_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c
index
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Alexei Starovoitov
Cc: Daniel Borkmann
Cc: John Fastabend
Cc: Andrii Nakryiko
Cc: Martin KaFai Lau
Cc: Eduard Zingerman
Cc: Song Liu
Cc: Yonghong Song
Cc: KP Singh
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Hannes Reinecke
Cc: "James E.J. Bottomley"
Cc: "Martin K. Petersen"
---
include/scsi/libfcoe.h | 2 +-
1 file changed, 1 insertion(+), 1 delet
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Cc: linux-me...@vger.kernel.org
---
drivers/media/test-drivers/vivid/vivid-vid-cap.c | 1 +
1 file changed, 1 insertion(+)
diff
Include header to allow the removal of legacy
inclusion of from .
Signed-off-by: Uros Bizjak
Cc: Eric Biggers
Cc: "Theodore Y. Ts'o"
Cc: Jaegeuk Kim
---
v2: Include instead of
---
fs/crypto/keyring.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/crypto/keyrin
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Miquel Raynal
Cc: Richard Weinberger
Cc: Vignesh Raghavendra
---
drivers/mtd/tests/oobtest.c | 2 +-
drivers/mtd/tests/pagetest.c| 2 +-
drivers/mtd/tests
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Maarten Lankhorst
Cc: Maxime Ripard
Cc: Thomas Zimmermann
Cc: David Airlie
Cc: Daniel Vetter
---
drivers/gpu/drm/lib/drm_random.h | 2 +-
1 file changed, 1 insertion
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Acked-by: Jani Nikula
Cc: Joonas Lahtinen
Cc: Rodrigo Vivi
Cc: Tvrtko Ursulin
Cc: David Airlie
Cc: Daniel Vetter
---
drivers/gpu/drm/i915/selftests/i915_gem.c| 2
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Herbert Xu
Cc: "David S. Miller"
---
crypto/testmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/testmgr.c b/crypto/testm
Substitute the inclusion of header with
to allow the removal of legacy inclusion
of from .
Signed-off-by: Uros Bizjak
Cc: Dave Hansen
Cc: Andy Lutomirski
Cc: Peter Zijlstra
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: Borislav Petkov
Cc: "H. Peter Anvin"
---
arch/x86/mm/kaslr.c
Cc: Steven Rostedt
Cc: Andy Shevchenko
Cc: Rasmus Villemoes
Cc: Sergey Senozhatsky
Cc: Stephen Hemminger
Cc: Jamal Hadi Salim
Cc: Cong Wang
Cc: Kent Overstreet
---
v2: - Reword commit messages to mention the removal of legacy inclusion
of from
- Add missing substitution in cry
On Thu, Sep 5, 2024 at 2:41 PM Andy Shevchenko
wrote:
>
> On Thu, Sep 05, 2024 at 02:17:08PM +0200, Uros Bizjak wrote:
> > There were several attempts to resolve circular include dependency
> > after the addition of percpu.h: 1c9df907da83 ("random: fix circular
> >
Usage of pseudo-random functions requires inclusion of
header instead of .
Signed-off-by: Uros Bizjak
Cc: Maarten Lankhorst
Cc: Maxime Ripard
Cc: Thomas Zimmermann
Cc: David Airlie
Cc: Daniel Vetter
Cc: dri-devel@lists.freedesktop.org
---
drivers/gpu/drm/lib/drm_random.h | 2 +-
1 file
Usage of pseudo-random functions requires inclusion of
header instead of .
Signed-off-by: Uros Bizjak
Cc: Jani Nikula
Cc: Joonas Lahtinen
Cc: Rodrigo Vivi
Cc: Tvrtko Ursulin
Cc: David Airlie
Cc: Daniel Vetter
Cc: intel-...@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Cc: "David S. Miller"
Cc: Eric Dumazet
Cc: Jakub Kicinski
Cc: Paolo Abeni
Cc: Jiri Pirko
Cc: Petr Mladek
Cc: Steven Rostedt
Cc: Andy Shevchenko
Cc: Rasmus Villemoes
Cc: Sergey Senozhatsky
Cc: Stephen Hemminger
Cc: Jamal Hadi Salim
Cc: Cong Wang
Cc: Uros Bizjak
Cc: Kent Overstree
On Tue, Jul 4, 2023 at 10:37 AM Jani Nikula wrote:
>
> On Tue, 04 Jul 2023, Uros Bizjak wrote:
> > On Tue, Jul 4, 2023 at 9:28 AM Jani Nikula
> > wrote:
> >> You could save everyone a lot of time by actually documenting what these
> >> func
On Tue, Jul 4, 2023 at 9:28 AM Jani Nikula wrote:
>
> On Mon, 03 Jul 2023, Uros Bizjak wrote:
> > Use local64_try_cmpxchg instead of local64_cmpxchg (*ptr, old, new) == old
> > in i915_pmu_event_read. x86 CMPXCHG instruction returns success in ZF flag,
> > so this chan
value to "old" when cmpxchg
fails. There is no need to re-read the value in the loop.
No functional change intended.
Cc: Jani Nikula
Cc: Joonas Lahtinen
Cc: Rodrigo Vivi
Cc: Tvrtko Ursulin
Cc: David Airlie
Cc: Daniel Vetter
Signed-off-by: Uros Bizjak
---
drivers/gpu/drm/i915/i915
to "old" when cmpxchg
fails. There is no need to re-read the value in the loop.
No functional change intended.
Cc: Alex Deucher
Cc: "Christian König"
Cc: "Pan, Xinhui"
Cc: David Airlie
Cc: Daniel Vetter
Signed-off-by: Uros Bizjak
---
drivers/gpu/drm/amd/am
76 matches
Mail list logo