1. 30 Jul, 2011 14 commits
  2. 29 Jul, 2011 6 commits
    • Michal Marek's avatar
      kconfig: Introduce IS_ENABLED(), IS_BUILTIN() and IS_MODULE() · 2a11c8ea
      Michal Marek authored
      Replace the config_is_*() macros with a variant that allows for grepping
      for usage of CONFIG_* options in the code. Usage:
      
        if (IS_ENABLED(CONFIG_NUMA))
      
      or
      
        #if IS_ENABLED(CONFIG_NUMA)
      
      The IS_ENABLED() macro evaluates to 1 if the argument is set (to either 'y'
      or 'm'), IS_BUILTIN() tests if the option is 'y' and IS_MODULE() test if
      the option is 'm'. Only boolean and tristate options are supported.
      Reviewed-by: default avatarArnaud Lacombe <lacombar@gmail.com>
      Acked-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      2a11c8ea
    • Markus Trippelsdorf's avatar
      xfs: Fix build breakage in xfs_iops.c when CONFIG_FS_POSIX_ACL is not set · a5a7bbcc
      Markus Trippelsdorf authored
      commit 4e34e719, that takes the ACL checks to common code,
      accidentely broke the build when CONFIG_FS_POSIX_ACL is not set:
      
        CC      fs/xfs/linux-2.6/xfs_iops.o
      fs/xfs/linux-2.6/xfs_iops.c:1025:14: error: ‘xfs_get_acl’ undeclared here (not in a function)
      
      Fix this by declaring xfs_get_acl a static inline function.
      Signed-off-by: default avatarMarkus Trippelsdorf <markus@trippelsdorf.de>
      Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
      a5a7bbcc
    • Stephen Rothwell's avatar
      [media] ir-mce_kbd-decoder: include module.h for its facilities · ee2ce3a0
      Stephen Rothwell authored
      drivers/media/rc/ir-mce_kbd-decoder.c:446:16: error: expected declaration specifiers or '...' before string constant
      drivers/media/rc/ir-mce_kbd-decoder.c:446:1: warning: data definition has no type or storage class
      drivers/media/rc/ir-mce_kbd-decoder.c:446:1: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
      drivers/media/rc/ir-mce_kbd-decoder.c:446:16: warning: function declaration isn't a prototype
      drivers/media/rc/ir-mce_kbd-decoder.c:447:15: error: expected declaration specifiers or '...' before string constant
      drivers/media/rc/ir-mce_kbd-decoder.c:447:1: warning: data definition has no type or storage class
      drivers/media/rc/ir-mce_kbd-decoder.c:447:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
      drivers/media/rc/ir-mce_kbd-decoder.c:447:15: warning: function declaration isn't a prototype
      drivers/media/rc/ir-mce_kbd-decoder.c:448:20: error: expected declaration specifiers or '...' before string constant
      drivers/media/rc/ir-mce_kbd-decoder.c:448:1: warning: data definition has no type or storage class
      drivers/media/rc/ir-mce_kbd-decoder.c:448:1: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
      drivers/media/rc/ir-mce_kbd-decoder.c:448:20: warning: function declaration isn't a prototype
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      ee2ce3a0
    • Stephen Rothwell's avatar
      [media] ov5642: include module.h for its facilities · d208c97c
      Stephen Rothwell authored
      drivers/media/video/ov5642.c:985:1: warning: data definition has no type or storage class
      drivers/media/video/ov5642.c:985:1: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE'
      drivers/media/video/ov5642.c:985:1: warning: parameter names (without types) in function declaration
      drivers/media/video/ov5642.c: In function 'ov5642_mod_init':
      drivers/media/video/ov5642.c:998:9: error: 'THIS_MODULE' undeclared (first use in this function)
      drivers/media/video/ov5642.c:998:9: note: each undeclared identifier is reported only once for each function it appears in
      drivers/media/video/ov5642.c: At top level:
      drivers/media/video/ov5642.c:1009:20: error: expected declaration specifiers or '...' before string constant
      drivers/media/video/ov5642.c:1009:1: warning: data definition has no type or storage class
      drivers/media/video/ov5642.c:1009:1: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
      drivers/media/video/ov5642.c:1009:20: warning: function declaration isn't a prototype
      drivers/media/video/ov5642.c:1010:15: error: expected declaration specifiers or '...' before string constant
      drivers/media/video/ov5642.c:1010:1: warning: data definition has no type or storage class
      drivers/media/video/ov5642.c:1010:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
      drivers/media/video/ov5642.c:1010:15: warning: function declaration isn't a prototype
      drivers/media/video/ov5642.c:1011:16: error: expected declaration specifiers or '...' before string constant
      drivers/media/video/ov5642.c:1011:1: warning: data definition has no type or storage class
      drivers/media/video/ov5642.c:1011:1: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
      drivers/media/video/ov5642.c:1011:16: warning: function declaration isn't a prototype
      drivers/media/video/ov5642.c: In function 'ov5642_mod_init':
      drivers/media/video/ov5642.c:999:1: warning: control reaches end of non-void function
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      d208c97c
    • Thieu Le's avatar
      ecryptfs: Make inode bdi consistent with superblock bdi · 985ca0e6
      Thieu Le authored
      Make the inode mapping bdi consistent with the superblock bdi so that
      dirty pages are flushed properly.
      Signed-off-by: default avatarThieu Le <thieule@chromium.org>
      Cc: <stable@kernel.org> [2.6.39+]
      Signed-off-by: default avatarTyler Hicks <tyhicks@linux.vnet.ibm.com>
      985ca0e6
    • Tyler Hicks's avatar
      eCryptfs: Unlock keys needed by ecryptfsd · b2987a5e
      Tyler Hicks authored
      Fixes a regression caused by b5695d04
      
      Kernel keyring keys containing eCryptfs authentication tokens should not
      be write locked when calling out to ecryptfsd to wrap and unwrap file
      encryption keys. The eCryptfs kernel code can not hold the key's write
      lock because ecryptfsd needs to request the key after receiving such a
      request from the kernel.
      
      Without this fix, all file opens and creates will timeout and fail when
      using the eCryptfs PKI infrastructure. This is not an issue when using
      passphrase-based mount keys, which is the most widely deployed eCryptfs
      configuration.
      Signed-off-by: default avatarTyler Hicks <tyhicks@linux.vnet.ibm.com>
      Acked-by: default avatarRoberto Sassu <roberto.sassu@polito.it>
      Tested-by: default avatarRoberto Sassu <roberto.sassu@polito.it>
      Tested-by: default avatarAlexis Hafner1 <haf@zurich.ibm.com>
      Cc: <stable@kernel.org> [2.6.39+]
      b2987a5e
  3. 28 Jul, 2011 20 commits