Messages in this thread | | | Subject | RE: [PATCH 2.6] cciss typo fix | From | James Bottomley <> | Date | Mon, 10 Jan 2005 09:50:38 -0600 |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |