The patch titled mpt fusion: shut up uninitialized variable warnings has been added to the -mm tree. Its filename is mpt-fusion-shut-up-uninitialized-variable.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: mpt fusion: shut up uninitialized variable warnings drivers/message/fusion/mptctl.c: In function â??mptctl_mpt_commandâ??: drivers/message/fusion/mptctl.c:1764: warning: â??bufIn.lenâ?? may be used uninitialized in this function drivers/message/fusion/mptctl.c:1765: warning: â??bufOut.lenâ?? may be used uninitialized in this function come because gcc gets confused by some "goto" statements in above function. The warnings have been verified to be bogus, however, the function does initialize these later (after the offending goto's) in the function anyway. So let's move those initializations to top of function, thereby also shutting up these warnings. Signed-off-by: Satyam Sharma <satyam@xxxxxxxxxxxxx> Acked-by: Eric Moore <eric.moore@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/message/fusion/mptctl.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff -puN drivers/message/fusion/mptctl.c~mpt-fusion-shut-up-uninitialized-variable drivers/message/fusion/mptctl.c --- a/drivers/message/fusion/mptctl.c~mpt-fusion-shut-up-uninitialized-variable +++ a/drivers/message/fusion/mptctl.c @@ -1774,7 +1774,10 @@ mptctl_do_mpt_command (struct mpt_ioctl_ ulong timeout; struct scsi_device *sdev; + /* bufIn and bufOut are used for user to kernel space transfers + */ bufIn.kptr = bufOut.kptr = NULL; + bufIn.len = bufOut.len = 0; if (((iocnum = mpt_verify_adapter(karg.hdr.iocnum, &ioc)) < 0) || (ioc == NULL)) { @@ -2108,11 +2111,6 @@ mptctl_do_mpt_command (struct mpt_ioctl_ psge = (char *) (((int *) mf) + karg.dataSgeOffset); flagsLength = 0; - /* bufIn and bufOut are used for user to kernel space transfers - */ - bufIn.kptr = bufOut.kptr = NULL; - bufIn.len = bufOut.len = 0; - if (karg.dataOutSize > 0) sgSize ++; _ Patches currently in -mm which might be from satyam@xxxxxxxxxxxxx are origin.patch cpufreq-mark-hotplug-notifier-callback-as-__cpuinit.patch cpufreq-implement-config_cpu_freq-stub-for.patch cpufreq_stats-misc-cpuinit-section-annotations.patch drivers-char-nozomic-__devexit_p-usage-build-fix.patch git-hwmon.patch ia64-tree-wide-misc-__cpuinitdata-init-exit.patch ia64-perfmon-remove-exit_pfm_fs.patch git-ieee1394.patch ehca_irq-misc-cpuinit-section-annotations-and-ifdef-cleanups.patch git-net.patch git-s390.patch sched-use-show_regs-to-improve-__schedule_bug-output.patch use-mutex-instead-of-semaphore-in-the-onstream-scsi-tape-driver.patch mpt-fusion-shut-up-uninitialized-variable.patch ll_rw_blk-blk_cpu_notifier-should-be-__cpuinitdata.patch git-watchdog.patch intel_cacheinfo-misc-section-annotation-fixes.patch intel_cacheinfo-call-cache_add_dev-from-cache_sysfs_init.patch therm_throtc-fix-section-mismatch.patch i386-cpuid_count-fix-argument-signedness-warnings.patch slub-slob-use-unlikely-for-kfreezero_or_null_ptr-check.patch softlockup-improve-debug-output-fix.patch argv_split-allow-argv_split-to-handle-null-pointer-in-argcp-parameter-gracefully.patch ufs-fix-sun-state-fix-mount-check-in-ufs_fill_super.patch remove-superfluous-definition-of-__setup_null_param-macro-and-broken-for-module-__setup_param.patch i2o-fix-defined-but-not-used-build-warnings.patch i2o-fix-defined-but-not-used-build-warnings-fix.patch make-the-pr_-family-of-macros-in-kernelh-complete.patch redefine-unregister_hotcpu_notifier-hotplug_cpu-stubs.patch x86-msr-driver-misc-cpuinit-annotations.patch i386-cpuid-misc-cpuinit-annotations.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