Skip to content

Conversation

@lucasdemarchi
Copy link
Contributor

BugLink: https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2138132

Fix this warning about missing prototype:

../drivers/vfio/vfio_main.c:1369:21: warning: no previous prototype for ‘vfio_device_from_file’ [-Wmissing-prototypes]
 1369 | struct vfio_device *vfio_device_from_file(struct file *file)
      |                     ^~~~~~~~~~~~~~~~~~~~~

Add the declaration in the header since it's no different than e.g. vfio_file_is_valid() that is there and remove the extern in the .c.

BugLink: https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2138132

Fix this warning about missing prototype:

	../drivers/vfio/vfio_main.c:1369:21: warning: no previous prototype for ‘vfio_device_from_file’ [-Wmissing-prototypes]
	 1369 | struct vfio_device *vfio_device_from_file(struct file *file)
	      |                     ^~~~~~~~~~~~~~~~~~~~~

Add the declaration in the header since it's no different than e.g. vfio_file_is_valid() that is there
and remove the extern in the .c.

Signed-off-by: Lucas De Marchi <ldemarchi@nvidia.com>
Copy link
Collaborator

@nirmoy nirmoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acked-by: Nirmoy Das <nirmoyd@nvidia.com>

@jamieNguyenNVIDIA
Copy link
Collaborator

Acked-by: Jamie Nguyen <jamien@nvidia.com>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants