tree: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
head: 45125f5cdd4fb004ebdfd67e65d7c9ad03d8efee
commit: 61cffa2438e32bd7823a74c0db6312de8e364d4b [4/6] rtc: armada38x: Follow the new recommendation for errata implementation
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 61cffa2438e32bd7823a74c0db6312de8e364d4b
# save the attached .config to linux build tree
make ARCH=i386
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
drivers/rtc/rtc-armada38x.c: In function 'read_rtc_register_wa':quoted
drivers/rtc/rtc-armada38x.c:131:25: warning: 'index_max' may be used uninitialized in this function [-Wmaybe-uninitialized]
return rtc->val_to_freq[index_max].value;
^
vim +/index_max +131 drivers/rtc/rtc-armada38x.c
115 }
116
117 if (rtc->val_to_freq[j].freq > max) {
118 index_max = j;
119 max = rtc->val_to_freq[j].freq;
120 }
121
122 /*
123 * If a value have already half of the sample this is
124 * the most frequent one and we can stop the research
125 * right now
126 */
127 if (max > SAMPLE_NR / 2)
128 break;
129 }
130
> 131 return rtc->val_to_freq[index_max].value;
132 }
133
134 static int armada38x_rtc_read_time(struct device *dev, struct rtc_time *tm)
135 {
136 struct armada38x_rtc *rtc = dev_get_drvdata(dev);
137 unsigned long time, flags;
138
139 spin_lock_irqsave(&rtc->lock, flags);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.