Messages in this thread | | | Date | Mon, 8 Oct 2012 02:14:29 +0100 | From | Mark Brown <> | Subject | Re: [PATCH] regmap: silence GCC warning |
| |
On Sat, Oct 06, 2012 at 11:57:36AM +0200, Paul Bolle wrote:
> 2) I hope to send in a second path shortly, changing 'num' to size_t. My > main doubt is whether its problematic that the loop index in > regmap_volatile_range() uses unsigned int too. If 'num' would exceed > UINT_MAX, that loop would never finish, wouldn't it? But is that > actually possible? Are there machines with that many registers?
It's possible, of course - people can give whatever random numbers they like to registers. It's not particularly likely, though, so probably as well not to worry about it until it's actually a problem.
| |