Print this page
re #13613 rb4516 Tunables needs volatile keyword
@@ -24,10 +24,13 @@
*/
/*
* Copyright 2011 Bayard G. Bell <buffer.g.overflow@gmail.com>.
* All rights reserved. Use is subject to license terms.
*/
+/*
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ */
/*
* Kernel's linker/loader
*/
@@ -320,11 +323,11 @@
static kobj_stat_t kobj_stat;
#define MINALIGN 8 /* at least a double-word */
int
-get_weakish_int(int *ip)
+get_weakish_int(volatile int *ip)
{
if (standalone)
return (0);
return (ip == NULL ? 0 : *ip);
}