From ba12e999438f06e4981d9d2f83dfe44d68b467fd Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 20 Oct 2008 10:19:30 +0000 Subject: [PATCH] liblustre build fixes for 2.6.18-53 (found by Shadow). --- lustre/obdclass/lu_object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/obdclass/lu_object.c b/lustre/obdclass/lu_object.c index 35d76cf..c4e3f2b 100644 --- a/lustre/obdclass/lu_object.c +++ b/lustre/obdclass/lu_object.c @@ -964,7 +964,7 @@ EXPORT_SYMBOL(lu_object_locate); /** * Finalize and free devices in the device stack. - * + * * Finalize device stack by purging object cache, and calling * lu_device_type_operations::ldto_device_fini() and * lu_device_type_operations::ldto_device_free() on all devices in the stack. @@ -1598,7 +1598,7 @@ void fid_pack(struct lu_fid_pack *pack, const struct lu_fid *fid, } else { unsigned char *small_befider; - small_befider = (char *)befider; + small_befider = (unsigned char *)befider; small_befider[0] = seq >> 16; small_befider[1] = seq >> 8; @@ -1627,7 +1627,7 @@ int fid_unpack(const struct lu_fid_pack *pack, struct lu_fid *fid) case 6: { const unsigned char *area; - area = pack->fp_area; + area = (unsigned char *)pack->fp_area; fid->f_seq = (area[0] << 16) | (area[1] << 8) | area[2]; fid->f_oid = (area[3] << 8) | area[4]; fid->f_ver = 0; -- 1.8.3.1