From 8fe74c7d57db7392c0db4269d56e3bc88dac9f79 Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 8 Sep 2023 21:50:05 +0300 Subject: [PATCH] LibC+Kernel: Move device-files related methods to a LibC header file The Kernel/API directory in general shouldn't include userspace code, but structure definitions that both are shared between the Kernel and userspace. LibC is the most appropriate place for these methods as they're already included in the sys/sysmacros.h file to create a set of convenient macros for these methods. --- Kernel/API/Device.h => Userland/Libraries/LibC/sys/device.h | 0 Userland/Libraries/LibC/sys/sysmacros.h | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename Kernel/API/Device.h => Userland/Libraries/LibC/sys/device.h (100%) diff --git a/Kernel/API/Device.h b/Userland/Libraries/LibC/sys/device.h similarity index 100% rename from Kernel/API/Device.h rename to Userland/Libraries/LibC/sys/device.h diff --git a/Userland/Libraries/LibC/sys/sysmacros.h b/Userland/Libraries/LibC/sys/sysmacros.h index 1e437765541..5d42b76abcb 100644 --- a/Userland/Libraries/LibC/sys/sysmacros.h +++ b/Userland/Libraries/LibC/sys/sysmacros.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #define makedev(major, minor) serenity_dev_makedev((major), (minor)) #define major(dev) serenity_dev_major(dev)