class_devno_max is an inline function that is written with the sole purpose of returning the value of MAX_OBD_DEVICES. Since no computations are made by the class_devno_max, replace it with MAX_OBD_DEVICES. Aya Mahfouz (2): staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES staging: lustre: remove class_devno_max drivers/staging/lustre/lustre/include/obd_class.h | 5 ----- drivers/staging/lustre/lustre/obdclass/class_obd.c | 6 +++--- drivers/staging/lustre/lustre/obdclass/genops.c | 22 +++++++++++----------- .../lustre/lustre/obdclass/linux/linux-module.c | 6 +++--- 4 files changed, 17 insertions(+), 22 deletions(-) -- 2.5.0 -- Kind Regards, Aya Saif El-yazal Mahfouz _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel