2020-03-06 11:44:27 +00:00
|
|
|
From 8c88098a7081d7cd354fb9e2a64598e6e10ce525 Mon Sep 17 00:00:00 2001
|
2018-09-13 17:28:08 +00:00
|
|
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
Date: Mon, 10 Sep 2018 18:00:31 +0200
|
2020-04-09 19:44:24 +00:00
|
|
|
Subject: [PATCH 094/328] work-simple: drop a shit statement in
|
2019-04-08 23:49:20 +00:00
|
|
|
SWORK_EVENT_PENDING
|
2020-04-09 19:44:24 +00:00
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.106-rt46.tar.xz
|
2018-09-13 17:28:08 +00:00
|
|
|
|
|
|
|
Dan Carpenter reported
|
|
|
|
| smatch warnings:
|
|
|
|
|kernel/sched/swork.c:63 swork_kthread() warn: test_bit() takes a bit number
|
|
|
|
|
|
|
|
This is not a bug because we shift by zero (and use the same value in
|
|
|
|
both places).
|
|
|
|
Nevertheless I'm dropping that shift by zero to keep smatch quiet.
|
|
|
|
|
|
|
|
Cc: Daniel Wagner <daniel.wagner@siemens.com>
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
kernel/sched/swork.c | 2 +-
|
2018-09-13 17:28:08 +00:00
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
diff --git a/kernel/sched/swork.c b/kernel/sched/swork.c
|
|
|
|
index a5b89fdacf19..c90d14b9b126 100644
|
2018-09-13 17:28:08 +00:00
|
|
|
--- a/kernel/sched/swork.c
|
|
|
|
+++ b/kernel/sched/swork.c
|
|
|
|
@@ -12,7 +12,7 @@
|
|
|
|
#include <linux/spinlock.h>
|
|
|
|
#include <linux/export.h>
|
|
|
|
|
|
|
|
-#define SWORK_EVENT_PENDING (1 << 0)
|
|
|
|
+#define SWORK_EVENT_PENDING 1
|
|
|
|
|
|
|
|
static DEFINE_MUTEX(worker_mutex);
|
|
|
|
static struct sworker *glob_worker;
|
2020-01-03 23:36:11 +00:00
|
|
|
--
|
2020-04-09 19:44:24 +00:00
|
|
|
2.25.1
|
2020-01-03 23:36:11 +00:00
|
|
|
|