hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/nvdimm/label.h
....@@ -1,14 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of version 2 of the GNU General Public License as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful, but
9
- * WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
- * General Public License for more details.
124 */
135 #ifndef __LABEL_H__
146 #define __LABEL_H__
....@@ -70,7 +62,7 @@
7062 __le16 major;
7163 __le16 minor;
7264 __le64 checksum;
73
- u8 free[0];
65
+ u8 free[];
7466 };
7567
7668 /**
....@@ -136,9 +128,7 @@
136128 }
137129
138130 struct nvdimm_drvdata;
139
-int nd_label_validate(struct nvdimm_drvdata *ndd);
140
-void nd_label_copy(struct nvdimm_drvdata *ndd, struct nd_namespace_index *dst,
141
- struct nd_namespace_index *src);
131
+int nd_label_data_init(struct nvdimm_drvdata *ndd);
142132 size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd);
143133 int nd_label_active_count(struct nvdimm_drvdata *ndd);
144134 struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n);