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 B7165A0C42; Fri, 11 Jun 2021 16:34:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AB724067C; Fri, 11 Jun 2021 16:34:43 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 863F04014F for ; Fri, 11 Jun 2021 16:34:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623422080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PcXym/WmUwRYkDukb5U0irwzCy3F35AWMCEEFfpqoHg=; b=cG6EGnoJwMZV5gF4FDuV8xi2JNW1EeIlxkit+aMkr842EY+a+XPoI5qd/PG6W3NnYLYcsg whCXy5VsZTue/+7OyNlXtigQwcbcIfJNkk4YZ+TYGoo03DtxHPFamX86tdpnv5WvYxDw0M qUZE2BcEToDZy2WIP6p1Zku0VzT3yIE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-471-4dsRX-caNIOhJKOCZNHbZg-1; Fri, 11 Jun 2021 10:34:37 -0400 X-MC-Unique: 4dsRX-caNIOhJKOCZNHbZg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 39F401926DA0; Fri, 11 Jun 2021 14:34:36 +0000 (UTC) Received: from RHTPC1VM0NT (ovpn-115-17.rdu2.redhat.com [10.10.115.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4F0786064B; Fri, 11 Jun 2021 14:34:32 +0000 (UTC) From: Aaron Conole To: Stephen Hemminger Cc: Owen Hilyard , David Marchand , dev , Rasesh Mody , Shahed Shaikh References: <20210610143604.48278bcc@hermes.local> Date: Fri, 11 Jun 2021 10:34:26 -0400 In-Reply-To: <20210610143604.48278bcc@hermes.local> (Stephen Hemminger's message of "Thu, 10 Jun 2021 14:36:04 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=aconole@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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" Stephen Hemminger writes: > 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)? +1 CC'd the QLogic maintainers as well.