Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1526290iof; Tue, 7 Jun 2022 07:13:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWnZLRjKR1c2/Vhu8kxCojd5T9Cf9GYJSwnzLn21Au/ophBk8+8rxl2/tCo0jpeh/tl7lT X-Received: by 2002:a17:907:7f20:b0:6fe:f0c8:8e6f with SMTP id qf32-20020a1709077f2000b006fef0c88e6fmr26587559ejc.453.1654611196838; Tue, 07 Jun 2022 07:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654611196; cv=none; d=google.com; s=arc-20160816; b=Nad/m1HfZGIAN056CHfKQfikTZAHnoTIKYQOjOoefVF4JTTZxkWY0Srgq+EASsTnsQ 2/LUFUBj6ypaJE2O9+lkBo+Le6021z8fdtgX2tWe8yeL+PTA6UdTSoPvmQ746g21sole yUyqfYACNpbj0ycQ8VW6JlInwAaBv4KI7uza7/W6XDQYEpT5iQARseoeOqAcrYxKvfkP w/dZwdc9z7Bp+NVt9lqN3dkefUZbtdbYZmIoNnXEilN8OGGt7vk3mIxULZq9ka2Mn+pl o8eCa3eJ7h4pXRd0cFrmcvVPJX5WFYYeabyrCbSmTY5/ooEtl5DEcJS6+rEptTwlFSpY w0Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=ogveWgeE/FVBGqs6VUOZoS5JOHdjSLfC5uSmNP3+Doo=; b=y9t8MQtG/enP+Q82BzXenfAt5NtSh/H6GY0/ukUw8nKYkY01U35DQspmHhWvVxcL+Q UlY67f8pNqGXFGwaRLSMgeTjEAKt1/mQhe9tjESEICjI46AbfsmkxGD79yx1//4IZo5J rS4YYZ1VA0xO1WuZdz9fxrhFIQmoP+cO69aH++XbbMJCEuseGqkZqDKetOTTAbcd8Npz saozR83KJqZ7UISSXVr2O78/uK5EaQNO1HeHNHytnFl0NZKE1xqf4L0dYRKLVoMLkN18 Z1IUnLPkQbKw7TPUgphC3wBNq+hAaN8UslW6uXOhqt784sQyztVGrgdykaQjGQ2OC9EI Dtug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020a05640251cf00b0042dd469b483si12422418edd.146.2022.06.07.07.12.49; Tue, 07 Jun 2022 07:13:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240926AbiFGKXD (ORCPT + 99 others); Tue, 7 Jun 2022 06:23:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240914AbiFGKW7 (ORCPT ); Tue, 7 Jun 2022 06:22:59 -0400 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 163A833E39 for ; Tue, 7 Jun 2022 03:22:57 -0700 (PDT) Received: by mail-qk1-f181.google.com with SMTP id c144so10354140qkg.11 for ; Tue, 07 Jun 2022 03:22:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ogveWgeE/FVBGqs6VUOZoS5JOHdjSLfC5uSmNP3+Doo=; b=RL0Wr/rMa+CC870hZDr+Ysfj5t6qyka+3Iu2uRmYdQzTcFOAujy6T4DM5gxMpVRwZf kYe6jO3vbgsmJ69Q/hMJsnwcHrtZg79vwmJwhFZMXybAPzKp4kbvXNFr1uRGf49gFwoQ kSbaxHeOWQlf4g1HJziF8SfRAKAxEb//Zi1M1FMkd1bGQihjeHZJoolzEu1SIV9xBDva jnmYE0HxQS0GkLt64vMMicpgSZrDIs4wyAID3VdY9JVZcyUISDoxR7pOIILEZ14a5Ijo BwMkBIUrTDQGF+Q+E5Z+yBb4r02+WHymQXJBTiCYPoqWYxWblGi80aFhVWk/aslwBSbu /7Mw== X-Gm-Message-State: AOAM530gZfokwt9lJIuYIVVbf33M7lDza6CxRUUpozMbnDbKZSnCPJt0 8G8077heXzRczIZKgL55zU20rAo8ZNXDGQ== X-Received: by 2002:a05:620a:29c9:b0:6a6:4f4d:637e with SMTP id s9-20020a05620a29c900b006a64f4d637emr18542365qkp.43.1654597376091; Tue, 07 Jun 2022 03:22:56 -0700 (PDT) Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com. [209.85.219.172]) by smtp.gmail.com with ESMTPSA id i20-20020a05620a249400b006a3296726e2sm2939256qkn.43.2022.06.07.03.22.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jun 2022 03:22:55 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id l204so30341405ybf.10 for ; Tue, 07 Jun 2022 03:22:55 -0700 (PDT) X-Received: by 2002:a05:6902:120e:b0:634:6f29:6b84 with SMTP id s14-20020a056902120e00b006346f296b84mr30096899ybu.604.1654597375274; Tue, 07 Jun 2022 03:22:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Tue, 7 Jun 2022 12:22:41 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [git pull] drm for 5.19-rc1 To: Dave Airlie Cc: Linus Torvalds , Daniel Vetter , dri-devel , LKML , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave. On Wed, May 25, 2022 at 4:49 PM Dave Airlie wrote: > drm/amdgpu: add nbio v7_7_0 ip headers These header files are heavy users of large constants lacking the "U" suffix e.g.: #define NB_ADAPTER_ID__SUBSYSTEM_ID_MASK 0xFFFF0000L Assigning this to unsigned long on 32-bit will trigger a signed integer overflow, which is technically UB, and causes "error: initializer element is not constant" warnings with gcc-5 and -std-gnu11, cfr. [1] While gcc-5 is old, the fact that this is UB will probably start to bite us one day... [1] https://lore.kernel.org/r/CAK8P3a0QrihBR_2FQ7uZ5w2JmLjv7czfrrarCMmJOhvNdJ3p9g@mail.gmail.com Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds