Print this page
de-linting of .s files

@@ -26,14 +26,10 @@
 
 #ident  "%Z%%M% %I%     %E% SMI"
 
 #include <sys/asm_linkage.h>
 
-#if defined(lint)
-#include <sys/types.h>
-#endif  /* lint */
-
 /*
  * ip_ocsum(address, halfword_count, sum)
  * Do a 16 bit one's complement sum of a given number of (16-bit)
  * halfwords. The halfword pointer must not be odd.
  *      %o0 address; %o1 count; %o2 sum accumulator; %o4 temp

@@ -41,19 +37,10 @@
  *
  * (from @(#)ocsum.s 1.3 89/02/24 SMI)
  *
  */
 
-#if defined(lint) 
-
-/* ARGSUSED */
-unsigned int
-ip_ocsum(u_short *address, int halfword_count, unsigned int sum)
-{ return (0); }
-
-#else   /* lint */
-
         ENTRY(ip_ocsum)
         cmp     %o1, 31         ! less than 62 bytes?
         bl,a    .dohw           !   just do halfwords
         tst     %o1             ! delay slot, test count
 

@@ -122,6 +109,5 @@
         srl     %o2, 16, %o2    ! shift to low halfword
         retl                    ! return
         addxcc  %o2, 0, %o0     ! add in carry if any. result in %o0
         SET_SIZE(ip_ocsum)
 
-#endif  /* lint */