Source
7
7
* This program is free software; you can redistribute it and/or
8
8
* modify it under the terms of the GNU General Public License
9
9
* as published by the Free Software Foundation; version 2
10
10
* of the License.
11
11
*/
12
12
#define pr_fmt(fmt) "rodata_test: " fmt
13
13
14
14
#include <linux/uaccess.h>
15
15
#include <asm/sections.h>
16
16
17
-
const int rodata_test_data = 0xC3;
17
+
static const int rodata_test_data = 0xC3;
18
18
19
19
void rodata_test(void)
20
20
{
21
21
unsigned long start, end;
22
22
int zero = 0;
23
23
24
24
/* test 1: read the value */
25
25
/* If this test fails, some previous testrun has clobbered the state */
26
26
if (!rodata_test_data) {
27
27
pr_err("test 1 fails (start data)\n");