diff -urN ../linux-2.6.24-orig/include/linux/loop.h include/linux/loop.h
--- ../linux-2.6.24-orig/include/linux/loop.h	2008-01-25 07:58:37 +0900
+++ include/linux/loop.h	2008-02-11 15:08:05 +0900
@@ -10,6 +10,8 @@
  * permitted under the GNU General Public License.
  */
 
+#include <linux/ioctl.h>
+
 #define LO_NAME_SIZE	64
 #define LO_KEY_SIZE	32
 
@@ -152,12 +154,12 @@
  * IOCTL commands --- we will commandeer 0x4C ('L')
  */
 
-#define LOOP_SET_FD		0x4C00
-#define LOOP_CLR_FD		0x4C01
-#define LOOP_SET_STATUS		0x4C02
-#define LOOP_GET_STATUS		0x4C03
-#define LOOP_SET_STATUS64	0x4C04
-#define LOOP_GET_STATUS64	0x4C05
-#define LOOP_CHANGE_FD		0x4C06
+#define LOOP_SET_FD		_IO('L',0)
+#define LOOP_CLR_FD		_IO('L',1)
+#define LOOP_SET_STATUS		_IO('L',2)
+#define LOOP_GET_STATUS		_IO('L',3)
+#define LOOP_SET_STATUS64	_IO('L',4)
+#define LOOP_GET_STATUS64	_IO('L',5)
+#define LOOP_CHANGE_FD		_IO('L',6)
 
 #endif
