Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2911535lqp; Mon, 25 Mar 2024 12:49:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXw6V5+V50arPVeRTnkt87wXi9acJ22BNDAoG+5bEVmUHlFssLwPmmswTjTEGKe3obOAe5BQ9yRUxDppsG+yDt3OHw8wNB34bfof/fECw== X-Google-Smtp-Source: AGHT+IEGpo5iPilPxD8J/Lqxji5Jw88qKXJg9msUmsZy1gnxpq7Ro42o06gKlfzRIJBHU9ciupnj X-Received: by 2002:a05:6402:34c6:b0:56b:f54a:8120 with SMTP id w6-20020a05640234c600b0056bf54a8120mr5742523edc.0.1711396152920; Mon, 25 Mar 2024 12:49:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711396152; cv=pass; d=google.com; s=arc-20160816; b=RLfD0nm1SSDrZX3AE/KnrYqDgaTOERITPJLVmBZQnimNohSq3p9Qn09HBZlmnukn2H Nqjp0iDKvgo6453Z8hNluLWs0fE5fQlBUxz3JwZ0ksNMNQMn2nrVQYkX8muGh9EfpUWH 1iwTyvuM7bU2dU+JGjUndlhon4o5BZjbfaFUo2zmF2vTqD2PJEv6QV+8b8hhhtAnGmTn 3MAnWTAYH83iP4af/LQywvTq7XB0ourA/NyNHCQVSLl6vQDhbBsLnWiKM/7yyPvZpPCU XbmBiVC7hZngZNVBP30A9fWHu2ldwm55+1e9M2/6TtiXwFDAwUJsPGgJ3RD/SSkKDhdw dyRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=fmfRQIJ2f4eWBwdaZN8dSz4H2KFzejxhDJGkcx0CRVs=; fh=fYSqdQ18cSXkIsiliTWX73p/58dlDavPFQM7Yx61dkE=; b=ZN/I4VjFjjxzt0nOLBRO8P4DLsq+X7nJkaBv4XIIzJKqHQJV6JlDdwRHsyFsrb1yV6 38I6GD5il/4iEiMwsZDZSRS2tud9/08ES1kGk7guv+b7Lwfhw9cOZkcZbuIQl8SXf+xw WGVUSKzYwV8sUkh52opDwvd0XaU604ZSAr/72AlQrSGkLpx+BdjNiR/SH6lBrcSAk1eu DgZeK4Swe1YcAcpH0krQipNbOkZW7O/UCnh7my4V6otRNwY845uIZyrl8luTahbE/PLp bXSW4/oqtusw5GGbT/oWUorPYkbCBWEGoOai2zS9iW3cV9Gk4qSpPLewqntobUTFzZ+s 6eFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iHMC0nOX; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-117849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q23-20020a50cc97000000b0056b9efb2407si2884188edi.432.2024.03.25.12.49.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:49:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iHMC0nOX; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-117849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 209861F638C7 for ; Mon, 25 Mar 2024 19:48:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 182E91F5E4; Mon, 25 Mar 2024 19:47:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iHMC0nOX" Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89EDA1C6A6 for ; Mon, 25 Mar 2024 19:47:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711396074; cv=none; b=KENJGdTZlLrFnMnzkqxRZqmfXpdQw4m71LVinPgIwk+76OlUMNAaAhWt0Wz/oCIngiNtxvSWERiYl4DHTE+xjrdX3fX26Z6zTyQTHL0gwH8K56811+APpu0uKYx86GyMFCD1Msnjgt/5PMYwQ3yiPTzpWT1kS552LfxRHExr9V8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711396074; c=relaxed/simple; bh=E1JT7uTAje0LoirQMcLPjl330yK5VeuDvvFl0ILtbvU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jp6/jBa5zclGOFUUMnm9iIdv/6FW/Uuyb5/rOKAvl+raX3BiUcgo3fzJfcSd+C+gi5gflK3SXmo9Y8WP9l5Oosd08LjE1reqOa+wBYXNUj6bVioa5f+uRz3Y0W+fuyYNMtqvgEf2XDj1e7jElIuo1YexA55YD8UzxSNEOpk582s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iHMC0nOX; arc=none smtp.client-ip=209.85.215.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-5dbcfa0eb5dso3607256a12.3 for ; Mon, 25 Mar 2024 12:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711396072; x=1712000872; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fmfRQIJ2f4eWBwdaZN8dSz4H2KFzejxhDJGkcx0CRVs=; b=iHMC0nOXxC/BUk+dC/BK2S6xJvZofR2RT12fTX181VbbqfR3lAZB3kGGHnqxAKvia8 jfEjvJVDnD1hsJrsrQvvhq7WkLfmGZxH8uFNA2jz2kpDQtbvXURu33nLMjZ1rRKtVhsg 1x+TD/rV0yuNSeN+j13/MHykC/3AOoKwJdKoztCKT4UJJaQMzUNKcYRKDxisbt+7lrT/ 5QCAbMO5d9C41ESTzhDQdC3cXHV7SHbePVSORAOGUu2ZFrM1BfGEfKKSpgWnUmkKOYQj +JVP5brKBgb8/V7BYt4g0RvQUbIpjyP0PU4UnooR8REftzURe2a+PNaCv+jEL1ycTwV8 OGfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711396072; x=1712000872; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fmfRQIJ2f4eWBwdaZN8dSz4H2KFzejxhDJGkcx0CRVs=; b=gEHOA7EUP1zHXyVz1AVsFrKd7zZad73P7jZOyU2YfdJVT6p9F2JmrPzfHhaNSEuNVy lWzvOQQGoTZPScnBSXsMa9CVKsCjMYX5JoI6Z4bFd1D9mQRTUCNg0uPufFyuHIzWp+VW XQd83qF1eyaB80e/IPnhp5F+0T4qX6EK54By0gil6O0uJc4Dik/J/bnrmHWnIz0WUBqj ujRhBNiv373IJ/dYAgK90P/Fk8ajNUE7yhiYptdfPuNwpx9wxnEEnU5EYpt062tJr0cN AUiiLkPyFd0F1yY+kvjnVkVE/o/i/C6rl7fV9TJpoYCF71khPC6wyfcONYtTUeH39bIP Vc5w== X-Forwarded-Encrypted: i=1; AJvYcCUg+Gzng2tDHkkS2ivwXJwUByd/KUmAGsRWYr7ar15RHyCJQyo2o+bjWYKIajEFKHGWUchuKiHdQb1OEVwjdjVeNXrTK1R77Xscs7O+ X-Gm-Message-State: AOJu0Yzw05CnINbe0HUoPZGjXFdIMXRj39VGKXrnQ1BrrpBPV0hv9bkv 6Zy+DJTP71SGD2hzobTDxii2+1iMXD4TpX8xIvghO4xxTgU4hEGWlDmbbXNoetxLkFKZuz/P7o4 2EcXxPtbFhRD/uv6Fq3YkYkHDxamxPn7GxZ8qFw== X-Received: by 2002:a17:90b:241:b0:29c:7592:febf with SMTP id fz1-20020a17090b024100b0029c7592febfmr726518pjb.16.1711396071839; Mon, 25 Mar 2024 12:47:51 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325120003.1767691-1-sashal@kernel.org> <56d3285a-ed22-44bd-8c22-ce51ad159a81@linaro.org> <20240325181410.GA4122244@google.com> In-Reply-To: <20240325181410.GA4122244@google.com> From: =?UTF-8?B?RGFuaWVsIETDrWF6?= Date: Mon, 25 Mar 2024 13:47:40 -0600 Message-ID: Subject: Re: [PATCH 6.7 000/707] 6.7.11-rc2 review To: Sami Tolvanen Cc: Palmer Dabbelt , Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, florian.fainelli@broadcom.com, pavel@denx.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello! On Mon, 25 Mar 2024 at 12:14, Sami Tolvanen wrote= : > On Mon, Mar 25, 2024 at 11:43:48AM -0600, Daniel D=C3=ADaz wrote: > > Hello! > > > > On 25/03/24 6:00 a. m., Sasha Levin wrote: > > > This is the start of the stable review cycle for the 6.7.11 release. > > > There are 707 patches in this series, all will be posted as a respons= e > > > to this one. If anyone has any issues with these being applied, plea= se > > > let me know. > > > > > > Responses should be made by Wed Mar 27 12:00:02 PM UTC 2024. > > > Anything received after that time might be too late. > > > > > > The whole patch series can be found in one patch at: > > > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux= -stable-rc.git/patch/?id=3Dlinux-6.7.y&id2=3Dv6.7.10 > > > or in the git tree and branch at: > > > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-s= table-rc.git linux-6.7.y > > > and the diffstat can be found below. > > > > > > Thanks, > > > Sasha > > > > We see *lots* of new warnings in RISC-V with Clang 17. Here's one: > > > > -----8<----- > > /builds/linux/mm/oom_kill.c:1195:1: warning: unused function '___se_s= ys_process_mrelease' [-Wunused-function] > > 1195 | SYSCALL_DEFINE2(process_mrelease, int, pidfd, unsigned int, f= lags) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ > > /builds/linux/include/linux/syscalls.h:221:36: note: expanded from ma= cro 'SYSCALL_DEFINE2' > > 221 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name= , __VA_ARGS__) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~ > > /builds/linux/include/linux/syscalls.h:231:2: note: expanded from mac= ro 'SYSCALL_DEFINEx' > > 231 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > /builds/linux/arch/riscv/include/asm/syscall_wrapper.h:81:2: note: ex= panded from macro '__SYSCALL_DEFINEx' > > 81 | __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) = \ > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > /builds/linux/arch/riscv/include/asm/syscall_wrapper.h:40:14: note: e= xpanded from macro '__SYSCALL_SE_DEFINEx' > > 40 | static long ___se_##prefix##name(__MAP(x,__SC_LONG,__= VA_ARGS__)) > > | ^~~~~~~~~~~~~~~~~~~~ > > :30:1: note: expanded from here > > 30 | ___se_sys_process_mrelease > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > > 1 warning generated. > > ----->8----- > > Yup, I can reproduce this with ToT Clang. It looks like the alias > isn't sufficient for Clang and we need to add an explicit __used > attribute. Can you confirm if this patch fixes the issue for you? > > diff --git a/arch/riscv/include/asm/syscall_wrapper.h b/arch/riscv/includ= e/asm/syscall_wrapper.h > index 980094c2e976..ac80216549ff 100644 > --- a/arch/riscv/include/asm/syscall_wrapper.h > +++ b/arch/riscv/include/asm/syscall_wrapper.h > @@ -36,7 +36,8 @@ asmlinkage long __riscv_sys_ni_syscall(const struct pt_= regs *); > ulong) = \ > __attribute__((alias(__stringify(___se_##prefix##= name)))); \ > __diag_pop(); = \ > - static long noinline ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_= ARGS__)); \ > + static long noinline ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_= ARGS__)) \ > + __used; = \ > static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) It does: the hundreds of warnings are gone. Build-tested with Clang 17. Logs, configs, binaries, etc., here: https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/daniel/builds/2eC43= UtTjYk6loC9pNKT28SGmd5 Tested-by: Linux Kernel Functional Testing Thanks and greetings! Daniel D=C3=ADaz daniel.diaz@linaro.org