lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 5 Oct 2021 20:01:59 +0200
From:   Rasmus Villemoes <>
To:     Steven Rostedt <>,
        LKML <>
Cc:     Linus Torvalds <>,
        "Paul E. McKenney" <>,
        Josh Triplett <>,
        Mathieu Desnoyers <>,
        Lai Jiangshan <>,
        Joel Fernandes <>,
        Pablo Neira Ayuso <>,
        Jozsef Kadlecsik <>,
        Florian Westphal <>,
        David Miller <>,
        Hideaki YOSHIFUJI <>,
        David Ahern <>,
        Jakub Kicinski <>,,,,
Subject: Re: [RFC][PATCH] rcu: Use typeof(p) instead of typeof(*p) *

On 05/10/2021 15.47, Steven Rostedt wrote:

> That is, instead of declaring: typeof(*p) *_p; just do:
>  typeof(p) _p;
> Also had to update a lot of the function pointer initialization in the
> networking code, as a function address must be passed as an argument in

I would think that one could avoid that churn by saying

  typeof((p) + 0)

instead of just "typeof(p)", to force the decay to a pointer.


Powered by blists - more mailing lists