1. 29 Jun, 2004 4 commits
    • Linus Torvalds's avatar
      sparse: fix pointer/integer confusion · 9893721c
      Linus Torvalds authored
      I don't think we're in K&R any more, Toto.
      
      If you want a NULL pointer, use NULL. Don't use an integer.
      
      Most of the users really didn't seem to know the proper type.
      9893721c
    • Anton Altaparmakov's avatar
      [PATCH] Remove NOOP code from fs/buffer.c::drop_buffers() · 4d1ae8c5
      Anton Altaparmakov authored
      I noticed that fs/buffer.c::drop_buffers() contains some code that
      AFAICS doesn't actually do anything other than waste cpu cycles so here
      is patch to remove it...  The local variable was_uptodate is being
      messed with but it is not being read anywhere so it seems entirely
      pointless.
      
      I assume this must be a remainder from old code which mucked around with
      the page uptodateness but which has since been (re-)moved.
      Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      4d1ae8c5
    • Mika Kukkonen's avatar
      [PATCH] sparse: fix ugly include/linux/efi.h typedef · 0816a653
      Mika Kukkonen authored
      efi.h declares a function type, and then uses that as an argument to
      another function, and expects the compiler to magically demote the
      function to a function pointer.
      
      Even a gcc person (rth) was surprised that this was legal, and it
      doesn't match any other use of a function pointer in the kernel, and
      sparse doesn't like the implicit type-conversion.
      
      So make the type sane in the first place, instead of depending on
      a very weird corner case of the C language.
      0816a653
    • Paul Mackerras's avatar
      [PATCH] ppc64: fix memset · 7df8818d
      Paul Mackerras authored
      This fixes a bug in the ppc64 memset where the code that gets the
      destination address aligned (or is supposed to) was looking at the
      bottom 3 bits of the count rather than the destination address.  The
      result of this was that the kernel wouldn't boot on POWER3 machines. 
      The patch also removes an unnecessary duplicate instruction.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      7df8818d
  2. 28 Jun, 2004 8 commits
  3. 27 Jun, 2004 28 commits