X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=libfio.c;h=74de7351a9a8244db061e5511d9f28d6bd826641;hp=14ddc4d03302758d95d08a45a2eb4d740798441b;hb=f7c305464667b118b62aff9b846d1a939fbc1547;hpb=8b6a404cdd2c40715885e562416c3db039912773 diff --git a/libfio.c b/libfio.c index 14ddc4d0..74de7351 100644 --- a/libfio.c +++ b/libfio.c @@ -18,7 +18,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ @@ -365,6 +365,9 @@ int initialize_fio(char *envp[]) compiletime_assert((offsetof(struct thread_options_pack, latency_percentile) % 8) == 0, "latency_percentile"); compiletime_assert((offsetof(struct jobs_eta, m_rate) % 8) == 0, "m_rate"); + compiletime_assert(__TD_F_LAST <= TD_ENG_FLAG_SHIFT, "TD_ENG_FLAG_SHIFT"); + compiletime_assert(BSSPLIT_MAX <= ZONESPLIT_MAX, "bsssplit/zone max"); + err = endian_check(); if (err) { log_err("fio: endianness settings appear wrong.\n");