diff options
-rw-r--r-- | Kernel/API/Device.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/API/Device.h b/Kernel/API/Device.h index 05cba987e4..980c9d7390 100644 --- a/Kernel/API/Device.h +++ b/Kernel/API/Device.h @@ -12,17 +12,17 @@ __BEGIN_DECLS -ALWAYS_INLINE dev_t serenity_dev_makedev(unsigned major, unsigned minor) +static ALWAYS_INLINE dev_t serenity_dev_makedev(unsigned major, unsigned minor) { return (minor & 0xffu) | (major << 8u) | ((minor & ~0xffu) << 12u); } -ALWAYS_INLINE unsigned int serenity_dev_major(dev_t dev) +static ALWAYS_INLINE unsigned int serenity_dev_major(dev_t dev) { return (dev & 0xfff00u) >> 8u; } -ALWAYS_INLINE unsigned int serenity_dev_minor(dev_t dev) +static ALWAYS_INLINE unsigned int serenity_dev_minor(dev_t dev) { return (dev & 0xffu) | ((dev >> 12u) & 0xfff00u); } |