hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/lib/cmdline.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/lib/cmdline.c
34 * Helper functions generally used for parsing kernel command line
....@@ -5,11 +6,7 @@
56 *
67 * Code and copyrights come from init/main.c and arch/i386/kernel/setup.c.
78 *
8
- * This source code is licensed under the GNU General Public License,
9
- * Version 2. See the file COPYING for more details.
10
- *
119 * GNU Indent formatting options for this file: -kr -i8 -npsl -pcs
12
- *
1310 */
1411
1512 #include <linux/export.h>
....@@ -135,18 +132,23 @@
135132 case 'E':
136133 case 'e':
137134 ret <<= 10;
135
+ /* fall through */
138136 case 'P':
139137 case 'p':
140138 ret <<= 10;
139
+ /* fall through */
141140 case 'T':
142141 case 't':
143142 ret <<= 10;
143
+ /* fall through */
144144 case 'G':
145145 case 'g':
146146 ret <<= 10;
147
+ /* fall through */
147148 case 'M':
148149 case 'm':
149150 ret <<= 10;
151
+ /* fall through */
150152 case 'K':
151153 case 'k':
152154 ret <<= 10;