Re: 2.6.0-test4-mm6
From: dave
Date: Fri Sep 05 2003 - 09:50:24 EST
Maciej Soltysiak wrote:
>> 2. X11R6 won't start anymore, it fails with a strange
>> Fatal server error:
>> xf86OpenConsole: VT_GETMODE failed
>> I can't find a reason for that in the changelog.
> Well, I can't start X because I am using nvidia drivers + www.minion.de
> patches, and some specs seem to have changed again.
> kernel: nvidia: Unknown symbol kdev_val
>
> If the kdev_t.h changes are going to stay, I will have to wait for
> Christian Zander's updates to the nvidia 2.6-patch.
The following patch fixes it for me.
Cheers,
dave
--- nv-linux.h 2003-09-05 15:20:55.000000000 +0100
+++ nv-linux.h.fixed 2003-09-05 15:21:03.000000000 +0100
@@ -129,8 +129,13 @@
#define NV_VMA_PRIVATE(vma) ((vma)->vm_private_data)
#ifdef KERNEL_2_5
-# define NV_DEVICE_NUMBER(_minor) ((kdev_val(_minor)) & 0x0f)
-# define NV_IS_CONTROL_DEVICE(_minor) (((kdev_val(_minor)) & 0xff) == 0xff)
+
+//# define NV_DEVICE_NUMBER(_minor) ((kdev_val(_minor)) & 0x0f)
+//# define NV_IS_CONTROL_DEVICE(_minor) (((kdev_val(_minor)) & 0xff) == 0xff)
+
+# define NV_DEVICE_NUMBER(_minor) (MINOR(_minor) & 0x0f)
+# define NV_IS_CONTROL_DEVICE(_minor) ((MINOR(_minor) & 0x0ff) == 0xff)
+
# define NV_IS_SUSER() capable(CAP_SYS_ADMIN)
# define NV_PCI_DEVICE_NAME(x) ((x)->pretty_name)
# define NV_CLI() local_irq_disable()
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/