Home
last modified time | relevance | path

Searched refs:BUILD_BUG_ON (Results 51 – 75 of 1264) sorted by relevance

12345678910>>...51

/openbmc/linux/include/drm/ttm/
H A Dttm_range_manager.h46 BUILD_BUG_ON(__builtin_constant_p(type) && type >= TTM_NUM_MEM_TYPES); in ttm_range_man_init()
53 BUILD_BUG_ON(__builtin_constant_p(type) && type >= TTM_NUM_MEM_TYPES); in ttm_range_man_fini()
/openbmc/linux/drivers/soc/tegra/fuse/
H A Dspeedo-tegra210.c109 BUILD_BUG_ON(ARRAY_SIZE(cpu_process_speedos) != in tegra210_init_speedo_data()
111 BUILD_BUG_ON(ARRAY_SIZE(gpu_process_speedos) != in tegra210_init_speedo_data()
113 BUILD_BUG_ON(ARRAY_SIZE(soc_process_speedos) != in tegra210_init_speedo_data()
H A Dspeedo-tegra114.c80 BUILD_BUG_ON(ARRAY_SIZE(cpu_process_speedos) != in tegra114_init_speedo_data()
82 BUILD_BUG_ON(ARRAY_SIZE(soc_process_speedos) != in tegra114_init_speedo_data()
H A Dspeedo-tegra20.c60 BUILD_BUG_ON(ARRAY_SIZE(cpu_process_speedos) != SPEEDO_ID_COUNT); in tegra20_init_speedo_data()
61 BUILD_BUG_ON(ARRAY_SIZE(soc_process_speedos) != SPEEDO_ID_COUNT); in tegra20_init_speedo_data()
/openbmc/linux/arch/x86/mm/
H A Dkaslr.c81 BUILD_BUG_ON(vaddr_start >= vaddr_end); in kernel_randomize_memory()
82 BUILD_BUG_ON(vaddr_end != CPU_ENTRY_AREA_BASE); in kernel_randomize_memory()
83 BUILD_BUG_ON(vaddr_end > __START_KERNEL_map); in kernel_randomize_memory()
/openbmc/u-boot/fs/ubifs/
H A Dsuper.c2557 BUILD_BUG_ON(UBIFS_CH_SZ & 7); in ubifs_init()
2558 BUILD_BUG_ON(UBIFS_INO_NODE_SZ & 7); in ubifs_init()
2559 BUILD_BUG_ON(UBIFS_DENT_NODE_SZ & 7); in ubifs_init()
2560 BUILD_BUG_ON(UBIFS_XENT_NODE_SZ & 7); in ubifs_init()
2561 BUILD_BUG_ON(UBIFS_DATA_NODE_SZ & 7); in ubifs_init()
2562 BUILD_BUG_ON(UBIFS_TRUN_NODE_SZ & 7); in ubifs_init()
2563 BUILD_BUG_ON(UBIFS_SB_NODE_SZ & 7); in ubifs_init()
2564 BUILD_BUG_ON(UBIFS_MST_NODE_SZ & 7); in ubifs_init()
2565 BUILD_BUG_ON(UBIFS_REF_NODE_SZ & 7); in ubifs_init()
2566 BUILD_BUG_ON(UBIFS_CS_NODE_SZ & 7); in ubifs_init()
[all …]
/openbmc/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-tm.c163 BUILD_BUG_ON(offsetof(struct pt_regs, orig_gpr3) != in tm_cgpr_set()
349 BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); in tm_cvmx_get()
399 BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); in tm_cvmx_set()
578 BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); in tm_spr_get()
579 BUILD_BUG_ON(TSO(tm_texasr) + sizeof(u64) != TSO(tm_tfiar)); in tm_spr_get()
580 BUILD_BUG_ON(TSO(tm_tfiar) + sizeof(u64) != TSO(ckpt_regs)); in tm_spr_get()
623 BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); in tm_spr_set()
624 BUILD_BUG_ON(TSO(tm_texasr) + sizeof(u64) != TSO(tm_tfiar)); in tm_spr_set()
625 BUILD_BUG_ON(TSO(tm_tfiar) + sizeof(u64) != TSO(ckpt_regs)); in tm_spr_set()
H A Dptrace-spe.c32 BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) != in evr_get()
51 BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) != in evr_set()
H A Dptrace-view.c260 BUILD_BUG_ON(offsetof(struct pt_regs, orig_gpr3) != in gpr_set()
352 BUILD_BUG_ON(TSO(ebbrr) + sizeof(unsigned long) != TSO(ebbhr)); in ebb_get()
353 BUILD_BUG_ON(TSO(ebbhr) + sizeof(unsigned long) != TSO(bescr)); in ebb_get()
371 BUILD_BUG_ON(TSO(ebbrr) + sizeof(unsigned long) != TSO(ebbhr)); in ebb_set()
372 BUILD_BUG_ON(TSO(ebbhr) + sizeof(unsigned long) != TSO(bescr)); in ebb_set()
407 BUILD_BUG_ON(TSO(siar) + sizeof(unsigned long) != TSO(sdar)); in pmu_get()
408 BUILD_BUG_ON(TSO(sdar) + sizeof(unsigned long) != TSO(sier)); in pmu_get()
409 BUILD_BUG_ON(TSO(sier) + sizeof(unsigned long) != TSO(mmcr2)); in pmu_get()
425 BUILD_BUG_ON(TSO(siar) + sizeof(unsigned long) != TSO(sdar)); in pmu_set()
426 BUILD_BUG_ON(TSO(sdar) + sizeof(unsigned long) != TSO(sier)); in pmu_set()
[all …]
H A Dptrace-altivec.c53 BUILD_BUG_ON(offsetof(struct thread_vr_state, vscr) != in vr_get()
87 BUILD_BUG_ON(offsetof(struct thread_vr_state, vscr) != in vr_set()
/openbmc/linux/net/ethtool/
H A Dtsinfo.c52 BUILD_BUG_ON(__SOF_TIMESTAMPING_CNT > 32); in tsinfo_reply_size()
53 BUILD_BUG_ON(__HWTSTAMP_TX_CNT > 32); in tsinfo_reply_size()
54 BUILD_BUG_ON(__HWTSTAMP_FILTER_CNT > 32); in tsinfo_reply_size()
/openbmc/linux/drivers/ps3/
H A Dps3-sys-manager.c264 BUILD_BUG_ON(sizeof(payload) != 8); in ps3_sys_manager_send_attr()
301 BUILD_BUG_ON(sizeof(payload) != 16); in ps3_sys_manager_send_next_op()
343 BUILD_BUG_ON(sizeof(payload) != 16); in ps3_sys_manager_send_request_shutdown()
380 BUILD_BUG_ON(sizeof(payload) != 16); in ps3_sys_manager_send_response()
414 BUILD_BUG_ON(sizeof(event) != 16); in ps3_sys_manager_handle_event()
494 BUILD_BUG_ON(sizeof(cmd) != 16); in ps3_sys_manager_handle_cmd()
544 BUILD_BUG_ON(sizeof(header) != 16); in ps3_sys_manager_handle_msg()
/openbmc/linux/arch/x86/kernel/
H A Dhead64.c479 BUILD_BUG_ON(MODULES_VADDR < __START_KERNEL_map); in x86_64_start_kernel()
480 BUILD_BUG_ON(MODULES_VADDR - __START_KERNEL_map < KERNEL_IMAGE_SIZE); in x86_64_start_kernel()
481 BUILD_BUG_ON(MODULES_LEN + KERNEL_IMAGE_SIZE > 2*PUD_SIZE); in x86_64_start_kernel()
482 BUILD_BUG_ON((__START_KERNEL_map & ~PMD_MASK) != 0); in x86_64_start_kernel()
483 BUILD_BUG_ON((MODULES_VADDR & ~PMD_MASK) != 0); in x86_64_start_kernel()
484 BUILD_BUG_ON(!(MODULES_VADDR > __START_KERNEL)); in x86_64_start_kernel()
487 BUILD_BUG_ON(__fix_to_virt(__end_of_fixed_addresses) <= MODULES_END); in x86_64_start_kernel()
/openbmc/linux/security/landlock/
H A Druleset.c68 BUILD_BUG_ON(rule.num_layers < LANDLOCK_MAX_NUM_LAYERS); in build_check_rule()
122 BUILD_BUG_ON(ruleset.num_rules < LANDLOCK_MAX_NUM_RULES); in build_check_ruleset()
123 BUILD_BUG_ON(ruleset.num_layers < LANDLOCK_MAX_NUM_LAYERS); in build_check_ruleset()
124 BUILD_BUG_ON(fs_access_mask < LANDLOCK_MASK_ACCESS_FS); in build_check_ruleset()
226 BUILD_BUG_ON(layer.level < LANDLOCK_MAX_NUM_LAYERS); in build_check_layer()
227 BUILD_BUG_ON(layer.access < LANDLOCK_MASK_ACCESS_FS); in build_check_layer()
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_vma.h220 BUILD_BUG_ON(I915_GTT_VIEW_NORMAL != 0); in i915_vma_compare()
241 BUILD_BUG_ON(I915_GTT_VIEW_NORMAL >= I915_GTT_VIEW_PARTIAL); in i915_vma_compare()
242 BUILD_BUG_ON(I915_GTT_VIEW_PARTIAL >= I915_GTT_VIEW_ROTATED); in i915_vma_compare()
243 BUILD_BUG_ON(I915_GTT_VIEW_ROTATED >= I915_GTT_VIEW_REMAPPED); in i915_vma_compare()
244 BUILD_BUG_ON(offsetof(typeof(*view), rotated) != in i915_vma_compare()
246 BUILD_BUG_ON(offsetof(typeof(*view), rotated) != in i915_vma_compare()
/openbmc/linux/arch/powerpc/platforms/ps3/
H A Dos-area.c579 BUILD_BUG_ON(sizeof(struct db_index) != 1); in os_area_db_init()
580 BUILD_BUG_ON(sizeof(struct os_area_db) != 2 * OS_AREA_SEGMENT_SIZE); in os_area_db_init()
581 BUILD_BUG_ON(INDEX_64_COUNT & 0x7); in os_area_db_init()
582 BUILD_BUG_ON(VALUES_64_COUNT > INDEX_64_COUNT); in os_area_db_init()
583 BUILD_BUG_ON(INDEX_32_COUNT & 0x7); in os_area_db_init()
584 BUILD_BUG_ON(VALUES_32_COUNT > INDEX_32_COUNT); in os_area_db_init()
585 BUILD_BUG_ON(INDEX_16_COUNT & 0x7); in os_area_db_init()
586 BUILD_BUG_ON(VALUES_16_COUNT > INDEX_16_COUNT); in os_area_db_init()
587 BUILD_BUG_ON(HEADER_SIZE in os_area_db_init()
/openbmc/linux/arch/arm64/mm/
H A Dkasan_init.c171 BUILD_BUG_ON(KASAN_SHADOW_OFFSET != in kasan_early_init()
173 BUILD_BUG_ON(!IS_ALIGNED(_KASAN_SHADOW_START(VA_BITS), PGDIR_SIZE)); in kasan_early_init()
174 BUILD_BUG_ON(!IS_ALIGNED(_KASAN_SHADOW_START(VA_BITS_MIN), PGDIR_SIZE)); in kasan_early_init()
175 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, PGDIR_SIZE)); in kasan_early_init()
248 BUILD_BUG_ON(VMALLOC_START != MODULES_END); in kasan_init_shadow()
/openbmc/linux/drivers/tee/optee/
H A Doptee_trace.h30 BUILD_BUG_ON(sizeof(*param) < sizeof(__entry->args));
51 BUILD_BUG_ON(sizeof(*res) < sizeof(__entry->rets));
/openbmc/linux/drivers/net/ipa/
H A Dipa_main.c708 BUILD_BUG_ON(!IS_ENABLED(CONFIG_64BIT) && sizeof(size_t) != 4); in ipa_validate_build()
711 BUILD_BUG_ON(GSI_EE_AP != 0); in ipa_validate_build()
714 BUILD_BUG_ON(!GSI_CHANNEL_COUNT_MAX); in ipa_validate_build()
715 BUILD_BUG_ON(!GSI_EVT_RING_COUNT_MAX); in ipa_validate_build()
718 BUILD_BUG_ON(GSI_CHANNEL_COUNT_MAX > 32); in ipa_validate_build()
719 BUILD_BUG_ON(GSI_EVT_RING_COUNT_MAX > 31); in ipa_validate_build()
725 BUILD_BUG_ON(GSI_TLV_MAX > U8_MAX); in ipa_validate_build()
728 BUILD_BUG_ON(!IPA_AGGR_GRANULARITY); in ipa_validate_build()
731 BUILD_BUG_ON(!ipa_aggr_granularity_val(IPA_AGGR_GRANULARITY)); in ipa_validate_build()
/openbmc/linux/arch/powerpc/include/asm/
H A Dfixmap.h108 BUILD_BUG_ON(IS_ENABLED(CONFIG_PPC64) && __FIXADDR_SIZE > FIXADDR_SIZE); in __set_fixmap()
111 BUILD_BUG_ON(idx >= __end_of_fixed_addresses); in __set_fixmap()
/openbmc/linux/arch/riscv/include/asm/
H A Dcmpxchg.h151 BUILD_BUG_ON(sizeof(*(ptr)) != 4); \
157 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
353 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
359 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dqla_os.c8181 BUILD_BUG_ON(sizeof(cmd_a64_entry_t) != 64); in qla2x00_module_init()
8182 BUILD_BUG_ON(sizeof(cmd_entry_t) != 64); in qla2x00_module_init()
8184 BUILD_BUG_ON(sizeof(cont_entry_t) != 64); in qla2x00_module_init()
8185 BUILD_BUG_ON(sizeof(init_cb_t) != 96); in qla2x00_module_init()
8186 BUILD_BUG_ON(sizeof(mrk_entry_t) != 64); in qla2x00_module_init()
8188 BUILD_BUG_ON(sizeof(request_t) != 64); in qla2x00_module_init()
8259 BUILD_BUG_ON(sizeof(sts21_entry_t) != 64); in qla2x00_module_init()
8260 BUILD_BUG_ON(sizeof(sts22_entry_t) != 64); in qla2x00_module_init()
8262 BUILD_BUG_ON(sizeof(sts_entry_t) != 64); in qla2x00_module_init()
8263 BUILD_BUG_ON(sizeof(sw_info_t) != 32); in qla2x00_module_init()
[all …]
/openbmc/linux/drivers/xen/
H A Dmem-reservation.c46 BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); in __xenmem_reservation_va_mapping_update()
72 BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); in __xenmem_reservation_va_mapping_reset()
/openbmc/linux/arch/alpha/include/asm/
H A Dcmpxchg.h31 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
70 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
/openbmc/linux/arch/s390/include/asm/
H A Dctl_reg.h41 BUILD_BUG_ON(sizeof(addrtype) != (high - low + 1) * sizeof(long));\
52 BUILD_BUG_ON(sizeof(addrtype) != (high - low + 1) * sizeof(long));\

12345678910>>...51