From patchwork Fri Nov 16 05:40:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 151271 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9120ljp; Thu, 15 Nov 2018 21:41:33 -0800 (PST) X-Google-Smtp-Source: AJdET5dJEckacuZyh+JUPgFPvhJN0/RikirtMr5bxTKeXUj2gP2GgcKHOuvI+WfCqlWaKOi6X8I3 X-Received: by 2002:a63:f811:: with SMTP id n17mr8881910pgh.23.1542346893038; Thu, 15 Nov 2018 21:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542346893; cv=none; d=google.com; s=arc-20160816; b=I2LjU6jrQjTiuSnNjRHuE22Dd9pGVYkprpEMHl4zw/rT7gb+cHdUd8Ywsi67xxAWuy Nu8Q5X/cUjuqOcnARA6hOm8quUoKmJNHS1KE48pe1Glr9z4FID3rxTx7lDcClwdDmX/8 yGqFAiacLGIrLF4rjIUnjuxOrRFwnCXUchGPElYQhNf1my0S/dQyz0L3M/yDfscETYiq DT70JZqH9ZTxjKndfi2f1DreND97Lg6QraRHeb1eNo3dzu1tCA4Oi6Rrp765zEHW2JMn qEAic+RPpPYFfh3PeNUqFU5ipy+SdbZFHZDDuDzsDm6nOpHb3eeVl/X1w/q+hoBdqw64 411g== 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 t4si8955018pfj.183.2018.11.15.21.41.32; Thu, 15 Nov 2018 21:41:33 -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 S2389176AbeKPPwY (ORCPT + 32 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(-) -- 2.7.4 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; } /*