From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E2AF37757C; Thu, 16 Jul 2026 18:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784225406; cv=none; b=pmnazw5XLPhDkHPdm03QbOv+MnNumBdMS1AljkjZU5054l9R201qR9nxmKy0MiiXyDiQ3DQaApxXgjiL29ik2uYHym5BsKVTT5OLj8DwveDZ6mfhIbDs3s7ZhQOIOLricb2lVJV5xJ5xmbsakzCbribsvPRuHKmhrIRhKwnLe/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784225406; c=relaxed/simple; bh=Okw3RFWG7FVuL2+E+b2U06t94SSVvQwqXkAr8OEAKqU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P1EagimPM6CzLCY5+itgOzR+JGGoi0+LgfsrjCfoqtpjdzxlcAskXpY6njSPJ86yxqJ2+T/pviv0avU80WmLiQ0O2+GjokumBKO1RkH5WuS1xOd3iQJPGWVThiRbcCIXTCz9adf0jnNvLA+5VNnFSdz49ny5e2e1XYaMc/PL5GE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MfAptoUT; arc=none smtp.client-ip=192.198.163.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MfAptoUT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784225402; x=1815761402; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Okw3RFWG7FVuL2+E+b2U06t94SSVvQwqXkAr8OEAKqU=; b=MfAptoUTSs0LPWuz6zJ0u/JqPIGX7j5U3TDEdLcgVr1Rc9ND4GMNrEYD An6NrdRDokB52JD3VechGHgOHfbYtgIQbBr8QRxfOhUxL0RO1xapBJn22 DmRwtVIp+deWRp6wKKbrn2AK6SkthiFSAd9+4rNzyEeSnBkN031avsH1m dc7MRPgMzRrtcGQq/EFvZ7JmL29QxzvAL6gR5mE5gXAV5QglINC63XcIU hWd9gVFfV1hBS+0hCos6LzlNusqjwbHYScWZ+Kc9qhzGI37WZ3fUbnaNE j5xPWvM/trhtn3abpnMrnB3GTYT3MGGwffrS9HqlcTJP1CbjFCer9Zt4h Q==; X-CSE-ConnectionGUID: wuIu2t3KRNqtX5N7O8oprg== X-CSE-MsgGUID: rGrvwyj5SJe8SQCtX+yaOg== X-IronPort-AV: E=McAfee;i="6800,10657,11848"; a="72428724" X-IronPort-AV: E=Sophos;i="6.25,167,1779174000"; d="scan'208";a="72428724" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2026 11:09:57 -0700 X-CSE-ConnectionGUID: QdmQqkseSuO0mjX2xbzbJA== X-CSE-MsgGUID: f2U++eSsRAqSyMQQF+RlRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,167,1779174000"; d="scan'208";a="286635995" Received: from conormcd-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.245.26]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2026 11:09:48 -0700 Date: Thu, 16 Jul 2026 21:09:45 +0300 From: Andy Shevchenko To: Link Mauve Cc: Srinivas Kandagatla , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Sven Peter , Janne Grunau , Neal Gompa , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Vladimir Zapolskiy , =?iso-8859-1?Q?Andr=E9?= Draszik , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , Kalyani Akula , Michal Simek , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?iso-8859-1?Q?=D6zkan?= , Johan Hovold , Ronald Claveau , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, imx@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, rust-for-linux@vger.kernel.org Subject: Re: [PATCH v3 0/4] nvmem: fix a const-unsoundness in reg_write Message-ID: References: <20260716142415.28718-1-linkmauve@linkmauve.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260716142415.28718-1-linkmauve@linkmauve.fr> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Thu, Jul 16, 2026 at 04:24:07PM +0200, Link Mauve wrote: > This callback used to take a mutable void * for no reason, which causes > the compiler to be unaware that the val buffer should never be modified > by the callback. > > This was found while drafting the nvmem-provider Rust abstraction. > > Thanks to the guidance of Andy Shevchenko, this now introduces a new > callback and deprecates the existing one, with the goal of renaming the > new one into the old one once no user remains in the kernel. ... > - Actually test with COMPILE_TEST, which I forgot to enable before… Hint, you may use folder as a target in `make`. To avoid this just run make ... allyesconfig drivers/nvmem/ (In the similar way for any other folder and its subfolders.) -- With Best Regards, Andy Shevchenko