Skip to contentSkip to conversation

drbd: stop defining __KERNEL_SYSCALLS__

PATCH Applied Christoph Hellwig 3 participants 3 messages Jun 1, 2023 – Jun 5, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drbd: stop defining __KERNEL_SYSCALLS__

__KERNEL_SYSCALLS__ hasn't been needed since Linux 2.6.19 so stop defining it.

---
 drivers/block/drbd/drbd_main.c     | 1 -
 drivers/block/drbd/drbd_receiver.c | 1 -
 2 files changed, 2 deletions(-)
drivers/block/drbd/drbd_main.c +0 -1
index 83987e7a5ef275..54223f64610a05 100644
@@ -37,7 +37,6 @@
 #include <linux/notifier.h>
 #include <linux/kthread.h>
 #include <linux/workqueue.h>
-#define __KERNEL_SYSCALLS__
 #include <linux/unistd.h>
 #include <linux/vmalloc.h>
 #include <linux/sched/signal.h>
drivers/block/drbd/drbd_receiver.c +0 -1
index 8c2bc47de4735e..0c9f54197768d6 100644
@@ -27,7 +27,6 @@
 #include <uapi/linux/sched/types.h>
 #include <linux/sched/signal.h>
 #include <linux/pkt_sched.h>
-#define __KERNEL_SYSCALLS__
 #include <linux/unistd.h>
 #include <linux/vmalloc.h>
 #include <linux/random.h>
Signature · 1 line
2.39.2
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 01.06.23 um 17:16 schrieb Christoph Hellwig:

Quoted 26 lines

__KERNEL_SYSCALLS__ hasn't been needed since Linux 2.6.19 so stop defining it.

---
 drivers/block/drbd/drbd_main.c     | 1 -
 drivers/block/drbd/drbd_receiver.c | 1 -
 2 files changed, 2 deletions(-)
drivers/block/drbd/drbd_main.c +0 -1
index 83987e7a5ef275..54223f64610a05 100644
@@ -37,7 +37,6 @@
 #include <linux/notifier.h>
 #include <linux/kthread.h>
 #include <linux/workqueue.h>
-#define __KERNEL_SYSCALLS__
 #include <linux/unistd.h>
 #include <linux/vmalloc.h>
 #include <linux/sched/signal.h>
drivers/block/drbd/drbd_receiver.c +0 -0
index 8c2bc47de4735e..0c9f54197768d6 100644

drivers/block/drbd/drbd_receiver.c line 32

Quoted 7 lines
drivers/block/drbd/drbd_receiver.c +0 -1
@@ -27,7 +27,6 @@
 #include <uapi/linux/sched/types.h>
 #include <linux/sched/signal.h>
 #include <linux/pkt_sched.h>
-#define __KERNEL_SYSCALLS__
 #include <linux/unistd.h>
 #include <linux/vmalloc.h>
 #include <linux/random.h>

Looks right.

Signature · 3 lines
Christoph Böhmwalder
LINBIT | Keeping the Digital World Running
DRBD HA —  Disaster Recovery — Software defined Storage
maintainer Applied
#2 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

__KERNEL_SYSCALLS__ hasn't been needed since Linux 2.6.19 so stop defining it.

Applied, thanks!

[1/1] drbd: stop defining __KERNEL_SYSCALLS__

      commit: d519df00938eed652fc041ff4e07b2b38a4ad3bc

Best regards,

Signature · 1 line
Jens Axboe