1. 30 Jul, 2015 36 commits
  2. 24 Jun, 2015 1 commit
  3. 23 Jun, 2015 3 commits
    • Tim Gardner's avatar
      fs: namespace: suppress 'may be used uninitialized' warnings · cafc8384
      Tim Gardner authored
      commit b8850d1f upstream.
      
      The gcc version 4.9.1 compiler complains Even though it isn't possible for
      these variables to not get initialized before they are used.
      
      fs/namespace.c: In function ‘SyS_mount’:
      fs/namespace.c:2720:8: warning: ‘kernel_dev’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags,
              ^
      fs/namespace.c:2699:8: note: ‘kernel_dev’ was declared here
        char *kernel_dev;
              ^
      fs/namespace.c:2720:8: warning: ‘kernel_type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags,
              ^
      fs/namespace.c:2697:8: note: ‘kernel_type’ was declared here
        char *kernel_type;
              ^
      
      Fix the warnings by simplifying copy_mount_string() as suggested by Al Viro.
      
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      cafc8384
    • Mark Brown's avatar
      ASoC: imx-audmux: Use uintptr_t for port numbers · 8a0590bf
      Mark Brown authored
      commit e5f89768 upstream.
      
      Since we pass the port number through file private data for debugfs we cast
      it to and from a pointer so use uintptr_t in order to ensure that the
      types are compatible, avoiding warnings on 64 bit platforms where pointers
      are 64 bit and unsigned integers 32 bit.
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      8a0590bf
    • Mark Hambleton's avatar
      arm64: cmpxchg: update macros to prevent warnings · 12c55b60
      Mark Hambleton authored
      commit 60010e50 upstream.
      
      Make sure the value we are going to return is referenced in order to
      avoid warnings from newer GCCs such as:
      
      arch/arm64/include/asm/cmpxchg.h:162:3: warning: value computed is not used [-Wunused-value]
        ((__typeof__(*(ptr)))__cmpxchg_mb((ptr),   \
         ^
      net/netfilter/nf_conntrack_core.c:674:2: note: in expansion of macro ‘cmpxchg’
        cmpxchg(&nf_conntrack_hash_rnd, 0, rand);
      
      [Modified to use the current underlying implementation as current
      mainline for both cmpxchg() and cmpxchg_local() does -- broonie]
      Signed-off-by: default avatarMark Hambleton <mahamble@broadcom.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      12c55b60