1. 07 8月, 2014 1 次提交
  2. 17 10月, 2012 1 次提交
    • D
      UAPI: Remove empty non-UAPI Kbuild files · 64d7155c
      David Howells 提交于
      Remove non-UAPI Kbuild files that have become empty as a result of UAPI
      disintegration.  They used to have only header-y lines in them and those have
      now moved to the Kbuild files in the corresponding uapi/ directories.
      
      Possibly these should not be removed but rather have a comment inserted to say
      they are intentionally left blank.  This would make it easier to add generated
      header lines in future without having to restore the infrastructure.
      
      Note that at this point not all the UAPI disintegration parts have been merged,
      so it is likely that more empty Kbuild files will turn up.
      
      It is probably necessary to make the files non-empty to prevent the patch
      program from automatically deleting them when it reduces them to nothing.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      64d7155c
  3. 13 10月, 2012 1 次提交
  4. 15 8月, 2010 1 次提交
  5. 26 5月, 2010 1 次提交
    • L
      Revert "endian: #define __BYTE_ORDER" · 13da9e20
      Linus Torvalds 提交于
      This reverts commit b3b77c8c, which was
      also totally broken (see commit 0d2daf5c that reverted the crc32
      version of it).  As reported by Stephen Rothwell, it causes problems on
      big-endian machines:
      
      > In file included from fs/jfs/jfs_types.h:33,
      >                  from fs/jfs/jfs_incore.h:26,
      >                  from fs/jfs/file.c:22:
      > fs/jfs/endian24.h:36:101: warning: "__LITTLE_ENDIAN" is not defined
      
      The kernel has never had that crazy "__BYTE_ORDER == __LITTLE_ENDIAN"
      model.  It's not how we do things, and it isn't how we _should_ do
      things.  So don't go there.
      Requested-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      13da9e20
  6. 25 5月, 2010 1 次提交
  7. 07 1月, 2009 1 次提交
    • H
      byteorder: only use linux/swab.h · 991c0e6d
      Harvey Harrison 提交于
      The first step to make swab.h a regular header that will
      include an asm/swab.h with arch overrides.
      
      Avoid the gratuitous differences introduced in the new
      linux/swab.h by naming the ___constant_swabXX bits and
      __fswabXX bits exactly as found in the old implementation
      in byteorder/swab[b].h
      
      Use this new swab.h in byteorder/[big|little]_endian.h and
      remove the two old swab headers.
      
      Although the inclusion of asm/byteorder.h looks strange in
      linux/swab.h, this will allow each arch to move the actual
      arch overrides for the swab bits in an asm file and then
      the includes can be cleaned up without requiring a flag day
      for all arches at once.
      
      Keep providing __fswabXX in case some userspace was using them
      directly, but the revised __swabXX should be used instead in
      any new code and will always do constant folding not dependent
      on the optimization level, which means the __constant versions
      can be phased out in-kernel.
      
      Arches that use the old-style arch macros will lose their
      optimized versions until they move to the new style, but at
      least they will still compile.  Many arches have already moved
      and the patches to move the remaining arches are trivial.
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      991c0e6d
  8. 20 10月, 2008 1 次提交
  9. 26 7月, 2008 1 次提交
  10. 30 4月, 2008 1 次提交
  11. 09 2月, 2008 1 次提交
    • M
      byteorder: move le32_add_cpu & friends from OCFS2 to core · 8b5f6883
      Marcin Slusarz 提交于
      This patchset moves le*_add_cpu and be*_add_cpu functions from OCFS2 to core
      header (1st), converts ext3 filesystem to this API (2nd) and replaces XFS
      different named functions with new ones (3rd).
      
      There are many places where these functions will be useful.  Just look at:
      grep -r 'cpu_to_[ble12346]*([ble12346]*_to_cpu.*[-+]' linux-src/ Patch for
      ext3 is an example how conversions will probably look like.
      
      This patch:
      
      - move inline functions which add native byte order variable to
        little/big endian variable to core header
        * le16_add_cpu(__le16 *var, u16 val)
        * le32_add_cpu(__le32 *var, u32 val)
        * le64_add_cpu(__le64 *var, u64 val)
        * be32_add_cpu(__be32 *var, u32 val)
      - add for completeness:
        * be16_add_cpu(__be16 *var, u16 val)
        * be64_add_cpu(__be64 *var, u64 val)
      Signed-off-by: NMarcin Slusarz <marcin.slusarz@gmail.com>
      Acked-by: NMark Fasheh <mark.fasheh@oracle.com>
      Cc: David Chinner <dgc@sgi.com>
      Cc: Timothy Shimmin <tes@sgi.com>
      Cc: <linux-ext4@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8b5f6883
  12. 09 5月, 2007 2 次提交
    • M
      Fix compilation of drivers with -O0 · ee7b9e37
      Michal Schmidt 提交于
      It is sometimes useful to compile individual drivers with optimization
      disabled for easier debugging.  Currently drivers which use htonl() and
      similar functions don't compile with -O0.  This patch fixes it.  It also
      removes obsolete and misleading comments.  This header is not for
      userspace, so we don't have to care about strange programs these comments
      mention.
      
      (akpm: -O0 probably isn't a good idea, but this code looks pretty crufty and
      unuseful)
      Signed-off-by: NMichal Schmidt <mschmidt@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ee7b9e37
    • T
      Fix constant folding and poor optimization in byte swapping code · 8e2c2002
      Trent Piepho 提交于
      Constant folding does not work for the swabXX() byte swapping functions,
      and the C versions optimize poorly.
      
      Attempting to initialize a global variable to swab16(0x1234) or put
      something like "case swab32(42):" in a switch statement will not compile.
      It can work, swab.h just isn't doing it correctly.  This patch fixes that.
      
      Contrary to the comment in asm-i386/byteorder.h, gcc does not recognize the
      "C" version of swab16 and turn it into efficient code.  gcc can do this,
      just not with the current code.  The simple function:
      
      u16 foo(u16 x) { return swab16(x); }
      
      Would compile to:
              movzwl  %ax, %eax
              movl    %eax, %edx
              shrl    $8, %eax
              sall    $8, %edx
              orl     %eax, %edx
      
      With this patch, it will compile to:
              rolw    $8, %ax
      
      I also attempted to document the maze different macros/inline functions
      that are used to create the final product.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Cc: Francois-Rene Rideau <fare@tunes.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8e2c2002
  13. 12 2月, 2007 2 次提交
  14. 19 9月, 2006 1 次提交
  15. 18 6月, 2006 1 次提交
  16. 09 1月, 2006 1 次提交
  17. 20 9月, 2005 1 次提交
  18. 29 6月, 2005 1 次提交
    • A
      [PATCH] swabb.h warning fixes · 05133fc4
      Andrew Morton 提交于
      In file included from drivers/media/dvb/ttpci/av7110_hw.c:38:
      include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
      include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
      In file included from drivers/media/dvb/ttpci/av7110_v4l.c:36:
      include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
      include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
      In file included from drivers/media/dvb/ttpci/av7110_av.c:37:
      include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
      include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
      drivers/isdn/icn/icn.c:719:4: warning: #warning TODO test headroom or use skb->nb to flag ACK
      In file included from drivers/media/dvb/ttpci/av7110_ca.c:39:
      include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
      include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
      In file included from drivers/media/dvb/ttpci/av7110.c:41:
      include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
      include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
      
      Does declaring a function to return a const value actually mean something to
      gcc?
      
      Dunno.  Kill it and replace sone `__inline__'s with `inline' too.
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      05133fc4
  19. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4