From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EE5D1A0C47; Thu, 10 Jun 2021 23:36:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACA704067C; Thu, 10 Jun 2021 23:36:15 +0200 (CEST) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id 9050A4003C for ; Thu, 10 Jun 2021 23:36:14 +0200 (CEST) Received: by mail-pj1-f44.google.com with SMTP id k7so4460768pjf.5 for ; Thu, 10 Jun 2021 14:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gQcBT8f7Y9r4hKybXS9x+5zzxdmon85G0dUPQz+d3is=; b=o8nRbVtPvslEqQ/Ylli9+04POwHQ6vscbRNitcexYtsrddv0Xxk+5/IykqEaLyOYUH np5Q32O9TOsjZADb1lj8QRawtkkWPy+VwJvyFyigcvP+vPv2PTzr35GUh/fcm1bswDH7 KWIGrnwBhcIJNohGsbLoQd5JehrvR4hvU7mwRTdWFFHh379WG7SD3c0hpVu9y5nR3j9v URkqlPWaMC2qNMSmu3q97C6UxcfYbDXTIEBHRnl4BzjTbuXcNobDBsFlxGiY7GoZ1AfX n3I/hwnZssrSRc05fhkEmffLKanR0XJmTKK8KeM1KU7H29XdEC1dNqTxaAEVHeaNyrjw q3ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gQcBT8f7Y9r4hKybXS9x+5zzxdmon85G0dUPQz+d3is=; b=tn6HO9jcHDa1qOli0Nb53f1mIYiHX08UgpC7RPsU8kc6MDDETIdDmkrW2VbFGAPTvb 7r4ZKqS0m00HpshiXKQvVaPeRbWTy1jQb6FULiSpce3kwRUug1dWUpNZkCbqHiHkLK2j 0HUXTW1nsD0VHMqW5N1MKD9AbvuffXEQmI7w4GLWj5ossQPtN8/2t3M7RFu4CkaLhMDm jSQGw7RAStkC3A7DfD2gO9SYJM+9RoP3VrM29qHd2OcGWrGJi4yz+Uc56AXlkbRLL40J ILtsPEGgT4SEJAf2PSXlvONwe8NpegbnQzdOYR7BaNwvh4aZrqnVhyEAOClddw1JpLcG mryA== X-Gm-Message-State: AOAM532HVFy2/jSVxzf68VzS6wZjKL0ZiNhYMbpZm6eVe2RAh70CHNnJ ikjaS7I3pqPG5KEMX79F46RNhg== X-Google-Smtp-Source: ABdhPJyCuOA4qO1OlNjn6+BJ5njotVih/P7VI/gmoRsLtJogZv9bxaUj0xaRZzjvPPxS2boYZAKdnw== X-Received: by 2002:a17:903:304e:b029:112:6cc2:69ab with SMTP id u14-20020a170903304eb02901126cc269abmr751591pla.72.1623360973602; Thu, 10 Jun 2021 14:36:13 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id h20sm3210780pfq.83.2021.06.10.14.36.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 14:36:13 -0700 (PDT) Date: Thu, 10 Jun 2021 14:36:04 -0700 From: Stephen Hemminger To: Owen Hilyard Cc: Aaron Conole , David Marchand , dev Message-ID: <20210610143604.48278bcc@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] Define statement with UB prevents compilation using UBSAN X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 10 Jun 2021 16:51:37 -0400 Owen Hilyard wrote: > Working backward to the define > statement, AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY is defined as > > #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY (0x1 << 31) Why not (1u << 31)?