Received: by 10.223.164.202 with SMTP id h10csp673947wrb; Wed, 22 Nov 2017 13:30:18 -0800 (PST) X-Google-Smtp-Source: AGs4zMZYpqiVsRjO+Mqr4dTS8cwd+3jxiFZjZKRsolpLcVYl8o7dlMRJWF4sV+NOOZbFuIZIKKQZ X-Received: by 10.159.253.139 with SMTP id q11mr22317921pls.267.1511386218745; Wed, 22 Nov 2017 13:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511386218; cv=none; d=google.com; s=arc-20160816; b=ePuQs6x7NNj5UsqNcNqcgh1L1VBkcj4+f05iGnpfLcjS1ZgnG8K6LmKup4+AlQWjlv LGK/tSaSSSBmTgHRKxqiTLHd3NZI409nBHxJZ6F32Uc/td2hzz596a9VMzKCq+A+5OMG MGhwIsdF+HmNBIl5gJ50tIfWYGUMT6qU7rcvY+F5W1xVvh5SvLPMtScMm/ZutZ4yXEHA 3qFYcMsTARDdq/EpU4fieBNH662XqNPwTT/iwRFrJpZsm2q5OHUB6hStYAtdhJafZa6S oWyTNCEGoE1F4fbXBHu5PKJnZdhxGr/1qZDDUeoJuINtMkNZDsAl0i4Ws3XriPCBxfIl 7Utw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=bg3WB8Oy4xwZU/h35Mylwer7maNsikq1gDP3BYjp2uI=; b=SwqLiiZDLTn7bgucBBDpVQQwrBQpdeBTdtXiw0w+wflyQA5yCPIMF4Vnr6JVJrPA4B k9eoucVMI1MmeZkRJvTm0ccdLA9wCvdNkCnITu2Ve5M53fxZytb/SpJvFM1ZG36J4/7W lopm0BhCvHeCDnaHU1RL0FuHC99SdfCz3hFeShB+Rsf1naGL+IrMLwLzN62TN2HjdfzE wISl3emcQRwM21pfTJ5lZHX5WyUDKocrapSO5ZGmXzplrEO/IZVTk5aPuhW0ojw2Oj2m tm2Lpgv2VW4aph1mpW1p0sEoO0qh0Llr3h7buF1MC3VmbQeFf+oHyhFPdns42vLDUEQd VVww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZRpj66P/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si6207087pgn.690.2017.11.22.13.30.07; Wed, 22 Nov 2017 13:30:18 -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=@gmail.com header.s=20161025 header.b=ZRpj66P/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752144AbdKVV3b (ORCPT + 77 others); Wed, 22 Nov 2017 16:29:31 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:38195 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752544AbdKVV2w (ORCPT ); Wed, 22 Nov 2017 16:28:52 -0500 Received: by mail-wm0-f66.google.com with SMTP id 128so12870409wmo.3; Wed, 22 Nov 2017 13:28:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=bg3WB8Oy4xwZU/h35Mylwer7maNsikq1gDP3BYjp2uI=; b=ZRpj66P/DQ1T5mAe4+rFrV73OSuwKdaS2p3/w37tyIWOJv3nVGrHokkH/zCRc8FZwd dprcXTbn5a8jIJRykyMed5+Oez0MeM5qqClBlKriaH+tHpPS5QrKkNRLeiaO2+tZ1us8 B6jOQTpnFzdNnfrpfaKfbpVqONunm5zBYQZe13SzyKT6dELiM1LT5ihskaCSUytlj+tq 5DlUowwLQ3DbhzQKcRGu130mvtBKeLm/xjIsC7T1fqDHtf04238iESkH3NVF1E01odrU kkxQVpAFmkl0Q7MigvgwgDfuwiHxxjN/OZiefAbi4o6jO7Y90mWTIp7bn9yIKLnc9Se8 oIcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bg3WB8Oy4xwZU/h35Mylwer7maNsikq1gDP3BYjp2uI=; b=IDH2P3M49hOdrVEF8BF1kWhsNyHNKAA7mfkHO0ZIVlumdRIzwMC2BJ6ST9/8lzq6Jl PtG2CEtS4r/B0UYJOcRnGev7ZqxGQH50cY3qTCazBNI4CoDJ2+BYkVhH/cdEmHb9xlyM 1hi3nfDtcAFVv75xOcLvMAOuyHomN1TB2irr1VWQzPBPXBUCYoKmoDMPj/t/WjeTef7X HYN4M/61V2pZaIhSi3geZ/QgFobEVjFzfhWra2jpCnzKt+F6+4az9BGpjhDKuCDGl6bn xvWYC3Kjxr8csfGkec74tubsnrbFIHHD8rZ3AlvqTtkwUYmHy9fxBd31oB9oKQYt8I9y xqXg== X-Gm-Message-State: AJaThX5jRkTv9ViKIeISHe//nd0Fd43BBe2v8Mi/sYGwGqXiC7chK+HL XG6L+ptNPg13m/st6mQ0ciU= X-Received: by 10.80.175.66 with SMTP id g60mr32135475edd.283.1511386130955; Wed, 22 Nov 2017 13:28:50 -0800 (PST) Received: from ltop.local ([2a02:a03f:404f:5300:40cc:a6c1:5928:f454]) by smtp.gmail.com with ESMTPSA id h2sm12345747edc.89.2017.11.22.13.28.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 13:28:50 -0800 (PST) Date: Wed, 22 Nov 2017 22:28:48 +0100 From: Luc Van Oostenryck To: Matthew Wilcox Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Matthew Wilcox Subject: Re: [PATCH 05/62] radix tree: Add a missing cast to gfp_t Message-ID: <20171122212847.axib6ito23sldlbe@ltop.local> References: <20171122210739.29916-1-willy@infradead.org> <20171122210739.29916-6-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171122210739.29916-6-willy@infradead.org> User-Agent: NeoMutt/20171027 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 22, 2017 at 01:06:42PM -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > sparse complains about an invalid type assignment. > > Signed-off-by: Matthew Wilcox > --- > lib/radix-tree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/radix-tree.c b/lib/radix-tree.c > index c8d55565fafa..f00303e0b216 100644 > --- a/lib/radix-tree.c > +++ b/lib/radix-tree.c > @@ -178,7 +178,7 @@ static inline void root_tag_clear(struct radix_tree_root *root, unsigned tag) > > static inline void root_tag_clear_all(struct radix_tree_root *root) > { > - root->gfp_mask &= (1 << ROOT_TAG_SHIFT) - 1; > + root->gfp_mask &= (__force gfp_t)((1 << ROOT_TAG_SHIFT) - 1); > } > > static inline int root_tag_get(const struct radix_tree_root *root, unsigned tag) > -- IMO, it would be better to define something for that in radix-tree.h, like it has been done for ROOT_IS_IDR. Regards, -- Luc From 1584832474353052561@xxx Thu Nov 23 05:13:46 +0000 2017 X-GM-THRID: 1584717880005758635 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread