check.c (2daf7faba7ded8703e4b4ebc8b161f22272fc91a) | check.c (b51277eb9775ce916f9efd2c51533e481180c1e8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2015-2017 Josh Poimboeuf <jpoimboe@redhat.com> 4 */ 5 6#include <string.h> 7#include <stdlib.h> 8#include <sys/mman.h> --- 3935 unchanged lines hidden (view full) --- 3944 3945 if (opts.ibt) { 3946 ret = create_ibt_endbr_seal_sections(file); 3947 if (ret < 0) 3948 goto out; 3949 warnings += ret; 3950 } 3951 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2015-2017 Josh Poimboeuf <jpoimboe@redhat.com> 4 */ 5 6#include <string.h> 7#include <stdlib.h> 8#include <sys/mman.h> --- 3935 unchanged lines hidden (view full) --- 3944 3945 if (opts.ibt) { 3946 ret = create_ibt_endbr_seal_sections(file); 3947 if (ret < 0) 3948 goto out; 3949 warnings += ret; 3950 } 3951 |
3952 if (opts.orc && !list_empty(&file->insn_list)) { 3953 ret = orc_create(file); 3954 if (ret < 0) 3955 goto out; 3956 warnings += ret; 3957 } 3958 3959 |
|
3952 if (opts.stats) { 3953 printf("nr_insns_visited: %ld\n", nr_insns_visited); 3954 printf("nr_cfi: %ld\n", nr_cfi); 3955 printf("nr_cfi_reused: %ld\n", nr_cfi_reused); 3956 printf("nr_cfi_cache: %ld\n", nr_cfi_cache); 3957 } 3958 3959out: 3960 /* 3961 * For now, don't fail the kernel build on fatal warnings. These 3962 * errors are still fairly common due to the growing matrix of 3963 * supported toolchains and their recent pace of change. 3964 */ 3965 return 0; 3966} | 3960 if (opts.stats) { 3961 printf("nr_insns_visited: %ld\n", nr_insns_visited); 3962 printf("nr_cfi: %ld\n", nr_cfi); 3963 printf("nr_cfi_reused: %ld\n", nr_cfi_reused); 3964 printf("nr_cfi_cache: %ld\n", nr_cfi_cache); 3965 } 3966 3967out: 3968 /* 3969 * For now, don't fail the kernel build on fatal warnings. These 3970 * errors are still fairly common due to the growing matrix of 3971 * supported toolchains and their recent pace of change. 3972 */ 3973 return 0; 3974} |