.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Randomness driver for virtio |
---|
3 | 4 | * Copyright (C) 2007, 2008 Rusty Russell IBM Corporation |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License as published by |
---|
7 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
8 | | - * (at your option) any later version. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | | - * |
---|
15 | | - * You should have received a copy of the GNU General Public License |
---|
16 | | - * along with this program; if not, write to the Free Software |
---|
17 | | - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
18 | 5 | */ |
---|
19 | 6 | |
---|
20 | 7 | #include <linux/err.h> |
---|
.. | .. |
---|
24 | 11 | #include <linux/virtio.h> |
---|
25 | 12 | #include <linux/virtio_rng.h> |
---|
26 | 13 | #include <linux/module.h> |
---|
| 14 | +#include <linux/slab.h> |
---|
27 | 15 | |
---|
28 | 16 | static DEFINE_IDA(rng_index_ida); |
---|
29 | 17 | |
---|
.. | .. |
---|
207 | 195 | } |
---|
208 | 196 | #endif |
---|
209 | 197 | |
---|
210 | | -static struct virtio_device_id id_table[] = { |
---|
| 198 | +static const struct virtio_device_id id_table[] = { |
---|
211 | 199 | { VIRTIO_ID_RNG, VIRTIO_DEV_ANY_ID }, |
---|
212 | 200 | { 0 }, |
---|
213 | 201 | }; |
---|