mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-07 07:56:17 +00:00
Add missing noreturn attribute to various functions
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
3bc3ab27ea
commit
36b8143c22
@ -326,7 +326,7 @@ db_shutdown(int sig) {
|
||||
printf("Shutting down...\n");
|
||||
}
|
||||
|
||||
static void
|
||||
static void __attribute__((noreturn))
|
||||
die(int reason) {
|
||||
int i = 0;
|
||||
|
||||
|
@ -1750,7 +1750,7 @@ out:
|
||||
}
|
||||
|
||||
static const char *timeout_op;
|
||||
static void igt_alarm_handler(int signal)
|
||||
static void __attribute__((noreturn)) igt_alarm_handler(int signal)
|
||||
{
|
||||
if (timeout_op)
|
||||
igt_info("Timed out: %s\n", timeout_op);
|
||||
|
@ -49,7 +49,7 @@ IGT_TEST_DESCRIPTION("Checks that the kernel reports EFAULT when trying to use"
|
||||
|
||||
static jmp_buf jmp;
|
||||
|
||||
static void sigtrap(int sig)
|
||||
static void __attribute__((noreturn)) sigtrap(int sig)
|
||||
{
|
||||
longjmp(jmp, sig);
|
||||
}
|
||||
|
@ -1386,7 +1386,7 @@ static void pci_d3_state_subtest(void)
|
||||
igt_assert(!device_in_pci_d3());
|
||||
}
|
||||
|
||||
static void stay_subtest(void)
|
||||
static void __attribute__((noreturn)) stay_subtest(void)
|
||||
{
|
||||
disable_all_screens_and_wait(&ms_data);
|
||||
|
||||
|
@ -552,7 +552,7 @@ static void __attribute__((noreturn)) usage(char *name, char opt)
|
||||
|
||||
#define dump_resource(res) if (res) dump_##res()
|
||||
|
||||
static void cleanup_and_exit(int ret)
|
||||
static void __attribute__((noreturn)) cleanup_and_exit(int ret)
|
||||
{
|
||||
close(drm_fd);
|
||||
exit(ret);
|
||||
|
@ -946,7 +946,7 @@ static const char *test_name(enum test test, int pipe, int bit, bool test_pixel_
|
||||
}
|
||||
}
|
||||
|
||||
static void usage(const char *name)
|
||||
static void __attribute__((noreturn)) usage(const char *name)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [options]\n"
|
||||
" -t,--test <pipestat|iir|framecount|flipcount|pan|flip|surflive|wrap|field>\n"
|
||||
|
@ -142,7 +142,7 @@ static int get_frequency(struct freq_info *freq_info)
|
||||
return val;
|
||||
}
|
||||
|
||||
static void
|
||||
static void __attribute__((noreturn))
|
||||
usage(const char *prog)
|
||||
{
|
||||
printf("%s A program to manipulate Intel GPU frequencies.\n\n", prog);
|
||||
|
Loading…
x
Reference in New Issue
Block a user