| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | #ifndef __LABEL_H__ |
|---|
| 14 | 6 | #define __LABEL_H__ |
|---|
| .. | .. |
|---|
| 70 | 62 | __le16 major; |
|---|
| 71 | 63 | __le16 minor; |
|---|
| 72 | 64 | __le64 checksum; |
|---|
| 73 | | - u8 free[0]; |
|---|
| 65 | + u8 free[]; |
|---|
| 74 | 66 | }; |
|---|
| 75 | 67 | |
|---|
| 76 | 68 | /** |
|---|
| .. | .. |
|---|
| 136 | 128 | } |
|---|
| 137 | 129 | |
|---|
| 138 | 130 | 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); |
|---|
| 142 | 132 | size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd); |
|---|
| 143 | 133 | int nd_label_active_count(struct nvdimm_drvdata *ndd); |
|---|
| 144 | 134 | struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n); |
|---|