Skip to content

Commit f80d2d7

Browse files
dmvoIngo Molnar
authored andcommitted
tracing, Text Edit Lock: Fix one sparse warning in kernel/extable.c
Impact: cleanup. The global mutex text_mutex if declared in linux/memory.h, so this file needs to be included into kernel/extable.c, where the same mutex is defined. This fixes the following sparse warning: kernel/extable.c:32:1: warning: symbol 'text_mutex' was not declared. Should it be static? Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com> LKML-Reference: <1237741871-5827-3-git-send-email-dmitri.vorobiev@movial.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent a524446 commit f80d2d7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/extable.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1717
*/
1818
#include <linux/ftrace.h>
19+
#include <linux/memory.h>
1920
#include <linux/module.h>
2021
#include <linux/mutex.h>
2122
#include <linux/init.h>

0 commit comments

Comments
 (0)