Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2082925iof; Tue, 7 Jun 2022 19:09:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU+g1am0PEqN0q25rDjZ4ITK+qfh9ByRin98bqKjQ/hyWMEsbHqnZcCtxNWLD1hoB4MLUW X-Received: by 2002:a17:90b:1e46:b0:1e6:826e:73ea with SMTP id pi6-20020a17090b1e4600b001e6826e73eamr34658000pjb.68.1654654152358; Tue, 07 Jun 2022 19:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654654152; cv=none; d=google.com; s=arc-20160816; b=nqUp/78iPdIn52kC56xtr+76lvDxg3put/1ctpJY5UrVL2cB3C2jNnDpdk54c/x2vz IUu6b1rIa1kVjClXyY5owTsUKROLuCnruloEgzjJovU5fNyGg3MbWwdecZ4L46D9obNo SGxw1DUPe16U2Lffzu+a6brE9YQfe2zeGaDuGBg8L4HY1/zcUjT7LxexlOdxLCfNntKG gsZ2wHg0yLGbUyeKKGU0DnuYbAc2+lMP1dELvL8OU+S2PdVRja1dOAdM/QM3rKNYX8qG ZYxmwBuk3VRPDvYa1DKG8qLUiYQO41KSYmHlS7mf6lQCvImTrdiMT9sAGGS0nc53rvQo tKfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=RnhvD/3Q0HNJqJjK1/vBFuaJS737z26vA8xha5UNgNI=; b=ij5yAgr3JdNszJuVULoN1ZPM+F5IZ/uORMBWOle2pHOe0doS/WeQIxjBKbXUdoIeO1 xKIT3KHbKGFWzk0JBHVeODI15DEVxn2/YXPnitPZufveJtbg16wLlI78XxelH+5FfYok jgp0qNvQYbpLdW7SfA1+7F38BNE37PhEzShrj663qB4T8aMIZco8JzwhBpuvFuztZYBN wStPREIHFVDcpLcGHwrN4ZCv7W4G3pVqYPXsJB/zc4qDG36WwchYhwffanGThnIuQi86 iUmaYkKiZOmQAhtPHxvL2XwemUFsTwkBEF+A/8GQsld6No5F88X3BN069XTBpCnE/CAb sLnw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i10-20020a636d0a000000b003fc48964390si13789867pgc.613.2022.06.07.19.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 19:09:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 49BF8317161; Tue, 7 Jun 2022 18:44:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237229AbiFGQuj (ORCPT + 99 others); Tue, 7 Jun 2022 12:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237110AbiFGQuf (ORCPT ); Tue, 7 Jun 2022 12:50:35 -0400 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F4C43464A for ; Tue, 7 Jun 2022 09:50:31 -0700 (PDT) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4LHbvT0fRrz1qyc6; Tue, 7 Jun 2022 18:50:29 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4LHbvS6s9Wz1qqkC; Tue, 7 Jun 2022 18:50:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id OzqzI33oF718; Tue, 7 Jun 2022 18:50:28 +0200 (CEST) X-Auth-Info: 1g4T+5031Hi3noBMLzrRy6buVNpO0fY89VJFB5X85JarwVF+T0y/Y419JziLBmyf Received: from igel.home (ppp-46-244-165-19.dynamic.mnet-online.de [46.244.165.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 7 Jun 2022 18:50:27 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 87E3A2C39FE; Tue, 7 Jun 2022 18:50:27 +0200 (CEST) From: Andreas Schwab To: Geert Uytterhoeven Cc: Dave Airlie , Linus Torvalds , Daniel Vetter , dri-devel , LKML , Arnd Bergmann Subject: Re: [git pull] drm for 5.19-rc1 References: X-Yow: Where do your SOCKS go when you lose them in th' WASHER? Date: Tue, 07 Jun 2022 18:50:27 +0200 In-Reply-To: (Geert Uytterhoeven's message of "Tue, 7 Jun 2022 12:22:41 +0200") Message-ID: <877d5s2zak.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 On Jun 07 2022, Geert Uytterhoeven wrote: > 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] That shouldn't happen here, as hexadecimal constants will be of unsigned type if they don't fit in the corresponding signed type. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."