On Wed, Mar 17, 2021 at 02:32:27PM -0400, Waiman Long wrote:Good, just to confirm the right way to move forward.
On 3/17/21 1:45 PM, Peter Zijlstra wrote:So linkers can merge literals, but no guarantee. But yeah, lets just
The name string itself may be duplicated for multiple instances of+# define __DEP_MAP_WW_MUTEX_INITIALIZER(lockname, class) \,name = #class "_mutex", \
+ , .dep_map = { \
+ .key = &(class).mutex_key, \
+ .name = (class).mutex_name, \
and it 'works', but shees!
DEFINE_WW_MUTEX(). Do you want to keep DEFINE_WW_MUTEX() or just use
ww_mutex_init() for all?
kill the thing, less tricky macro crud to worry about.