lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 25 Aug 2021 13:55:40 +0800
From:   kernel test robot <lkp@...el.com>
To:     Claudiu Beznea <claudiu.beznea@...rochip.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Ulf Hansson <ulf.hansson@...aro.org>
Subject: [ulfh-mmc:next 41/47] drivers/mmc/core/pwrseq_sd8787.c:77:41:
 warning: cast from pointer to integer of different size

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (35812 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ