Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp43144imu; Thu, 15 Nov 2018 21:43:35 -0800 (PST) X-Google-Smtp-Source: AJdET5c9+fxbdCXbkxoVY4Qaor7k+6xcw91xY4KZpsERuFMqSwTUCUAozmPCXkRaQ3K7W/7OaG+8 X-Received: by 2002:a17:902:503:: with SMTP id 3-v6mr9588507plf.88.1542347015620; Thu, 15 Nov 2018 21:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542347015; cv=none; d=google.com; s=arc-20160816; b=vF1ZjCWA2yanPeqONzj/B9V9ka2vYwAHgCOTWvzR4GPf9SVp05DoJflSVSz3laGY88 rn+V8vP+1s1hsVRymgcoHlzWKdJFk7O7l6rDL9RiAccgNcJG/LVq3dfW1wmW4EWOce8Q lipzCNKIVnXbVZu3QEHn6DbKBJHY5VqpIVX6sCcyxkkmFHndCpn4lihSadYKduAewlZb nVN6Hime2gjcIJ8qUHuvTMPPWfh68k/3rFjdjIZDc0dcftPuZgqtHnX/Nf4FDEGaqaT2 lFz7F2RopceEBgJHrUyhHRCmCtIOArDPJKBpdIkGnVb/Wxz5BboZMVQI+zygMGdd7Ij1 Wy+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=5PnlOFqIrjmUDve9THM46Xu/J7k9W11ea4jWIoAESmU=; b=PvSOAKMv2agGQEAs2Mo4A1sLGYLHaR23WxsOBGh7JE3DA9lF/VylIUF8RID016FxFZ fuNpWD1YAzuiFhfk5dmR5GyFaHaCIB+8CZbDRhunEYwHD9r7xYZ1iiqn31pRX/cS9Y27 0JBgXrmKj4FAMkuNr2D7UomKcWS55Qu2KeSB4Zy6WjEo15oa71zHo4qugXC3cRtY4bGI fa2GIMeC8Zua0TZLKx7ynuR0mpq8SIAmTL669kFclBpr2ygKJ8CwpeHdoudSaNnJdmjW +H0s5x8/urIkJ76WvsjomRN1C1dGUgkkhMTKMrrWN4gAQhNcYDV9RKO0bOa2f8TSq+nI MowA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="VeSo/jHp"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ce19-v6si33302895plb.162.2018.11.15.21.43.05; Thu, 15 Nov 2018 21:43:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="VeSo/jHp"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389095AbeKPPwY (ORCPT + 99 others); Fri, 16 Nov 2018 10:52:24 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:20768 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbeKPPwY (ORCPT ); Fri, 16 Nov 2018 10:52:24 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id wAG5ecAP027159; Fri, 16 Nov 2018 14:40:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com wAG5ecAP027159 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1542346839; bh=5PnlOFqIrjmUDve9THM46Xu/J7k9W11ea4jWIoAESmU=; h=From:To:Cc:Subject:Date:From; b=VeSo/jHp6/Dip4hZPzh8MJXwuypQl+tUyqUatjwNxAI33n9oJSes0CKcsJEU7/JgN gUHDld6a5yq60RnG4X5AzyBqCGkOaT+39HqCHrG8//PuC+0n/tIIrqutX1LaqVcfVt pKoMzlHjeon96n6/5HydZBP4yNURSdkeyyRJdZRGhQcyTF3/Ti7JotJOq/lK9KgZoX hn4lqUc1ZhH/KinJzVFiU3J9jUJOSk8Qkb1VHp94lCznIdgL/ud31501zHDSetrsRU hxflNDf8BjqaAVqbCNbhM9nnXVGIaIQ+jF4lFIEUV8BnnLJYlueNqmaz9kUsV4PtIs 0FnDlsmE10b/g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] slab: fix 'dubious: x & !y' warning from Sparse Date: Fri, 16 Nov 2018 14:40:29 +0900 Message-Id: <1542346829-31063-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports: ./include/linux/slab.h:332:43: warning: dubious: x & !y Signed-off-by: Masahiro Yamada --- include/linux/slab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 918f374..d395c73 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -329,7 +329,7 @@ static __always_inline enum kmalloc_cache_type kmalloc_type(gfp_t flags) * If an allocation is both __GFP_DMA and __GFP_RECLAIMABLE, return * KMALLOC_DMA and effectively ignore __GFP_RECLAIMABLE */ - return type_dma + (is_reclaimable & !is_dma) * KMALLOC_RECLAIM; + return type_dma + (is_reclaimable && !is_dma) * KMALLOC_RECLAIM; } /* -- 2.7.4