Whamcloud - gitweb
LU-4423 lnet: check for null pointer at line 1569 of router.c
[fs/lustre-release.git] / contrib / scripts / checkpatch.pl
index 6f24be5..a68675b 100755 (executable)
@@ -438,6 +438,21 @@ my %dep_functions = (
 
        'cfs_rcu_head_t',               'struct rcu_head',
 
+       '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',
+
+       'LPROCFS',                      'CONFIG_PROC_FS',
        'alloca',                       'malloc',
        'mktemp',                       'mkstemp',
        'sprintf',                      'snprintf',
@@ -3450,6 +3465,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