summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-12-10 09:50:09 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-12-19 10:56:32 +0300
commit05a4ab823983d9136a460b7b5e0d49ee709a6f86 (patch)
tree7c6431fa16d2336c1decd260f99babd46e50286c /tools/perf/scripts/python/export-to-postgresql.py
parentc62ce9ef97ba8af4120c766c32e230215dd4df04 (diff)
downloadlinux-05a4ab823983d9136a460b7b5e0d49ee709a6f86.tar.xz
powerpc/uaccess: fix warning/error with access_ok()
With the following piece of code, the following compilation warning is encountered: if (_IOC_DIR(ioc) != _IOC_NONE) { int verify = _IOC_DIR(ioc) & _IOC_READ ? VERIFY_WRITE : VERIFY_READ; if (!access_ok(verify, ioarg, _IOC_SIZE(ioc))) { drivers/platform/test/dev.c: In function 'my_ioctl': drivers/platform/test/dev.c:219:7: warning: unused variable 'verify' [-Wunused-variable] int verify = _IOC_DIR(ioc) & _IOC_READ ? VERIFY_WRITE : VERIFY_READ; This patch fixes it by referencing 'type' in the macro allthough doing nothing with it. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions