From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: RE: [PATCH 2.6] cciss typo fix Date: Mon, 10 Jan 2005 09:50:38 -0600 Message-ID: <1105372238.4477.5.camel@mulgrave> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from stat16.steeleye.com ([209.192.50.48]:2001 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S262304AbVAJPvY (ORCPT ); Mon, 10 Jan 2005 10:51:24 -0500 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Miller, Mike (OS Dev)" Cc: Jens Axboe , Andrew Morton , Linux Kernel , SCSI Mailing List On Mon, 2005-01-10 at 09:45 -0600, Miller, Mike (OS Dev) wrote: > Even if it were added to the compat header; is using __be32 correct in this context? They should be. The __be annotations track unconverted big endian numbers. be32_to_cpu checks that it's only taking __be annotated variables (at least when sparse tracks it), so the cast is correct and prevents sparse from warning. James