* [PATCH 1/2] mtd: unittests: Use proper unsigned long type for ioctl requests
@ 2018-02-06 20:49 Balint Reczey
2018-02-14 14:59 ` David Oberhollenzer
0 siblings, 1 reply; 2+ messages in thread
From: Balint Reczey @ 2018-02-06 20:49 UTC (permalink / raw)
This fixes tests on s390x
Signed-off-by: Balint Reczey <balint.reczey@canonical.com>
---
tests/unittests/test_lib.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/unittests/test_lib.h b/tests/unittests/test_lib.h
index 122672b..f5f0f34 100644
--- a/tests/unittests/test_lib.h
+++ b/tests/unittests/test_lib.h
@@ -40,7 +40,7 @@ int __wrap_close(int fd)
return retval;
}
-int __wrap_ioctl(int fd, int req, ...)
+int __wrap_ioctl(int fd, unsigned long req, ...)
{
assert_true(fd > 0);
check_expected(req);
@@ -108,14 +108,14 @@ off_t __wrap_lseek(int fd, off_t seek, int whence)
} while(0);
#define expect_ioctl(W,X,Y,Z) do { \
- expect_value(__wrap_ioctl, req, (int)W);\
+ expect_value(__wrap_ioctl, req, W);\
will_return(__wrap_ioctl, X);\
will_return(__wrap_ioctl, Y);\
will_return(__wrap_ioctl, Z);\
} while(0);
#define expect_ioctl_short(X,Y) do { \
- expect_value(__wrap_ioctl, req, (int)X);\
+ expect_value(__wrap_ioctl, req, X);\
will_return(__wrap_ioctl, Y);\
will_return(__wrap_ioctl, NULL);\
will_return(__wrap_ioctl, 0);\
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] mtd: unittests: Use proper unsigned long type for ioctl requests
2018-02-06 20:49 [PATCH 1/2] mtd: unittests: Use proper unsigned long type for ioctl requests Balint Reczey
@ 2018-02-14 14:59 ` David Oberhollenzer
0 siblings, 0 replies; 2+ messages in thread
From: David Oberhollenzer @ 2018-02-14 14:59 UTC (permalink / raw)
To: linux-mtd
Applied to mtd-utils.git
Thanks,
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-14 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-06 20:49 [PATCH 1/2] mtd: unittests: Use proper unsigned long type for ioctl requests Balint Reczey
2018-02-14 14:59 ` David Oberhollenzer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.