From 7a9e704b1ae472dd0144065045d280010fc9477a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 3 Feb 2004 18:43:27 -0800 Subject: [PATCH] [PATCH] osst.c: suppress page allocation failure warnings This driver is trying an order-9 allocation and if that fails, order 8, etc. Crufty, but we do expect failures, so suppress the warnings. --- drivers/scsi/osst.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index 3c793cbe6671c..a465197467fca 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi/osst.c @@ -5106,6 +5106,8 @@ static int enlarge_buffer(OSST_buffer *STbuffer, int need_dma) if (need_dma) priority |= GFP_DMA; + priority |= __GFP_NOWARN; + /* Try to allocate the first segment up to OS_DATA_SIZE and the others big enough to reach the goal (code assumes no segments in place) */ for (b_size = OS_DATA_SIZE, order = OSST_FIRST_ORDER; b_size >= PAGE_SIZE; order--, b_size /= 2) { -- 2.53.0