Whamcloud - gitweb
LU-7038 obdclass: lu_site_purge() to handle purge-all
[fs/lustre-release.git] / contrib / scripts / checkpatch.pl
index 6f24be5..dc85c7c 100755 (executable)
@@ -357,6 +357,7 @@ my %dep_includes = (
 );
 
 my %dep_functions = (
+       'alloca',                       'malloc',
        'CFS_ATOMIC_INIT',              'ATOMIC_INIT',
        'cfs_atomic_add',               'atomic_add',
        'cfs_atomic_add_return',        'atomic_add_return',
@@ -438,12 +439,39 @@ my %dep_functions = (
 
        'cfs_rcu_head_t',               'struct rcu_head',
 
-       'alloca',                       'malloc',
+       'cfs_hash_lock_t',              'union cfs_hash_lock',
+       'cfs_hash_bucket_t',            'struct cfs_hash_bucket',
+       'cfs_hash_bd_t',                'struct cfs_hash_bd',
+       'cfs_hash_t',                   'struct cfs_hash',
+       'cfs_hash_lock_ops_t',          'struct cfs_hash_lock_ops',
+       'cfs_hash_hlist_ops_t',         'struct cfs_hash_hlist_ops',
+       'cfs_hash_ops_t',               'struct cfs_hash_ops',
+       'cfs_hash_head_t',              'struct cfs_hash_head',
+       'cfs_hash_head_dep_t',          'struct cfs_hash_head_dep',
+       'cfs_hash_dhead_t',             'struct cfs_hash_dhead',
+       'cfs_hash_dhead_dep_t',         'struct cfs_hash_dhead_dep',
+       'cfs_hash_lookup_intent_t',     'enum cfs_hash_lookup_intent',
+       'cfs_hash_cond_arg_t',          'struct cfs_hash_cond_arg',
+
+       'ldlm_appetite_t',              'enum ldlm_appetite',
+       'ldlm_cancel_flags_t',          'enum ldlm_cancel_flags',
+       'ldlm_error_t',                 'enum ldlm_error',
+       'ldlm_ns_hash_def_t',           'struct ldlm_ns_hash_def',
+       'ldlm_mode_t',                  'enum ldlm_mode',
+       'ldlm_ns_type_t',               'enum ldlm_ns_type',
+       'ldlm_policy_data_t',           'enum ldlm_policy_data',
+       'ldlm_policy_res_t',            'enum ldlm_policy_res',
+       'ldlm_side_t',                  'enum ldlm_side',
+       'ldlm_type_t',                  'enum ldlm_type',
+       'ldlm_wire_policy_data_t',      'union ldlm_wire_policy_data',
+
+       'LPROCFS',                      'CONFIG_PROC_FS',
        'mktemp',                       'mkstemp',
        'sprintf',                      'snprintf',
        'strcpy',                       'strncpy',
        'strcat',                       'strncat',
        'tempnam',                      'mkstemp',
+       'f_dentry',                     'f_path.dentry',
 );
 
 my @rawlines = ();
@@ -3450,6 +3478,11 @@ sub process {
                        WARN("EXPORTED_WORLD_WRITABLE",
                             "Exporting world writable files is usually an error. Consider more restrictive permissions.\n" . $herecurr);
                }
+
+               if ($rawline =~ /version 3/) {
+                       WARN("GPLV3",
+                            "using GPLv3 is usually wrong\n" . $herecurr);
+               }
        }
 
        # If we have no input at all, then there is nothing to report on