From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22F92C433F5 for ; Tue, 1 Mar 2022 20:54:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9F9CC8D0002; Tue, 1 Mar 2022 15:54:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9A9428D0001; Tue, 1 Mar 2022 15:54:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8975F8D0002; Tue, 1 Mar 2022 15:54:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 7AFCD8D0001 for ; Tue, 1 Mar 2022 15:54:50 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 46B0721E58 for ; Tue, 1 Mar 2022 20:54:50 +0000 (UTC) X-FDA: 79197021540.07.2A0B219 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by imf29.hostedemail.com (Postfix) with ESMTP id 87F6B12000F for ; Tue, 1 Mar 2022 20:54:49 +0000 (UTC) Received: from mail-wm1-f48.google.com ([209.85.128.48]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MfYDO-1nrcdk08Yy-00g2lm for ; Tue, 01 Mar 2022 21:54:48 +0100 Received: by mail-wm1-f48.google.com with SMTP id bg31-20020a05600c3c9f00b00381590dbb33so2137271wmb.3 for ; Tue, 01 Mar 2022 12:54:47 -0800 (PST) X-Gm-Message-State: AOAM5318ltdJ1qV++UM5DTl6ENdIeh7EGV40+/S6Ebnzd7jlGUxLMw3U tW9BDCW0pbgAkxzwDecXw4j1EYOlfXa/Ns8WYG0= X-Google-Smtp-Source: ABdhPJyfexIsGrgwygzot8G9sKT9XjsIQsKTtfBymt2kmTT/NR84Ozb3Ztyvv7y1MPCl2UVcmgGXd7qIz2qyYblVz+s= X-Received: by 2002:a05:600c:4f8e:b0:381:6de4:fccc with SMTP id n14-20020a05600c4f8e00b003816de4fcccmr7841096wmq.82.1646168087390; Tue, 01 Mar 2022 12:54:47 -0800 (PST) MIME-Version: 1.0 References: <20220301075839.4156-2-xiam0nd.tong@gmail.com> <202203020135.5duGpXM2-lkp@intel.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 1 Mar 2022 21:54:30 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/6] Kbuild: compile kernel with gnu11 std To: Linus Torvalds Cc: kernel test robot , Xiaomeng Tong , kbuild-all@lists.01.org, Arnd Bergmann , Jakob Koschel , Linux Kernel Mailing List , Greg Kroah-Hartman , Kees Cook , Jann Horn , Linux Kbuild mailing list , Linux-MM , Netdev Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:bqqFJxo04Gcv6m+uCxDIBCrKX/z0Qx98+hZ82qGm5dUOYnjPTg4 R6wEuAHjxAdMThmnC0N2WyJ5fo+ueC4YeBBTh2MrrBeswiDYnbvsVVvzpq92lm8YjBe1jf3 d75j7zNrBdtU3kSxAQ3ITTLrczIpU5OPmj4OTJL8nlORwkRcN9Em9HbNaHRBpOsAQSmlW88 HkfcuiSDsbyvmLE8U97aA== X-UI-Out-Filterresults: notjunk:1;V03:K0:1JutnmACv6o=:ozLdwQtxOxC7CCTUGYf/b7 RA8DGtDEeyxORpck7srPEhqsL87hiKOW14Qq8c+aq8GQ4mDMlB8vOn2mFaY5l5Lt/UQWPKR/O DeatdxntvNZ2GUt770e/ECgCSuU55I/FEztGGE7eSaQSMOQtB1xJ1KfVb0YYPvwA2NUaWrj3e SvjqRPIdGhwN1M4c7c1Xdf3E67PVlFKFk+GTGLXAAADwGOil9x7lnM09jrwGx+aSuG5ewNkQJ IItTL1peksbUuOCXWXFG/0TgCSlK9lizHZJZnSdncBStwUQiOFs9q76kAeLqy88XKfBgMAarR oiEJ+DvbNf+nTneSDYFPpPoTLbLs38Qionq7KAyvWPubRkEoZyBpWWjO/iAsPTWQF3y7LB619 Cw8Z6Vij5j6rZznqsUGRjuAfygkH9GGdOhimzjCNak266g3V9RF3ZYU74SFIesDp01x19LbK9 LzRRvzHtMLFZdRA18dimaYdwx2JtvHFyVHZjNb1QUkg4JTJKT17lU/t3Z52dKRMJaq3iNfhqs 87Rezi4eAE4k79H3+LlxknEtP0d/XZHHD+jajEUWBqhfV7StwWxmQA/1rWNsUOZHR2uBL8r7Y caWfxnPSOfB22X2GuAiWiVFECPmqvtvL9woxRV6G78WdsnzE4RY0XhKEn2W0kmK0f4GHfHilq FB6uR+h1yqfplBjPOWoToLqa8bitaJgF3pQX2XZbA7o3/S/vdjdBuzPl9ZYDTPm3ZYb8= X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 87F6B12000F X-Stat-Signature: 4akoa6u3qqcce9f9aqhzqwgqmo183eac Authentication-Results: imf29.hostedemail.com; dkim=none; spf=none (imf29.hostedemail.com: domain of arnd@arndb.de has no SPF policy when checking 217.72.192.73) smtp.mailfrom=arnd@arndb.de; dmarc=none X-HE-Tag: 1646168089-887487 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Mar 1, 2022 at 9:16 PM Linus Torvalds wrote: > > On Tue, Mar 1, 2022 at 10:00 AM kernel test robot wrote: > > > > All warnings (new ones prefixed by >>): > > > > >> cc1: warning: result of '-117440512 << 16' requires 44 bits to represent, but 'int' only has 32 bits [-Wshift-overflow=] > > So that's potentially an interesting warning, but this email doesn't > actually tell *where* that warning happens. > > I'm not entirely sure why this warning is new to this '-std=gnu11' > change, but it's intriguing. ... > > Is there some place to actually see the full log (or some way to get a > better pointer to just the new warning) to see that actual shift > overflow thing? gcc-11 only shows the one line warning here. The source is /* PCI CFG04 status fields */ #define PCI_CFG04_STAT_BIT 16 #define PCI_CFG04_STAT 0xffff0000 #define PCI_CFG04_STAT_66_MHZ (1 << 21) #define PCI_CFG04_STAT_FBB (1 << 23) #define PCI_CFG04_STAT_MDPE (1 << 24) #define PCI_CFG04_STAT_DST (1 << 25) #define PCI_CFG04_STAT_STA (1 << 27) #define PCI_CFG04_STAT_RTA (1 << 28) #define PCI_CFG04_STAT_RMA (1 << 29) #define PCI_CFG04_STAT_SSE (1 << 30) #define PCI_CFG04_STAT_PE (1 << 31) #define KORINA_STAT (PCI_CFG04_STAT_MDPE | \ PCI_CFG04_STAT_STA | \ PCI_CFG04_STAT_RTA | \ PCI_CFG04_STAT_RMA | \ PCI_CFG04_STAT_SSE | \ PCI_CFG04_STAT_PE) #define KORINA_CNFG1 ((KORINA_STAT<<16)|KORINA_CMD) unsigned int korina_cnfg_regs[25] = { KORINA_CNFG1, /* ... */ }; This looks like an actual bug to me, the bits are shifted 16 bits twice by accident, and it's been like this since rb532 was introduced in 2008. Arnd