[openib-general] Why doesn't the 24-kernel actually compile on 2.4 kernels?

Ariel Cohen
Thu Apr 1 18:06:22 PST 2004


I wonder if there's a way to set the nice value which is portable across
kernels.

Ariel

-----Original Message-----
From: Roland Dreier 
Sent: Thursday, April 01, 2004 5:57 PM
To: openib-general at openib.org
Subject: Re: [openib-general] Why doesn't the 24-kernel actually compile
on 2.4 kernels?
Importance: High

    Mike> After a build, with various compile fixes, without ipoib,
    Mike> the modules have undefined symbols:

    Mike>
/lib/modules/2.4.25/kernel/drivers/infiniband/core/ib_services.o:
    Mike> unresolved symbol set_user_nice

Hmm... looks like newer kernels don't have set_user_nice.  For basic
testing you can just delete the call to set_user_nice in
services_thread.c (or change it to an assignment to current->nice I
guess?).

    Mike> EXTRA_FLAGS does include -DIN_TREE_BUILD...  but don't seem
    Mike> to make it into the compile line since I don't see how they
    Mike> would ever be included.  Here's the Makefile in ulp/ipoib:

    Mike> EXTRA_CFLAGS += \
    Mike>     -I$(TOPDIR)/drivers/infiniband/include \
    Mike>     #-DRHEL_ROUTE_FLOW_API \
    Mike>     -DIN_TREE_BUILD \
    Mike>     -DTS_HOST_DRIVER -D_NO_DATA_PATH_TRACE

This one is your fault I think :)  Putting that "#" in the front of a
line in the middle of a variable assignment causes make to ignore the
rest of the assignment (since it skips the "\" at the end of the line
as part of the comment).  Better to just delete the
-DRHEL_ROUTE_FLOW_API line.

 - ROland

-- 
To unsubscribe send an email with subject unsubscribe to
openib-general at openib.org.
Please contact moderator at openib.org for questions.


-- 
To unsubscribe send an email with subject unsubscribe to openib-general at openib.org.
Please contact moderator at openib.org for questions.




More information about the openib-general mailing list