Re: [PATCH 2/5] soc: fsl: add flextimer module alarm driver for Layerscape

From: kbuild test robot
Date: Fri Apr 21 2017 - 13:02:07 EST


Hi Wang,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.11-rc7 next-20170421]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/ying-zhang22455-nxp-com/soc-fsl-add-support-for-arm64-Layerscape-SOC-specific-drivers/20170421-174921
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64

All warnings (new ones prefixed by >>):

drivers/soc/fsl/layerscape/ftm_alarm.c: In function 'ftm_clean_alarm':
>> drivers/soc/fsl/layerscape/ftm_alarm.c:139:13: warning: large integer implicitly truncated to unsigned type [-Woverflow]
ftm_writel(~0UL, ftm1_base + FTM_MOD);
^

vim +139 drivers/soc/fsl/layerscape/ftm_alarm.c

123 cycle = 0;
124 }
125
126 return cycle;
127 }
128
129 static u32 cycle_to_time(u32 cycle)
130 {
131 return cycle / alarm_freq + 1;
132 }
133
134 static void ftm_clean_alarm(void)
135 {
136 ftm_counter_disable(ftm1_base);
137
138 ftm_writel(0x00, ftm1_base + FTM_CNTIN);
> 139 ftm_writel(~0UL, ftm1_base + FTM_MOD);
140
141 ftm_reset_counter(ftm1_base);
142 }
143
144 static int ftm_set_alarm(u64 cycle)
145 {
146 ftm_irq_disable(ftm1_base);
147

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip