Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3529070pxb; Mon, 4 Apr 2022 20:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6wvhng2pJk0iXRFt2Wf1PDZ0ShCqb+eB0bJC57eqW49bdUJ76m+nQ8OIl3O1/2Q6Ti9tX X-Received: by 2002:a63:6a04:0:b0:398:6e02:60d4 with SMTP id f4-20020a636a04000000b003986e0260d4mr1061917pgc.509.1649127841769; Mon, 04 Apr 2022 20:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649127841; cv=none; d=google.com; s=arc-20160816; b=Cz/O0kBDy4HC6bCMgju9IRyA9QdEU8HLopO3fj49s1pOrMWo6IdynyUU7TOO0dxyHv 8wGY8ED5n701uc/LrujFFPJqfzsTxJAa30cQttjvhSuSdeLlS0DsCIg2q7PESzFTubY3 q7FBURdR0cVBtJI5GQPxy7QJtZFNvbd9BFjLbzDE0WB1K2Sy+PkjODk+5rC+cWVQngSc /d5aFZIXwAgsMeuKy+1sY21wB3oyLJgLeP7OtigWapAiuGl7/NRDQsFpV51akToqEnhC sfMr9SnFsfbPWp5l/KWafqNFTmOvy479Oho/xoxOdCYjJpHDhGNH1GvLgffLCgaSZjYD xxJA== 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:dkim-signature; bh=0d7Lm3Nfq8vbKY5cOsivkRl3TUfMD96ByCU0pXJf8Rg=; b=pBS7a0StM4gWXNFSIjc6i3eN6R4h+Xo+zRmF94oMRUz5WoSKIE95kvpzEgwcOMtUNA nN9Ydrv39irY7lVUq1opY/920J+Nd3UvnyMFWUzQwYEnkoDTbjzX+P96LkMWKol4XBUO ITWfZjJV35ELQI9mh+yCTctnuiNn9zRWqs2BsY1QfpQNYTujtPuxiqXss0wqj2HAkwLu Q57P+6CIJ0Qv+5p6zlKwCTZ+10j+DjBd219ee9RgsUAAmTPlt7A7AJ3RuFyCJrLu+Yx+ XtyeYZRPOQiFGz0STBZMHCweFffwtXBkrqB0CJJgri4R+AQf3zB+BhgFL7nJnad1ssrm jhkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dVZOYMCN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k2-20020a63ff02000000b00383f92e1f96si11224979pgi.79.2022.04.04.20.04.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:04:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dVZOYMCN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4BFB3331D36; Mon, 4 Apr 2022 18:28:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377012AbiDDDb6 (ORCPT + 99 others); Sun, 3 Apr 2022 23:31:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237999AbiDDDb6 (ORCPT ); Sun, 3 Apr 2022 23:31:58 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90C1E32EC8 for ; Sun, 3 Apr 2022 20:30:02 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id e16so14763224lfc.13 for ; Sun, 03 Apr 2022 20:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0d7Lm3Nfq8vbKY5cOsivkRl3TUfMD96ByCU0pXJf8Rg=; b=dVZOYMCNYVbZdQUv/6fck2MjgKW2NHEUS9guds8X9XRmxc3M1zMZyeINasWP1GmkTf gl6x/9vMdkaftthvtkQwNT1ScXDNdpfXfDkSzZ2H+JOPlgh3TpluJB4HDfrafwuzErG9 OcSbpw/Nn6NdEIe3jcAXzn947O6Qo2gAtiV2o= 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=0d7Lm3Nfq8vbKY5cOsivkRl3TUfMD96ByCU0pXJf8Rg=; b=1nNvXoZB7QfKI4SJzCXQxx+DZzCdGjUtu7yHQD/j/y7aKEWpPC6DVXJ6K4bGx0eA+C qtRj2JopKD7bD5xwe2yk3e7xOBKZBsyWvf+/yXbrMtza3R3nwscBSP+Bwc8JTkfCpWZJ 2i78pbTxAJB3IXJ+uhrX2GV9G5Izl6j4R+V5gXWrI5U7fY0DusNUV3MgyqrCkT5Pd2xA 8qxlHRdm1UweZtFNj9HlddFXy74SueKMaePZ9XNh1IgVkTs1Cr4BwI2tUG0iVQX/iTH4 v2WArhkxtvq/7+mp7ddKYpJlLV2wBHzxQY8vG8sVKdSsp74arp/blxga2Eg0MZjMwLa9 fjeg== X-Gm-Message-State: AOAM533zw5/imD1VAx8wRiL5cjetAwKMWxN4tU4B0/yNqo3qBr324eCR aTFRORbo8nnSlPRxcDEPmAVyABj/10rCav4t X-Received: by 2002:a05:6512:b19:b0:44a:b7c4:3d94 with SMTP id w25-20020a0565120b1900b0044ab7c43d94mr18064165lfu.358.1649043000587; Sun, 03 Apr 2022 20:30:00 -0700 (PDT) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id e8-20020a05651236c800b0044b075cfe89sm192962lfs.148.2022.04.03.20.29.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Apr 2022 20:29:58 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id bu29so14924916lfb.0 for ; Sun, 03 Apr 2022 20:29:58 -0700 (PDT) X-Received: by 2002:a05:6512:b12:b0:44a:ba81:f874 with SMTP id w18-20020a0565120b1200b0044aba81f874mr18280486lfu.449.1649042997395; Sun, 03 Apr 2022 20:29:57 -0700 (PDT) MIME-Version: 1.0 References: <20220404022239.GA1186352@roeck-us.net> In-Reply-To: <20220404022239.GA1186352@roeck-us.net> From: Linus Torvalds Date: Sun, 3 Apr 2022 20:29:41 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 5.18-rc1 To: Guenter Roeck , Larry Finger , Oded Gabbay , Jiri Slaby Cc: Linux Kernel Mailing List , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Sun, Apr 3, 2022 at 7:22 PM Guenter Roeck wrote: > > In function '__nat25_add_pppoe_tag', > inlined from 'nat25_db_handle' at drivers/staging/r8188eu/core/rtw_br_ext.c:479:11: > arch/alpha/include/asm/string.h:22:16: error: '__builtin_memcpy' forming offset [40, 2051] is out of the bounds [0, 40] of object 'tag_buf' with type 'unsigned char[40]' > > Exposed by commit e6148767825c ("Makefile: Enable -Warray-bounds"). > Fix at https://lore.kernel.org/lkml/20220403123628.3113382-1-linux@roeck-us.net/ Funky. Apparently nobody else does that pppoe_tag thing, and this driver does it wrong on little-endian, which is the common thing to test. Your email that you point to is a bit confused, though, in how it says "when building the driver on a big endian system such as alpha". Alpha is little-endian, not big-endian. Now, why it apparently only warns on alpha, I have absolutely no idea. It should warn on other things too afaik, since that tag->tag_len = htons(MAGIC_CODE_LEN+RTL_RELAY_TAG_LEN+old_tag_len); should be visible not just on alpha. Weird. But your patch looks correct. > Building arm:allmodconfig ... failed > Building csky:allmodconfig ... failed > Building i386:allyesconfig ... failed > Building mips:allmodconfig ... failed > Building parisc:allmodconfig ... failed > Building powerpc:ppc32_allmodconfig ... failed > Building xtensa:allmodconfig ... failed > -------------- > Error log: > drivers/misc/habanalabs/common/memory.c: In function 'alloc_device_memory': > drivers/misc/habanalabs/common/memory.c:153:49: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > 153 | (u64) gen_pool_dma_alloc_align(vm->dram_pg_pool, > > Fix at https://lore.kernel.org/lkml/20220401151450.3414694-1-linux@roeck-us.net/ Gaah - both of those "(u64)" look pointless. Either the thing is a pointer, in which case that (uinptr_t) - or just (unsigned long) - is the right thing to do, or it's already an integer type, in which case castring it to (u64) just do do that phys_pg_pack->pages[i] = ... assignment seems entirely pointless. So I think the patch should also remove those pointless (u64) casts. Yes, yes, the pages[] array in 'struct hl_vm_phys_pg_pack' 'pages[]' is of u64's, but casting integers like that is just silly. > Error log: > drivers/tty/serial/mpc52xx_uart.c:967:23: error: initialization of 'unsigned int (*)(struct uart_port *)' from incompatible pointer type 'int (*)(struct uart_port *)' [-Werror=incompatible-pointer-types] > 967 | .raw_rx_rdy = mpc5125_psc_raw_rx_rdy, > > and many similar errors. > > Caused by commit 18662a1d8f35 ("tty: serial: mpc52xx_uart: make rx/tx > hooks return unsigned"). Reported at > https://lore.kernel.org/lkml/20220403153607.GA3644508@roeck-us.net/ Jiri - apparently you didn't convert the cases under CONFIG_PPC_MPC512x. Please, people, let's get these silly problems fixed asap, and not have people unaware of them and fixes pending until much later in the rc series? It was painful last release, let's not repeat that mistake. Linus