• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/linux-fusion/0003-Fix-fusion-Unknown-symbol-tasklist_lock-err-0.patch
Marc GonzalezMarc Gonzalez committed 2b291a074fa15 Jan 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 9fcd5003c0363af140a06aba94e62c9e1ea0381e Mon Sep 17 00:00:00 2001
2
From: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
3
Date: Mon, 11 Jan 2016 16:45:30 +0100
4
Subject: [PATCH] Fix fusion: Unknown symbol tasklist_lock (err 0)
5
​
6
Commit 28f6569ab7d0 renamed TREE_PREEMPT_RCU to PREEMPT_RCU in 3.19
7
As a result, the code incorrectly falls back to using tasklist_lock
8
(which was made private in 2.6.18)
9
​
10
Always use rcu_read_lock on modern kernels.
11
​
12
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
13
---
14
 linux/drivers/char/fusion/fusionee.c | 4 ++--
15
 1 file changed, 2 insertions(+), 2 deletions(-)
16
​
17
diff --git a/linux/drivers/char/fusion/fusionee.c b/linux/drivers/char/fusion/fusionee.c
18
index ef067f5bc831..70cd0a665f98 100644
19
--- a/linux/drivers/char/fusion/fusionee.c
20
+++ b/linux/drivers/char/fusion/fusionee.c
21
@@ -925,7 +925,7 @@ fusionee_kill(FusionDev * dev,
22
                if (f != fusionee && (!target || target == f->id)) {
23
                     struct task_struct *p;
24
 
25
-#if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) || defined(CONFIG_TINY_RCU) || defined(rcu_read_lock)
26
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
27
                     rcu_read_lock();
28
 #else
29
                     read_lock(&tasklist_lock);
30
@@ -946,7 +946,7 @@ fusionee_kill(FusionDev * dev,
31
                          }
32
                     }
33
 
34
-#if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) || defined(CONFIG_TINY_RCU) || defined(rcu_read_unlock)
35
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
36
                     rcu_read_unlock();
37
 #else
38
                     read_unlock(&tasklist_lock);
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.