X-Git-Url: http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=blobdiff_plain;f=include%2Flinux%2Flockdep.h;h=f6279f68a8270c143196c1c0c09afbea2cff02be;hp=9dc46db2985e9245560223d408f9b03a05eb55b8;hb=851a67b825540a8e00c0be3ee25e4627ba8b133b;hpb=34a3d1e83708702ac6cb872215e68cd07dae298b diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 9dc46db..f6279f6 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -253,6 +253,13 @@ extern void lockdep_init_map(struct lockdep_map *lock, const char *name, struct lock_class_key *key, int subclass); /* + * To initialize a lockdep_map statically use this macro. + * Note that _name must not be NULL. + */ +#define STATIC_LOCKDEP_MAP_INIT(_name, _key) \ + { .name = (_name), .key = (void *)(_key), } + +/* * Reinitialize a lock key - for cases where there is special locking or * special initialization of locks so that the validator gets the scope * of dependencies wrong: they are either too broad (they need a class-split)