Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ce20ceb5 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

soc: qcom: Fix compile warnings



Fix the following compiler warning(s) from gcc 6.1.1 with -Werror enabled:

 drivers/soc/qcom/spcom.c:403:
   format '%zu' expects argument of type 'size_t', but argument 5 has type
     'uint32_t {aka unsigned int}' [-Werror=format=]
   pr_debug("pending data size [%zu], requested size [%zu], ch->txn_id %d\n",

 drivers/soc/qcom/spcom.c:898:
   format '%ld' expects argument of type 'long int', but argument 3 has type
     'uint32_t {aka unsigned int}' [-Werror=format=]
   pr_err("int overflow [%ld]\n", cmd->arg);

 drivers/soc/qcom/spcom.c:929:
   format '%x' expects argument of type 'unsigned int', but argument 7 has type
     'struct dma_buf *' [-Werror=format=]
    pr_debug("ch [%s] locked ion buf #%d fd [%d] dma_buf=0x%x\n",

 drivers/soc/qcom/spcom.c:967:
   format '%ld' expects argument of type 'long int', but argument 3 has type
     'uint32_t {aka unsigned int}' [-Werror=format=]
   pr_err("int overflow [%ld]\n", cmd->arg);

 drivers/soc/qcom/spcom.c:1003:
   format '%x' expects argument of type 'unsigned int', but argument 7 has
     type 'struct dma_buf *' [-Werror=format=]
   pr_debug("ch [%s] unlocked ion buf #%d fd [%d] dma_buf=0x%x\n",

 drivers/soc/qcom/spcom.c:1372:
   format '%d' expects argument of type 'int', but argument 5 has type 'size_t
     {aka long unsigned int}' [-Werror=format=]
   pr_debug("ch [%s] discarting unconsumed rx packet actual_rx_size=%d\n",

 drivers/soc/qcom/spcom.c:1886:
   format '%d' expects argument of type 'int', but argument 5 has type
     'size_t {aka long unsigned int}' [-Werror=format=]
   pr_debug("ch [%s] rx aborted free %d bytes\n",

 drivers/soc/qcom/spcom.c:1894:
   format '%d' expects argument of type 'int', but argument 4 has type
     'size_t {aka long unsigned int}' [-Werror=format=]
   pr_err("ch [%s] previous buffer not consumed %d bytes\n",

Fixes: 2f0b9d5e ("soc: qcom: add secure processor communication (spcom) driver")
Change-Id: Ic0dedbad118d50365052f832c9666dba7902ec61
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 0fe45088
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment