diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-07-27 23:37:36 +0900 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-08-06 13:40:20 -0600 |
commit | 2a6b6c9a226279b4f6668450ddb21ae655558087 (patch) | |
tree | 72969ff287d26d17eebec064373c9a659b92b151 /tools/testing/selftests/drivers | |
parent | f0a1ffa6f9771c6a1283afab591781e7c797e2e1 (diff) | |
download | lwn-2a6b6c9a226279b4f6668450ddb21ae655558087.tar.gz lwn-2a6b6c9a226279b4f6668450ddb21ae655558087.zip |
selftests: harness: remove unneeded __constructor_order_last()
__constructor_order_last() is unneeded.
If __constructor_order_last() is not called on backward-order systems,
__constructor_order will remain 0 instead of being set to
_CONSTRUCTOR_ORDER_BACKWARD (= -1).
__LIST_APPEND() will still take the 'else' branch, so there is no
difference in the behavior.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/drivers')
-rw-r--r-- | tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c b/tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c index ea0cdc37b44f..7ee7492138c6 100644 --- a/tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c +++ b/tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c @@ -257,12 +257,6 @@ TEST_F(attest_fixture, att_inval_addr) att_inval_addr_test(&self->uvio_attest.meas_addr, _metadata, self); } -static void __attribute__((constructor)) __constructor_order_last(void) -{ - if (!__constructor_order) - __constructor_order = _CONSTRUCTOR_ORDER_BACKWARD; -} - int main(int argc, char **argv) { int fd = open(UV_PATH, O_ACCMODE); |