2020-10-12 12:52:06 +00:00
|
|
|
From a17768fa198546bd6c3937a75fd397309ccfc634 Mon Sep 17 00:00:00 2001
|
|
|
|
Message-Id: <a17768fa198546bd6c3937a75fd397309ccfc634.1601675152.git.zanussi@kernel.org>
|
|
|
|
In-Reply-To: <5b5a156f9808b1acf1205606e03da117214549ea.1601675151.git.zanussi@kernel.org>
|
|
|
|
References: <5b5a156f9808b1acf1205606e03da117214549ea.1601675151.git.zanussi@kernel.org>
|
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-09-04 20:10:21 +00:00
|
|
|
Subject: [PATCH 094/333] work-simple: drop a shit statement in
|
2019-04-08 23:49:20 +00:00
|
|
|
SWORK_EVENT_PENDING
|
2020-10-12 12:52:06 +00:00
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.148-rt64.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-06-22 13:14:16 +00:00
|
|
|
2.17.1
|
2020-01-03 23:36:11 +00:00
|
|
|
|