]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-update-tasklist-lock-test-20070226
authorStephan Wiesand <Stephan.Wiesand@desy.de>
Mon, 26 Feb 2007 17:53:33 +0000 (17:53 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 26 Feb 2007 17:53:33 +0000 (17:53 +0000)
FIXES 54916

make the tasklist lock test actually detect GPL stupidity

(cherry picked from commit bed42291bcc16065f23e964b64d60090ffaa96f9)

src/cf/linux-test4.m4

index 3002d93d5a0cf80c04d517a7b62ad16f46b0c2fd..653464fb6e145fdd60e49a3fe926677623e27873 100644 (file)
@@ -6,6 +6,7 @@ AC_DEFUN([LINUX_EXPORTS_TASKLIST_LOCK], [
 #include <linux/sched.h>],
 [
 extern rwlock_t tasklist_lock __attribute__((weak)); 
+read_lock(&tasklist_lock);
 ],
       ac_cv_linux_exports_tasklist_lock=yes,
       ac_cv_linux_exports_tasklist_lock=no)])