From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF596CA1013 for ; Sat, 6 Sep 2025 00:13:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:Message-ID: In-Reply-To:Subject:cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cdKhtr/YLlAVlOkiWf+WoEOYEyssP9c1rcti1jm55YI=; b=sKFyGJGWJhm6jY waTbzG4TThF0ajh26MKMScivHfgjekn0EJQRPoEyQhBTF/hI6lyn2hq0b1r1LvONklqenV1d+HmfT K3cwhrbQ4EhYSXe9jYq6gfi1aWdeeIyt5/RoUsmmMu/M5KbGhBc3Aco5+/CnS6w11cUJhkot4S6XC Vg6zYDQPSo6RhKxbF6xAdtufRTCviUh3xp1FA99Bw59cNBKKpL/NeGqkmGPU7enJ7y9ZNdMCEREQQ IypZDvv0j8rsH6OjloQpzskdhWfEtxk60oJJNAZIIZ+pvmnALklm/LFISBoEbV9EulhWlm0et2SjI IkKo+LLr2OVqemUkhfpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uugYs-00000005Xda-0yds; Sat, 06 Sep 2025 00:13:46 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uuehk-00000004x3M-01Ur for linux-riscv@lists.infradead.org; Fri, 05 Sep 2025 22:14:48 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 1D95F601AA; Fri, 5 Sep 2025 22:14:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 146D1C4CEF1; Fri, 5 Sep 2025 22:14:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757110486; bh=M8ULZVGdfoNPKCkr0YbSFZ0232ZRMETp/w0mUxyeEAs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=qQ3boSeueIpigl6fa71DchJ8VGIKdVFH7+Ui0CWxTf09/nhVmUNSdynhEB9CrTzHG DFEXWcftn82m/wOnPll9xdA1Bf/LGMyVV/o+1pnykAvQyLMcTcgJktBVyhBouhSURZ NyvULPeD9EdxyWfBMmWZuwmtILXvi1rEpzVqyawFV56uFMGxWBVnbi0FUuKqCL4Q3/ r24sH5pzDdmxAcvmTVur/nKBw6BMjusU7FP1x0q7aiXnBuXfCS3dM/o0nxISo+6Qkv REUR9oQjjHu7txtnkMiKFtQWD8YM4lgyltKBIH8cTy1UfynvSzcovfV3pjHZYns1bn YhWTLpf3RFSRQ== Date: Fri, 5 Sep 2025 16:14:43 -0600 (MDT) From: Paul Walmsley To: Alexandre Ghiti cc: kernel test robot , Al Viro , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Cyril Bur , Jisheng Zhang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] riscv: Fix sparse warning in __get_user_error() In-Reply-To: <20250903-dev-alex-sparse_warnings_v1-v1-1-7e6350beb700@rivosinc.com> Message-ID: <6bc6fe97-b9e6-03ca-91e9-e61fcd51f3b9@kernel.org> References: <20250903-dev-alex-sparse_warnings_v1-v1-0-7e6350beb700@rivosinc.com> <20250903-dev-alex-sparse_warnings_v1-v1-1-7e6350beb700@rivosinc.com> MIME-Version: 1.0 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, 3 Sep 2025, Alexandre Ghiti wrote: > We used to assign 0 to x without an appropriate cast which results in > sparse complaining when x is a pointer: > > >> block/ioctl.c:72:39: sparse: sparse: Using plain integer as NULL pointer > > So fix this by casting 0 to the correct type of x. Thanks, queued for v6.17-rc fixes. - Paul _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv