ubuntu/i915: incompatible pointer types

Bug #1694496 reported by Kyle Fazzari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

The ubuntu-xenial kernel doesn't compile if you use -Werror=incompatible-pointer-types. This seems to be due to ubuntu/i915, though it's possible there are others. For example, in ubuntu/i915/i915_gem_dmabuf.c, the signatures of the functions handed off to dma_buf_ops's begin_cpu_access and end_cpu_access don't match those expected in the struct. This seems like a recipe for undefined behavior.

Actually using -Werror=incompatible-pointer-types to build our kernel seems like a good idea. Is there a reason we're not doing it?

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1694496

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Kyle Fazzari (kyrofa)
description: updated
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Triaged
tags: added: kernel-da-key
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.