aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtmutex_common.h
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2010-05-26 16:15:06 -0400
committerRoland Dreier <rolandd@cisco.com>2010-05-26 16:15:06 -0400
commitf27ec1d6db4aa3348ca7be896f1466599aecea3e (patch)
treeaac2df369645a816fbfb81ee3e89ab52ad8d6423 /kernel/rtmutex_common.h
parent7e3a1f4ab1a550dd6cf62a23aabedbad0d23e2d7 (diff)
IB/qib: Don't rely on (undefined) order of function parameter evaluation
Some of the qib sysfs code passes a buffer pointer into simple_read_from_buffer() but relies on a function call in another parameter of the same call to initialize that pointer. Since the order of evaluation of function parameters is undefined, this will break if gcc chooses the wrong order. Fix this by splitting the code into two separate function calls. This was noticed because of warnings like the following on ppc: drivers/infiniband/hw/qib/qib_fs.c: In function 'portcntrs_2_read': drivers/infiniband/hw/qib/qib_fs.c:203: warning: 'counters' is used uninitialized in this function Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'kernel/rtmutex_common.h')
0 files changed, 0 insertions, 0 deletions