diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-11-21 05:32:21 -0500 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-11-21 08:55:58 -0500 |
commit | 049af1060bb81532f2700762a8ba71eb3fa81f5a (patch) | |
tree | e914b52b67dfdb4b61aec44af0d7f390197a2bb7 | |
parent | 7200be7c81cc1a1c54a79348a724c16345c5242f (diff) |
vfio: fix a warning message
The first argument to the WARN() macro has to be a condition. I'm sort
of disappointed that this code doesn't generate a compiler warning. I
guess -Wformat-extra-args doesn't work in the kernel.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
-rw-r--r-- | drivers/vfio/vfio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/vfio.c b/drivers/vfio/vfio.c index de632da2e22f..9da0703e09d0 100644 --- a/drivers/vfio/vfio.c +++ b/drivers/vfio/vfio.c | |||
@@ -682,7 +682,7 @@ static int vfio_group_nb_add_dev(struct vfio_group *group, struct device *dev) | |||
682 | return 0; | 682 | return 0; |
683 | 683 | ||
684 | /* TODO Prevent device auto probing */ | 684 | /* TODO Prevent device auto probing */ |
685 | WARN("Device %s added to live group %d!\n", dev_name(dev), | 685 | WARN(1, "Device %s added to live group %d!\n", dev_name(dev), |
686 | iommu_group_id(group->iommu_group)); | 686 | iommu_group_id(group->iommu_group)); |
687 | 687 | ||
688 | return 0; | 688 | return 0; |