Two compile fixes for recent obdfilter changes.
Compile warning fixups for 2.6/x86_64.
b=5545
#else
# define SOCKNAL_RISK_KMAP_DEADLOCK 1
#endif
-
+
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,72))
# define sk_allocation allocation
# define sk_data_ready data_ready
struct iovec *scratchiov = &scratch;
int niov = 1;
#else
+#ifdef CONFIG_HIGHMEM
#warning "XXX risk of kmap deadlock on multiple frags..."
+#endif
struct iovec *scratchiov = conn->ksnc_tx_scratch_iov;
int niov = tx->tx_nkiov;
#endif
struct iovec *scratchiov = &scratch;
int niov = 1;
#else
+#ifdef CONFIG_HIGHMEM
#warning "XXX risk of kmap deadlock on multiple frags..."
+#endif
struct iovec *scratchiov = conn->ksnc_rx_scratch_iov;
int niov = conn->ksnc_rx_nkiov;
-#endif
+#endif
ptl_kiov_t *kiov = conn->ksnc_rx_kiov;
struct msghdr msg = {
.msg_name = NULL,