From: kernel test robot <lkp@intel.com>
To: Claudiu Beznea <claudiu.beznea@microchip.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Ulf Hansson <ulf.hansson@linaro.org>
Subject: [ulfh-mmc:next 41/47] drivers/mmc/core/pwrseq_sd8787.c:77:41: warning: cast from pointer to integer of different size
Date: Wed, 25 Aug 2021 13:55:40 +0800 [thread overview]
Message-ID: <202108251331.yaLVWwey-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2664 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next
head: fe72d08a961f9e09a7b04c15904a98f7c8cd537e
commit: b2832b96fcf50270d69dae3f95bf14949ff638e4 [41/47] mmc: pwrseq: sd8787: add support for wilc1000
config: riscv-randconfig-r025-20210825 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git/commit/?id=b2832b96fcf50270d69dae3f95bf14949ff638e4
git remote add ulfh-mmc git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git
git fetch --no-tags ulfh-mmc next
git checkout b2832b96fcf50270d69dae3f95bf14949ff638e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/mmc/core/pwrseq_sd8787.c: In function 'mmc_pwrseq_sd8787_probe':
>> drivers/mmc/core/pwrseq_sd8787.c:77:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
77 | pwrseq->reset_pwrdwn_delay_ms = (u32)match->data;
| ^
vim +77 drivers/mmc/core/pwrseq_sd8787.c
65
66 static int mmc_pwrseq_sd8787_probe(struct platform_device *pdev)
67 {
68 struct mmc_pwrseq_sd8787 *pwrseq;
69 struct device *dev = &pdev->dev;
70 const struct of_device_id *match;
71
72 pwrseq = devm_kzalloc(dev, sizeof(*pwrseq), GFP_KERNEL);
73 if (!pwrseq)
74 return -ENOMEM;
75
76 match = of_match_node(mmc_pwrseq_sd8787_of_match, pdev->dev.of_node);
> 77 pwrseq->reset_pwrdwn_delay_ms = (u32)match->data;
78
79 pwrseq->pwrdn_gpio = devm_gpiod_get(dev, "powerdown", GPIOD_OUT_LOW);
80 if (IS_ERR(pwrseq->pwrdn_gpio))
81 return PTR_ERR(pwrseq->pwrdn_gpio);
82
83 pwrseq->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
84 if (IS_ERR(pwrseq->reset_gpio))
85 return PTR_ERR(pwrseq->reset_gpio);
86
87 pwrseq->pwrseq.dev = dev;
88 pwrseq->pwrseq.ops = &mmc_pwrseq_sd8787_ops;
89 pwrseq->pwrseq.owner = THIS_MODULE;
90 platform_set_drvdata(pdev, pwrseq);
91
92 return mmc_pwrseq_register(&pwrseq->pwrseq);
93 }
94
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35812 bytes --]
reply other threads:[~2021-08-25 5:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202108251331.yaLVWwey-lkp@intel.com \
--to=lkp@intel.com \
--cc=claudiu.beznea@microchip.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox