mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	nvmem: remove inline in drivers/nvmem/core.c
These two functions are defined in .c file, but called just once (at least for now). So, the compiler will fold them into their callers even without the "inline" markers. However, this kind of optimization should not be done by hand. It is compiler's judge after all. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
		
							parent
							
								
									2bd6bf03f4
								
							
						
					
					
						commit
						f7c04f16d7
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -945,8 +945,7 @@ void nvmem_cell_put(struct nvmem_cell *cell)
 | 
			
		|||
}
 | 
			
		||||
EXPORT_SYMBOL_GPL(nvmem_cell_put);
 | 
			
		||||
 | 
			
		||||
static inline void nvmem_shift_read_buffer_in_place(struct nvmem_cell *cell,
 | 
			
		||||
						    void *buf)
 | 
			
		||||
static void nvmem_shift_read_buffer_in_place(struct nvmem_cell *cell, void *buf)
 | 
			
		||||
{
 | 
			
		||||
	u8 *p, *b;
 | 
			
		||||
	int i, bit_offset = cell->bit_offset;
 | 
			
		||||
| 
						 | 
				
			
			@ -1027,7 +1026,7 @@ void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len)
 | 
			
		|||
}
 | 
			
		||||
EXPORT_SYMBOL_GPL(nvmem_cell_read);
 | 
			
		||||
 | 
			
		||||
static inline void *nvmem_cell_prepare_write_buffer(struct nvmem_cell *cell,
 | 
			
		||||
static void *nvmem_cell_prepare_write_buffer(struct nvmem_cell *cell,
 | 
			
		||||
					     u8 *_buf, int len)
 | 
			
		||||
{
 | 
			
		||||
	struct nvmem_device *nvmem = cell->nvmem;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue