Commit d3617826 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Work around include/linux/sunrpc/svc.h compilation

From: Grzegorz Jaskiewicz <gj@pointblue.com.pl>

gcc-2.94 fails to compile this code, alleging an invalid lvalue.
An equivalent transformation fixes it up.
parent 667b93eb
......@@ -176,8 +176,10 @@ static inline int svc_take_page(struct svc_rqst *rqstp)
{
if (rqstp->rq_arghi <= rqstp->rq_argused)
return -ENOMEM;
rqstp->rq_respages[rqstp->rq_resused++] =
rqstp->rq_argpages[--rqstp->rq_arghi];
rqstp->rq_arghi--;
rqstp->rq_respages[rqstp->rq_resused] =
rqstp->rq_argpages[rqstp->rq_arghi];
rqstp->rq_resused++;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment