Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2931061ybf; Mon, 2 Mar 2020 19:00:30 -0800 (PST) X-Google-Smtp-Source: ADFU+vs2gV2cJ8+rZJmBvlck4yCJPW9HEZOOQ8oBvrlSnaOF6BRHGQeOTGEbRnMXm7xUsjOI21mG X-Received: by 2002:a05:6808:b22:: with SMTP id t2mr1069802oij.40.1583204429934; Mon, 02 Mar 2020 19:00:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583204429; cv=none; d=google.com; s=arc-20160816; b=ViAF0M74G7l+I9rkjnBCwlKCctahV/oHzpEw+zL0hjQM+DQZ0XlWJTE2C/Lggseqkl wVgjtf+1Uqgh8i6G4yI+Pfw7bbGIVMY0Fmpm3k6XmpLae5Lw3GR/bWbofpyY61W08n/m mDj56xPmGNa8JKmZTEzJBkJ/oPx0NJH1L0A5ujrzeT/FpdXZH+zRQSG3xoOURYxdXaZp Iu69KqjNLzvqNMjuDF3NddkfouTC0SG7FygSnqBwyno7SNx/HirUXz0y/V197ASY9dpL 9WEgNxSOSLntiDicT7Ziu3AWWkd01gy+vpx8Q62uunEkmNtMXtQyy7o0NxYv44NvhSSu J9fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=TKO0L3z/J7Uevo3j6Cjbfw67QzjwRhKOacKqgs2izaw=; b=R1A09A8Q0yYuzh+Ep55NzO6JTALlj+rYStMq4axTPXACRVsmCCzjaqilriBMtNZUBN IXCsWCf9EslG20izt+SrvfMV4MLel2TbOr9XKeR5KQ4O5fHVVwUb7zi1tYGQrxRfm3EX kKTVvJ87G/07RfLMC6/aEeAs16z895OEkdsS4WAHlwR6QDR9aO+FhtqwtHmx5QDJrh6d 4Ob6TTWGz1Fp7pFJiU87eqUlZ5OeFjUbYZmSl93PmWzitQMFShNWpdP3T2FW8/mD82mk ueKhEc/QxDPMId2TMDKV3o5cF24qLj9/fMiu4sbufQg5B5ePWiltcpTyhPqM/mv7BOME lDgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=ogqzViFe; 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 n15si7706917otr.262.2020.03.02.19.00.18; Mon, 02 Mar 2020 19:00:29 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=ogqzViFe; 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 S1728485AbgCCC7S (ORCPT + 99 others); Mon, 2 Mar 2020 21:59:18 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:37555 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728550AbgCCC7L (ORCPT ); Mon, 2 Mar 2020 21:59:11 -0500 Received: by mail-pf1-f195.google.com with SMTP id p14so705146pfn.4 for ; Mon, 02 Mar 2020 18:59:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TKO0L3z/J7Uevo3j6Cjbfw67QzjwRhKOacKqgs2izaw=; b=ogqzViFeXGao56AivP/vc0QdZ44N/zp3LPAu9t7auJ6D5w4BYt32BdcsGMVwKMJMLX V17HhvkBFQuG/pXjAeSdKXMWBIETLu5a09qRe6As23S2FzKG8qNZn7G649/7kIe3bLZI rvSZ5EvCIjyaeqwp71KKRZAe+yN/wPQNTbgyxc+SvzIuGf1KyC5SJpWDuNtq+1EdkgR4 ArbPJcGMikx2+KnUS5KbPa361UGsUE+oCIpKZ/c2JbYcp4vWUnfG/AJk1yT3ArzQFxZR k/5X/Uq/EHXpgB3JoiIVdklAEamobQMFUfx4YwjR7hf5rq+HPAXBqQ/K2ZcORZ6n+waK ZMOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TKO0L3z/J7Uevo3j6Cjbfw67QzjwRhKOacKqgs2izaw=; b=rR/76ErrKHdgh4lKJcFQtgsI2cdGHl1w8yYDeZ6lNEoiFov2LPbQpPCAFFkGgql1fG 61xBYiPMNvzS9tNoCN3CM+Rtd2wj4mxhS0NdKmppZW/63jloHbM/EESM8f62yEqEQJa2 AT8+tRb/3+vELWvzs9CkeeJdxPjZvDO68AFlOh1iTreOnlJZoiFur/ul6qAWBiHl2Ppr uUbAR6DmCmcqkXFuxsDpwkb8cupxylu/M+p1cxbX2PAvc70lfwKX/T8yAc8Vy55F949q E713XvbGKzmQGVwEAwoFFzUUALd4RffZYRKfOpSYMhKpDaePu2N+3eTqOaLaHVfMzDLp 5xnw== X-Gm-Message-State: ANhLgQ14pqs11AlpX5HrqbNYXmngjqeaXMKSAu2xOaILpG6tTdw4ikdk +uDe+VgWagNqmQRI5Vpba1f/CHz4qgI= X-Received: by 2002:aa7:82ce:: with SMTP id f14mr2028100pfn.167.1583204349805; Mon, 02 Mar 2020 18:59:09 -0800 (PST) Received: from [192.168.1.188] ([66.219.217.145]) by smtp.gmail.com with ESMTPSA id w76sm3982670pfc.154.2020.03.02.18.59.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Mar 2020 18:59:09 -0800 (PST) Subject: Re: linux-next: build warnings after merge of the block tree To: Stephen Rothwell Cc: Linux Next Mailing List , Linux Kernel Mailing List References: <20200303124133.13309249@canb.auug.org.au> From: Jens Axboe Message-ID: Date: Mon, 2 Mar 2020 19:59:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200303124133.13309249@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/2/20 6:41 PM, Stephen Rothwell wrote: > Hi all, > > After merging the block tree, today's linux-next build (arm > multi_v7_defconfig) produced these warnings: > > fs/io_uring.c: In function 'io_put_kbuf': > fs/io_uring.c:1651:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] > 1651 | struct io_buffer *kbuf = (struct io_buffer *) req->rw.addr; > | ^ > fs/io_uring.c: In function 'io_rw_buffer_select': > fs/io_uring.c:2209:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] > 2209 | struct io_buffer *kbuf = (struct io_buffer *) req->rw.addr; > | ^ > fs/io_uring.c:2216:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] > 2216 | req->rw.addr = (u64) kbuf; > | ^ > fs/io_uring.c: In function 'io_cleanup_req': > fs/io_uring.c:4897:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] > 4897 | kfree((void *)req->rw.addr); > | ^ > > Introduced by commits > > 7efcbb97deab ("io_uring: support buffer selection for OP_READ and OP_RECV") > 8cab19f460b6 ("io_uring: add IOSQE_BUFFER_SELECT support for IORING_OP_READV") Thanks Stephen, I added a fixup patch. I wish we had u64_to_ptr() and ptr_to_u64(), but that's only for the __user pointers... -- Jens Axboe