The patch titled Subject: drivers/video/backlight/lp855x_bl.c: silence a compiler warning has been added to the -mm tree. Its filename is backlight-lp855x_bl-silence-a-compiler-warning.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: drivers/video/backlight/lp855x_bl.c: silence a compiler warning Gcc 4.6.2 complains that "end" can be used without being initialized: drivers/video/backlight/lp855x_bl.c: In function `lp855x_init_registers': drivers/video/backlight/lp855x_bl.c:78:32: warning: `end' may be used uninitialized in this function [-Wuninitialized] drivers/video/backlight/lp855x_bl.c:67:12: note: `end' was declared here I've modified the function to return invalid if we don't recognize the id string. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Milo(Woogyom) Kim <milo.kim@xxxxxx> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/video/backlight/lp855x_bl.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/video/backlight/lp855x_bl.c~backlight-lp855x_bl-silence-a-compiler-warning drivers/video/backlight/lp855x_bl.c --- a/drivers/video/backlight/lp855x_bl.c~backlight-lp855x_bl-silence-a-compiler-warning +++ a/drivers/video/backlight/lp855x_bl.c @@ -73,6 +73,8 @@ static int lp855x_is_valid_rom_area(stru } else if (strstr(id, "lp8556")) { start = EPROM_START; end = EPROM_END; + } else { + return 0; } return (addr >= start && addr <= end) ? 1 : 0; _ Subject: Subject: drivers/video/backlight/lp855x_bl.c: silence a compiler warning Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are origin.patch linux-next.patch thermal-spear13xx-checking-for-null-instead-of-is_err.patch slab-introduce-kmalloc_array.patch mm-compaction-make-compact_control-order-signed.patch mm-compaction-make-compact_control-order-signed-fix.patch backlight-lp855x_bl-silence-a-compiler-warning.patch drivers-leds-leds-tca6507c-cleanup-error-handling-in-tca6507_probe.patch epoll-remove-unneeded-variable-in-reverse_path_check.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html