mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
a5589e099a73e4515b197a3e315b88a734138e06
performs a.o. 64-bit division. While gcc supports 64-bit divisions on 32-bit CPU's, gcc generates a function call for these 64-bit divisions (see also http://gcc.gnu.org/onlinedocs/gccint/Integer-library-routines.html for the entire list). Unfortunately there is no implementation available for these functions in the Linux kernel. Which means that loading kernel modules that contain 64-bit divisions on a 32-bit system will fail and that insmod/ modprobe will complain about undefined references to e.g. __umoddi3. AFAIK the proper approach in the Linux kernel is to use the do_div() macro for performing 64-bit divisions. This macro is defined in <asm/div64.h>. The patch below converts the call to div_s64_rem() by a call to do_div(). The patch below has been verified as follows: - Reran scripts/run-regression-tests -k 2.6.24.7 -k 2.6.25.20 -k 2.6.26.8 -k 2.6.27.12 -k 2.6.28.1 on a 64-bit system and verified that the output of the re*/sparse* files did not contain any compilation errors. - Verified that the patched SCST source compiles fine on CentOS 5.2, 32-bit. - Verified that the scst_vdisk module loads correctly on CentOS 5.2, 32-bit. Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@640 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This is the SCST development repository. It contains not a single project SCST as one can think, but a number of them, which are divided as the following: 1. SCST core in scst/ subdirectory 2. Administration utility for SCST core scstadmin in scstadmin/ 3. Target drivers in own subdirectories qla2x00t/, iscsi-scst/, etc. 4. User space programs in usr/ subdirectory, like fileio_tgt. 5. Some various docs in doc/ subdirectory. Those subprojects are in most cases independent from each other, although some of them depend from the SCST core. They put in the single repository only to simplify their development, they are released independently. Thus, use "make all" only if you really need to build everything. Otherwise build only what you need, like for iSCSI-SCST: make scst scst_install iscsi iscsi_install For more information about each subproject see their README files. Vladislav Bolkhovitin <vst@vlnb.net>, http://scst.sourceforge.net
Description
Languages
C
90.1%
Perl
4.2%
Shell
1.8%
HTML
1.7%
Makefile
1.2%
Other
0.9%