mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	Commit e26fa54604 ("rust: kbuild: auto generate helper exports")
removed the need for these by automatically generating the exports; it
removed the explicit uses of `EXPORT_SYMBOL_GPL` but didn't remove the
`#include <linux/export.h>`s.
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20241009162553.27845-2-tamird@gmail.com
[ Reworded title. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
		
	
			
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			313 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			313 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0
 | 
						|
 | 
						|
#include <linux/refcount.h>
 | 
						|
 | 
						|
refcount_t rust_helper_REFCOUNT_INIT(int n)
 | 
						|
{
 | 
						|
	return (refcount_t)REFCOUNT_INIT(n);
 | 
						|
}
 | 
						|
 | 
						|
void rust_helper_refcount_inc(refcount_t *r)
 | 
						|
{
 | 
						|
	refcount_inc(r);
 | 
						|
}
 | 
						|
 | 
						|
bool rust_helper_refcount_dec_and_test(refcount_t *r)
 | 
						|
{
 | 
						|
	return refcount_dec_and_test(r);
 | 
						|
}
 |