mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:42:44 +00:00 
			
		
		
		
	Kernel: Fix all compiler warnings.
This commit is contained in:
		
							parent
							
								
									17acc1e0a8
								
							
						
					
					
						commit
						46a06c23e3
					
				
					 13 changed files with 19 additions and 19 deletions
				
			
		|  | @ -139,8 +139,9 @@ ByteBuffer DiskBackedFS::read_blocks(unsigned index, unsigned count) const | |||
|     return blocks; | ||||
| } | ||||
| 
 | ||||
| void DiskBackedFS::set_block_size(unsigned block_size) | ||||
| void DiskBackedFS::set_block_size(int block_size) | ||||
| { | ||||
|     ASSERT(block_size > 0); | ||||
|     if (block_size == m_block_size) | ||||
|         return; | ||||
|     m_block_size = block_size; | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ public: | |||
| protected: | ||||
|     explicit DiskBackedFS(NonnullRefPtr<DiskDevice>&&); | ||||
| 
 | ||||
|     void set_block_size(unsigned); | ||||
|     void set_block_size(int); | ||||
| 
 | ||||
|     ByteBuffer read_block(unsigned index) const; | ||||
|     ByteBuffer read_blocks(unsigned index, unsigned count) const; | ||||
|  |  | |||
|  | @ -294,7 +294,7 @@ ByteBuffer procfs$pid_vmo(InodeIdentifier identifier) | |||
|             region->vmo().name().characters(), | ||||
|             ®ion->vmo(), | ||||
|             region->vmo().ref_count()); | ||||
|         for (size_t i = 0; i < region->vmo().page_count(); ++i) { | ||||
|         for (int i = 0; i < region->vmo().page_count(); ++i) { | ||||
|             auto& physical_page = region->vmo().physical_pages()[i]; | ||||
|             builder.appendf("P%x%s(%u) ", | ||||
|                 physical_page ? physical_page->paddr().get() : 0, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling