1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef __MISC_SUPPORT_H_INCLUDED__ 8 #define __MISC_SUPPORT_H_INCLUDED__ 9 10 /* suppress compiler warnings on unused variables */ 11 #ifndef NOT_USED 12 #define NOT_USED(a) ((void)(a)) 13 #endif 14 15 /* Calculate the total bytes for pow(2) byte alignment */ 16 #define tot_bytes_for_pow2_align(pow2, cur_bytes) ((cur_bytes + (pow2 - 1)) & ~(pow2 - 1)) 17 18 #endif /* __MISC_SUPPORT_H_INCLUDED__ */ 19