page_shift, phys_erase_shift, bbt_erase_shift, chip_shift, pagemask, subpagesize and badblockbits are all positive values, so declare them as unsigned.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -1110,11 +1110,11 @@ struct nand_chip { · 1109 unmodified lines | |||
| 1110 | unsigned int options; | 1110 | unsigned int options; |
| 1111 | unsigned int bbt_options; | 1111 | unsigned int bbt_options; |
| 1112 | 1112 | ||
| 1113 | int page_shift; | 1113 | unsigned int page_shift; |
| 1114 | int phys_erase_shift; | 1114 | unsigned int phys_erase_shift; |
| 1115 | int bbt_erase_shift; | 1115 | unsigned int bbt_erase_shift; |
| 1116 | int chip_shift; | 1116 | unsigned int chip_shift; |
| 1117 | int pagemask; | 1117 | unsigned int pagemask; |
| 1118 | u8 *data_buf; | 1118 | u8 *data_buf; |
| 1119 | 1119 | ||
| 1120 | struct { | 1120 | struct { |
| @@ -1122,10 +1122,10 @@ struct nand_chip { · 1 unmodified line | |||
| 1122 | int page; | 1122 | int page; |
| 1123 | } pagecache; | 1123 | } pagecache; |
| 1124 | 1124 | ||
| 1125 | int subpagesize; | 1125 | unsigned int subpagesize; |
| 1126 | int onfi_timing_mode_default; | 1126 | int onfi_timing_mode_default; |
| 1127 | unsigned int badblockpos; | 1127 | unsigned int badblockpos; |
| 1128 | int badblockbits; | 1128 | unsigned int badblockbits; |
| 1129 | 1129 | ||
| 1130 | struct nand_id id; | 1130 | struct nand_id id; |
| 1131 | struct nand_parameters parameters; | 1131 | struct nand_parameters parameters; |