diff options
| author | Damien Lespiau <[email protected]> | 2015-01-21 13:50:54 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2015-01-27 09:51:07 +0100 |
| commit | 1b842c89bd8eb0e9619e1aba071c9a5529b7a179 (patch) | |
| tree | 64ecb4ae0ba844eb9d9c8df61542ed54cf9c1753 /tools/perf/scripts/python/sctop.py | |
| parent | 0f71979ab7fbd0c71c41c2798de3d33937915434 (diff) | |
drm/i915: Fix kzalloc() smatch warnings in get_initial_plane_config()
Smatch doesn't like:
struct drm_framebuffer *fb;
fb = kzalloc(sizeof(struct intel_framebuffer), GFP_KERNEL);
and warns with:
warn: struct type mismatch 'drm_framebuffer vs intel_framebuffer'
This implicit cast was correct as struct intel_framebuffer has struct
drm_framebuffer as its first member, but in case someone want to reorder
the fields for some reason, it's slightly safer to access the underlying
drm_framebuffer through intel_fb->base.
Also, having fewer static analysis warnings is a worthy goal.
Cc: [email protected]
Cc: Dan Carpenter <[email protected]>
Signed-off-by: Damien Lespiau <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions