.. | .. |
---|
1 | | -/* SPDX-License-Identifier: GPL-2.0 */ |
---|
| 1 | +/* SPDX-License-Identifier: MIT */ |
---|
2 | 2 | #ifndef __NOUVEAU_GEM_H__ |
---|
3 | 3 | #define __NOUVEAU_GEM_H__ |
---|
4 | | - |
---|
5 | | -#include <drm/drmP.h> |
---|
6 | 4 | |
---|
7 | 5 | #include "nouveau_drv.h" |
---|
8 | 6 | #include "nouveau_bo.h" |
---|
.. | .. |
---|
10 | 8 | static inline struct nouveau_bo * |
---|
11 | 9 | nouveau_gem_object(struct drm_gem_object *gem) |
---|
12 | 10 | { |
---|
13 | | - return gem ? container_of(gem, struct nouveau_bo, gem) : NULL; |
---|
| 11 | + return gem ? container_of(gem, struct nouveau_bo, bo.base) : NULL; |
---|
14 | 12 | } |
---|
15 | 13 | |
---|
16 | 14 | /* nouveau_gem.c */ |
---|
.. | .. |
---|
33 | 31 | struct drm_file *); |
---|
34 | 32 | |
---|
35 | 33 | extern int nouveau_gem_prime_pin(struct drm_gem_object *); |
---|
36 | | -struct reservation_object *nouveau_gem_prime_res_obj(struct drm_gem_object *); |
---|
37 | 34 | extern void nouveau_gem_prime_unpin(struct drm_gem_object *); |
---|
38 | 35 | extern struct sg_table *nouveau_gem_prime_get_sg_table(struct drm_gem_object *); |
---|
39 | 36 | extern struct drm_gem_object *nouveau_gem_prime_import_sg_table( |
---|