Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
lavaps
lavaps-2.7-no-kdev.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lavaps-2.7-no-kdev.dif of Package lavaps
--- src/linux/proc/devname.c +++ src/linux/proc/devname.c @@ -20,7 +20,12 @@ * Thanks to Ashley Howes for the feedback. */ /* #define __KERNEL__ */ -#include <linux/kdev_t.h> +/* #include <linux/kdev_t.h> */ +#define MINORBITS 20 +#define MINORMASK ((1U << MINORBITS) - 1) + +#define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) +#define MINOR(dev) ((unsigned int) ((dev) & MINORMASK)) /* #undef __KERNEL__ */ #define DEVDIR "/dev"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor