From f272064c12ddabe59037ec52ade5f4905c912be4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 16 Jun 2015 23:10:28 +0000 Subject: [PATCH] iscsi-scst: Suppress put_page_callback patch warnings The put_page_callback patch only improves performance on single socket systems but not on systems with multiple CPU sockets. Since this message is confusing to SCST users, do not print a warning if the put_page_callback patch has not been applied. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6340 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index 30df54f9d..c01d9636a 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -31,7 +31,7 @@ #include "iscsi.h" #include "digest.h" -#ifndef GENERATING_UPSTREAM_PATCH +#if 0 && !defined(GENERATING_UPSTREAM_PATCH) #if !defined(CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION) #warning Patch put_page_callback-.patch not applied on your \ kernel or CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION \ @@ -4298,7 +4298,7 @@ static int __init iscsi_init(void) goto out_destroy_mempool; } #else -#ifndef GENERATING_UPSTREAM_PATCH +#if 0 && !defined(GENERATING_UPSTREAM_PATCH) PRINT_WARNING("%s", "CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION " "not enabled in your kernel. ISCSI-SCST will be working with "