mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	kstrtox: fix compile warnings in test
Fix the following warnings:
    CC [M]  lib/test-kstrtox.o
  lib/test-kstrtox.c: In function 'test_kstrtou64_ok':
  lib/test-kstrtox.c:318: warning: this decimal constant is unsigned only in ISO C90
	...
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
			
			
This commit is contained in:
		
							parent
							
								
									592ce31639
								
							
						
					
					
						commit
						01eda2e0c0
					
				
					 1 changed files with 16 additions and 16 deletions
				
			
		| 
						 | 
					@ -315,12 +315,12 @@ static void __init test_kstrtou64_ok(void)
 | 
				
			||||||
		{"65537",	10,	65537},
 | 
							{"65537",	10,	65537},
 | 
				
			||||||
		{"2147483646",	10,	2147483646},
 | 
							{"2147483646",	10,	2147483646},
 | 
				
			||||||
		{"2147483647",	10,	2147483647},
 | 
							{"2147483647",	10,	2147483647},
 | 
				
			||||||
		{"2147483648",	10,	2147483648},
 | 
							{"2147483648",	10,	2147483648ULL},
 | 
				
			||||||
		{"2147483649",	10,	2147483649},
 | 
							{"2147483649",	10,	2147483649ULL},
 | 
				
			||||||
		{"4294967294",	10,	4294967294},
 | 
							{"4294967294",	10,	4294967294ULL},
 | 
				
			||||||
		{"4294967295",	10,	4294967295},
 | 
							{"4294967295",	10,	4294967295ULL},
 | 
				
			||||||
		{"4294967296",	10,	4294967296},
 | 
							{"4294967296",	10,	4294967296ULL},
 | 
				
			||||||
		{"4294967297",	10,	4294967297},
 | 
							{"4294967297",	10,	4294967297ULL},
 | 
				
			||||||
		{"9223372036854775806",	10,	9223372036854775806ULL},
 | 
							{"9223372036854775806",	10,	9223372036854775806ULL},
 | 
				
			||||||
		{"9223372036854775807",	10,	9223372036854775807ULL},
 | 
							{"9223372036854775807",	10,	9223372036854775807ULL},
 | 
				
			||||||
		{"9223372036854775808",	10,	9223372036854775808ULL},
 | 
							{"9223372036854775808",	10,	9223372036854775808ULL},
 | 
				
			||||||
| 
						 | 
					@ -369,12 +369,12 @@ static void __init test_kstrtos64_ok(void)
 | 
				
			||||||
		{"65537",	10,	65537},
 | 
							{"65537",	10,	65537},
 | 
				
			||||||
		{"2147483646",	10,	2147483646},
 | 
							{"2147483646",	10,	2147483646},
 | 
				
			||||||
		{"2147483647",	10,	2147483647},
 | 
							{"2147483647",	10,	2147483647},
 | 
				
			||||||
		{"2147483648",	10,	2147483648},
 | 
							{"2147483648",	10,	2147483648LL},
 | 
				
			||||||
		{"2147483649",	10,	2147483649},
 | 
							{"2147483649",	10,	2147483649LL},
 | 
				
			||||||
		{"4294967294",	10,	4294967294},
 | 
							{"4294967294",	10,	4294967294LL},
 | 
				
			||||||
		{"4294967295",	10,	4294967295},
 | 
							{"4294967295",	10,	4294967295LL},
 | 
				
			||||||
		{"4294967296",	10,	4294967296},
 | 
							{"4294967296",	10,	4294967296LL},
 | 
				
			||||||
		{"4294967297",	10,	4294967297},
 | 
							{"4294967297",	10,	4294967297LL},
 | 
				
			||||||
		{"9223372036854775806",	10,	9223372036854775806LL},
 | 
							{"9223372036854775806",	10,	9223372036854775806LL},
 | 
				
			||||||
		{"9223372036854775807",	10,	9223372036854775807LL},
 | 
							{"9223372036854775807",	10,	9223372036854775807LL},
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
| 
						 | 
					@ -418,10 +418,10 @@ static void __init test_kstrtou32_ok(void)
 | 
				
			||||||
		{"65537",	10,	65537},
 | 
							{"65537",	10,	65537},
 | 
				
			||||||
		{"2147483646",	10,	2147483646},
 | 
							{"2147483646",	10,	2147483646},
 | 
				
			||||||
		{"2147483647",	10,	2147483647},
 | 
							{"2147483647",	10,	2147483647},
 | 
				
			||||||
		{"2147483648",	10,	2147483648},
 | 
							{"2147483648",	10,	2147483648U},
 | 
				
			||||||
		{"2147483649",	10,	2147483649},
 | 
							{"2147483649",	10,	2147483649U},
 | 
				
			||||||
		{"4294967294",	10,	4294967294},
 | 
							{"4294967294",	10,	4294967294U},
 | 
				
			||||||
		{"4294967295",	10,	4294967295},
 | 
							{"4294967295",	10,	4294967295U},
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
	TEST_OK(kstrtou32, u32, "%u", test_u32_ok);
 | 
						TEST_OK(kstrtou32, u32, "%u", test_u32_ok);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue