android_kernel_motorola_sm6225/drivers/infiniband/hw
Roland Dreier f27ec1d6db 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>
2010-05-26 13:15:06 -07:00
..
amso1100 IB/core: Allow device-specific per-port sysfs files 2010-05-21 10:34:44 -07:00
cxgb3 IB/core: Allow device-specific per-port sysfs files 2010-05-21 10:34:44 -07:00
cxgb4 Merge branches 'cxgb4', 'misc', 'mlx4', 'nes' and 'qib' into for-next 2010-05-25 09:54:03 -07:00
ehca Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband 2010-05-25 12:05:17 -07:00
ipath IB/ipath: Remove support for QLogic PCIe QLE devices 2010-05-23 22:14:25 -07:00
mlx4 IB/core: Allow device-specific per-port sysfs files 2010-05-21 10:34:44 -07:00
mthca IB/core: Allow device-specific per-port sysfs files 2010-05-21 10:34:44 -07:00
nes Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband 2010-05-25 12:05:17 -07:00
qib IB/qib: Don't rely on (undefined) order of function parameter evaluation 2010-05-26 13:15:06 -07:00