diff mbox

[1/5] rpmsg: smd: Add missing include of sizes.h

Message ID 20180613125401.11734-2-niklas.cassel@linaro.org (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Niklas Cassel June 13, 2018, 12:53 p.m. UTC
Add missing include of sizes.h.

drivers/rpmsg/qcom_smd.c: In function ‘qcom_smd_channel_open’:
drivers/rpmsg/qcom_smd.c:809:36: error: ‘SZ_4K’ undeclared (first use in this function)
  bb_size = min(channel->fifo_size, SZ_4K);
                                    ^~~~~

Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
---
 drivers/rpmsg/qcom_smd.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Niklas Cassel June 13, 2018, 1:16 p.m. UTC | #1
On Wed, Jun 13, 2018 at 02:53:56PM +0200, Niklas Cassel wrote:
> Add missing include of sizes.h.
> 
> drivers/rpmsg/qcom_smd.c: In function ‘qcom_smd_channel_open’:
> drivers/rpmsg/qcom_smd.c:809:36: error: ‘SZ_4K’ undeclared (first use in this function)
>   bb_size = min(channel->fifo_size, SZ_4K);
>                                     ^~~~~
> 
> Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
> ---

Argh, my git send-email scripts were too stupid to add Andy
and linux-arm-msm to this patch.

Some of the drivers in drivers/soc/qcom depended on this file.

Not sure if this patch should go via Andy's tree or Bjorn's.

Regards,
Niklas
--
To unsubscribe from this list: send the line "unsubscribe linux-remoteproc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
index 6437bbeebc91..8695cb041c31 100644
--- a/drivers/rpmsg/qcom_smd.c
+++ b/drivers/rpmsg/qcom_smd.c
@@ -14,6 +14,7 @@ 
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/sched.h>
+#include <linux/sizes.h>
 #include <linux/slab.h>
 #include <linux/soc/qcom/smem.h>
 #include <linux/wait.h>