Skip to content
Snippets Groups Projects
Commit 5010f751 authored by bwzhou's avatar bwzhou
Browse files

Branch b1_6

b=11622

fix building issue with sles9
parent aab5d029
No related merge requests found
...@@ -91,7 +91,7 @@ int LL_PROC_PROTO(proc_set_timeout) ...@@ -91,7 +91,7 @@ int LL_PROC_PROTO(proc_set_timeout)
#ifdef RANDOM_FAIL_ALLOC #ifdef RANDOM_FAIL_ALLOC
int LL_PROC_PROTO(proc_alloc_fail_rate) int LL_PROC_PROTO(proc_alloc_fail_rate)
{ {
DECLARE_LL_PROC_PPOS_DECL DECLARE_LL_PROC_PPOS_DECL;
int rc = 0; int rc = 0;
if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) { if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) {
...@@ -125,7 +125,7 @@ int LL_PROC_PROTO(proc_memory_alloc) ...@@ -125,7 +125,7 @@ int LL_PROC_PROTO(proc_memory_alloc)
{ {
char buf[22]; char buf[22];
int len; int len;
DECLARE_LL_PROC_PPOS_DECL DECLARE_LL_PROC_PPOS_DECL;
if (!*lenp || (*ppos && !write)) { if (!*lenp || (*ppos && !write)) {
*lenp = 0; *lenp = 0;
...@@ -149,7 +149,7 @@ int LL_PROC_PROTO(proc_pages_alloc) ...@@ -149,7 +149,7 @@ int LL_PROC_PROTO(proc_pages_alloc)
{ {
char buf[22]; char buf[22];
int len; int len;
DECLARE_LL_PROC_PPOS_DECL DECLARE_LL_PROC_PPOS_DECL;
if (!*lenp || (*ppos && !write)) { if (!*lenp || (*ppos && !write)) {
*lenp = 0; *lenp = 0;
...@@ -173,7 +173,7 @@ int LL_PROC_PROTO(proc_mem_max) ...@@ -173,7 +173,7 @@ int LL_PROC_PROTO(proc_mem_max)
{ {
char buf[22]; char buf[22];
int len; int len;
DECLARE_LL_PROC_PPOS_DECL DECLARE_LL_PROC_PPOS_DECL;
if (!*lenp || (*ppos && !write)) { if (!*lenp || (*ppos && !write)) {
*lenp = 0; *lenp = 0;
...@@ -197,7 +197,7 @@ int LL_PROC_PROTO(proc_pages_max) ...@@ -197,7 +197,7 @@ int LL_PROC_PROTO(proc_pages_max)
{ {
char buf[22]; char buf[22];
int len; int len;
DECLARE_LL_PROC_PPOS_DECL DECLARE_LL_PROC_PPOS_DECL;
if (!*lenp || (*ppos && !write)) { if (!*lenp || (*ppos && !write)) {
*lenp = 0; *lenp = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment