Rev 1126 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1126 | Rev 1179 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | * so you don't need to be too concerned about locking and conflicts |
25 | * so you don't need to be too concerned about locking and conflicts |
26 | * with the slab allocator. |
26 | * with the slab allocator. |
27 | */ |
27 | */ |
Line 28... | Line 28... | ||
28 | 28 | ||
- | 29 | #include |
|
- | 30 | #include |
|
- | 31 | #include "drm.h" |
|
- | 32 | #include "drmP.h" |
|
Line 29... | Line 33... | ||
29 | #include |
33 | #include "drm_crtc.h" |
Line 30... | Line 34... | ||
30 | 34 | ||
31 | #define ADDR "=m" (*(volatile long *) addr) |
35 | #define ADDR "=m" (*(volatile long *) addr) |
Line 416... | Line 420... | ||
416 | * @id returns a value in the range @starting_id ... 0x7fffffff |
420 | * @id returns a value in the range @starting_id ... 0x7fffffff |
417 | */ |
421 | */ |
418 | int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id) |
422 | int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id) |
419 | { |
423 | { |
420 | int rv; |
424 | int rv; |
421 | - | ||
422 | rv = idr_get_new_above_int(idp, ptr, starting_id); |
425 | rv = idr_get_new_above_int(idp, ptr, starting_id); |
423 | /* |
426 | /* |
424 | * This is a cheap hack until the IDR code can be fixed to |
427 | * This is a cheap hack until the IDR code can be fixed to |
425 | * return proper error values. |
428 | * return proper error values. |
426 | */ |
429 | */ |
427 | if (rv < 0) |
430 | if (rv < 0) |
- | 431 | { |
|
- | 432 | dbgprintf("fail\n"); |
|
428 | return _idr_rc_to_errno(rv); |
433 | return _idr_rc_to_errno(rv); |
- | 434 | }; |
|
429 | *id = rv; |
435 | *id = rv; |
430 | return 0; |
436 | return 0; |
431 | } |
437 | } |
432 | EXPORT_SYMBOL(idr_get_new_above); |
438 | EXPORT_SYMBOL(idr_get_new_above); |