public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dominik.Strasser@t-online.de (Dominik Strasser)
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@transmeta.com>
Subject: Re: [PATCH] scsi.h uses "u8" which isn't defined.
Date: Sun, 17 Aug 2003 15:50:16 +0200	[thread overview]
Message-ID: <3F3F8818.9040101@t-online.de> (raw)
In-Reply-To: <20030817140735.A11477@infradead.org>

Christoph Hellwig wrote:
> On Sun, Aug 17, 2003 at 03:08:55PM +0200, Dominik Strasser wrote:
> 
>>I am sorry, in 2.6.0-test3 (which I should have mentioned), there is no 
>>u8 in liux/types.h.
> 
> 
> u8 is defined in asm/types.h but the proper way to include asm/types.h
> is through linux/types.h.
> 
> 
>>Just a __u8.
>>Nevertheless there is a mixture in scsi.h, some lines above, u_char is 
>>used. This is why I chose to use it.
> 
> 
> If you want consistency please convert all u_char to u8 (similar
> for u_short -> u16 and u_int -> u32)
> 
> 

OK, here we go:

--- /tmp/scsi.h 2003-08-17 14:39:42.000000000 +0200
+++ include/scsi/scsi.h 2003-08-17 15:46:27.000000000 +0200
@@ -6,6 +6,8 @@
   * the scsi code for linux.
   */

+#include <linux/types.h>
+
  /*
      $Header: /usr/src/linux/include/linux/RCS/scsi.h,v 1.3 1993/09/24 
12:20:33 drew Exp $

@@ -208,18 +210,18 @@

  struct ccs_modesel_head
  {
-    u_char  _r1;    /* reserved */
-    u_char  medium; /* device-specific medium type */
-    u_char  _r2;    /* reserved */
-    u_char  block_desc_length; /* block descriptor length */
-    u_char  density; /* device-specific density code */
-    u_char  number_blocks_hi; /* number of blocks in this block desc */
-    u_char  number_blocks_med;
-    u_char  number_blocks_lo;
-    u_char  _r3;
-    u_char  block_length_hi; /* block length for blocks in this desc */
-    u_char  block_length_med;
-    u_char  block_length_lo;
+    u8  _r1;    /* reserved */
+    u8  medium; /* device-specific medium type */
+    u8  _r2;    /* reserved */
+    u8  block_desc_length; /* block descriptor length */
+    u8  density; /* device-specific density code */
+    u8  number_blocks_hi; /* number of blocks in this block desc */
+    u8  number_blocks_med;
+    u8  number_blocks_lo;
+    u8  _r3;
+    u8  block_length_hi; /* block length for blocks in this desc */
+    u8  block_length_med;
+    u8  block_length_lo;
  };

  /*


  reply	other threads:[~2003-08-17 13:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-17 12:42 [PATCH] scsi.h uses "u8" which isn't defined Dominik Strasser
2003-08-17 12:46 ` Christoph Hellwig
2003-08-17 13:08   ` Dominik Strasser
2003-08-17 13:07     ` Christoph Hellwig
2003-08-17 13:50       ` Dominik Strasser [this message]
2003-08-17 13:07     ` Muli Ben-Yehuda
2003-08-17 12:55 ` Muli Ben-Yehuda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F3F8818.9040101@t-online.de \
    --to=dominik.strasser@t-online.de \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox