forked from mirrors/linux
		
	libbpf: checkpatch: Fixed code alignments in ringbuf.c
Fixed some checkpatch issues in ringbuf.c Signed-off-by: Kang Minchul <tegongkang@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/bpf/20221113190648.38556-4-tegongkang@gmail.com
This commit is contained in:
		
							parent
							
								
									e3ba8e4e8c
								
							
						
					
					
						commit
						b486d19a0a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -128,7 +128,7 @@ int ring_buffer__add(struct ring_buffer *rb, int map_fd, | ||||||
| 	/* Map read-only producer page and data pages. We map twice as big
 | 	/* Map read-only producer page and data pages. We map twice as big
 | ||||||
| 	 * data size to allow simple reading of samples that wrap around the | 	 * data size to allow simple reading of samples that wrap around the | ||||||
| 	 * end of a ring buffer. See kernel implementation for details. | 	 * end of a ring buffer. See kernel implementation for details. | ||||||
| 	 * */ | 	 */ | ||||||
| 	tmp = mmap(NULL, rb->page_size + 2 * info.max_entries, PROT_READ, | 	tmp = mmap(NULL, rb->page_size + 2 * info.max_entries, PROT_READ, | ||||||
| 		   MAP_SHARED, map_fd, rb->page_size); | 		   MAP_SHARED, map_fd, rb->page_size); | ||||||
| 	if (tmp == MAP_FAILED) { | 	if (tmp == MAP_FAILED) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Kang Minchul
						Kang Minchul