mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 13:19:02 +00:00
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.
This commit is contained in:
parent
139c575cc9
commit
8fe74c7d57
Notes:
sideshowbarker
2024-07-17 05:02:42 +09:00
Author: https://github.com/supercomputer7
Commit: 8fe74c7d57
Pull-request: https://github.com/SerenityOS/serenity/pull/20989
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
2 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/API/Device.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#define makedev(major, minor) serenity_dev_makedev((major), (minor))
|
||||
#define major(dev) serenity_dev_major(dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue