hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/block/partitions/ldm.h
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /**
23 * ldm - Part of the Linux-NTFS project.
34 *
....@@ -6,21 +7,6 @@
67 * Copyright (C) 2001,2002 Jakob Kemi <jakob.kemi@telia.com>
78 *
89 * Documentation is available at http://www.linux-ntfs.org/doku.php?id=downloads
9
- *
10
- * This program is free software; you can redistribute it and/or modify it
11
- * under the terms of the GNU General Public License as published by the Free
12
- * Software Foundation; either version 2 of the License, or (at your option)
13
- * any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program (in the main directory of the Linux-NTFS source
22
- * in the file COPYING); if not, write to the Free Software Foundation,
23
- * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2410 */
2511
2612 #ifndef _FS_PT_LDM_H_
....@@ -98,16 +84,13 @@
9884 #define TOC_BITMAP1 "config" /* Names of the two defined */
9985 #define TOC_BITMAP2 "log" /* bitmaps in the TOCBLOCK. */
10086
101
-/* Borrowed from msdos.c */
102
-#define SYS_IND(p) (get_unaligned(&(p)->sys_ind))
103
-
10487 struct frag { /* VBLK Fragment handling */
10588 struct list_head list;
10689 u32 group;
10790 u8 num; /* Total number of records */
10891 u8 rec; /* This is record number n */
10992 u8 map; /* Which portions are in use */
110
- u8 data[0];
93
+ u8 data[];
11194 };
11295
11396 /* In memory LDM database structures. */
....@@ -206,8 +189,6 @@
206189 struct list_head v_comp;
207190 struct list_head v_part;
208191 };
209
-
210
-int ldm_partition(struct parsed_partitions *state);
211192
212193 #endif /* _FS_PT_LDM_H_ */
213194