From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D8D79A926 for ; Thu, 22 Aug 2024 08:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724315711; cv=none; b=A9chvPzmx8WtEHEsJDxpjWNqE7NXpDNi5hahjIEzVXcrSRwRPXvJCqcr27wAAN37ohuJK+cUsAFAhrIVD20fdvChRiKK1A/G25/VEyJrRwrCvd+4hARbI1lqIfkP1VpQ433v4MN8BiOLFhTI0VJYzApsERPuNxiyA+LZGfR7Sbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724315711; c=relaxed/simple; bh=cjl36kzHBjuOryBg4s5q+PNjoIbXlnacYInWNBE0d5k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nT1lv5yNp/8qT78wnAs1Onuv4/1KqWcm9dWRJTWtw4XVT7FDeT7vllW8S7ucZCU+GddqLvNbM60PmwBz+1EkMZwEnP/Av499sadp9xMb2sQJee9zgrsv3wXiqaG4/va3tOXtYikxcY6TzlNS8IXmPFsbcRzjpsMozrF2jbXNXcY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9597FC4AF09; Thu, 22 Aug 2024 08:35:10 +0000 (UTC) Date: Thu, 22 Aug 2024 09:35:08 +0100 From: Catalin Marinas To: Uros Bizjak Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH v2 1/2] err.h: Add ERR_PTR_PCPU(), PTR_ERR_PCPU() and IS_ERR_PCPU() macros Message-ID: References: <20240818210235.33481-1-ubizjak@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240818210235.33481-1-ubizjak@gmail.com> On Sun, Aug 18, 2024 at 11:01:51PM +0200, Uros Bizjak wrote: > Add ERR_PTR_PCPU(), PTR_ERR_PCPU() and IS_ERR_PCPU() macros that > operate on pointers in the percpu address space. > > These macros remove the need for (__force void *) function > argument casts (to avoid sparse -Wcast-from-as warnings). > > The patch will also avoid future build errors due to pointer address > space mismatch with enabled strict percpu address space checks. > > Signed-off-by: Uros Bizjak > Cc: Catalin Marinas > Cc: Andrew Morton Acked-by: Catalin Marinas