From: Olav Haugan Date: Thu, 19 Apr 2012 17:20:22 +0000 (-0700) Subject: gpu: ion: Add missing argument to WARN call X-Git-Tag: firefly_0821_release~4090^2~702 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d5e5e57655c63d2dab09f36d057b7a47d3a7ec07;p=firefly-linux-kernel-4.4.55.git gpu: ion: Add missing argument to WARN call The condition argument to the WARN call in ion_free and ion_share_dma_buf are missing. Add the argument to allow correct printing of warning message. Change-Id: I9b233992d5034f8780296cae6b42d77699f14cce Signed-off-by: Olav Haugan --- diff --git a/drivers/gpu/ion/ion.c b/drivers/gpu/ion/ion.c index e858eb0e983b..0470db8c5095 100644 --- a/drivers/gpu/ion/ion.c +++ b/drivers/gpu/ion/ion.c @@ -408,7 +408,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle) mutex_unlock(&client->lock); if (!valid_handle) { - WARN("%s: invalid handle passed to free.\n", __func__); + WARN(1, "%s: invalid handle passed to free.\n", __func__); return; } ion_handle_put(handle); @@ -906,7 +906,7 @@ int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle) valid_handle = ion_handle_validate(client, handle); mutex_unlock(&client->lock); if (!valid_handle) { - WARN("%s: invalid handle passed to share.\n", __func__); + WARN(1, "%s: invalid handle passed to share.\n", __func__); return -EINVAL; }