Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp97951lqo; Wed, 27 Mar 2024 07:57:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJVWp7sPgiNOVoI1xHJxy7u6ooW02khiV1u7yi1kBHOWgFk8pFT3IZ5P2vlY6PFglRmz7Uj31Z+T+Y6RDQ28Vs3aFhUPNDf7eaBcK/OA== X-Google-Smtp-Source: AGHT+IF7FAnQwf9YNnF54RtExnhVohtJFs9RA9j0WvHj+FujOIfds2krG8SPVangxSigwLTCUZJz X-Received: by 2002:a05:6808:1991:b0:3c2:50c6:f14b with SMTP id bj17-20020a056808199100b003c250c6f14bmr121110oib.43.1711551445182; Wed, 27 Mar 2024 07:57:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711551445; cv=pass; d=google.com; s=arc-20160816; b=s6JAiD3DM8j30iGgmBKr8nF3ulcMykwaq2WnrzklMqcxySaV7lt9aE17VHytp3GBzG JI/4xfQXPisAnCWugO55Fasln0ypMRU9WUVfNSZITv7TbxKWbRvfEPF4dMZ3lSyGWFVi 7LWHtEwifne8WqmT1yHyTth6J4NP6wm5Z1Y0V0WeKu/fq5QaUId0EHesKsqLhfIAIqoj 5Ync1hUqrRYR3Lk2dUKChr/v2gxtx+ZCq7zMYsIlR4n2ucjDxUs7ENQnO6osvssbQuy/ XLIT8TJdO1c/jkTsSSPK59VhEzCvXkB+DG4OmX8ZMWTqka0uRKCj9V9W2tFWJsh+ecFg cO9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=S/yr45/0HAap1PwYbnIlwtsvrkBDjJS4f+v7VJ7hhVI=; fh=zsdyOGvbStUOXadHNZZSPAhtleiqNxz4jwFv97byP4o=; b=c+JePItCMzm4hkMZTH3XDptD1+tGW4rKtfX3tFFK7nS74PnN1sFA1TA5HoYqlXplmi pMBzjrnC9Ry7LscvZH46J2mqMQSjUKcFIVB7BlgYDzTXDozVGg7V5xEfJvYnkZ5DJH16 R0PcYkdujPVdfkQg2co4My0b6vHCwQOplIbc6mhCHvx3Ow5WFIhNSHONHHWwOMV7sEFp FeAx0GRhZUwmsoeBOdbndsRWVmkgfGXd4UM9fpFLk5222wI+mroa+nlun6nr5Czsmw1B QA+OpNi5oYN090jpuRaZTg1wGfMPoFVAMaWYppWqllQWziUW2En5rLhy9421ZXJszvI9 fA4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iZydgAPJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121399-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i18-20020ac85c12000000b0043183bf7aecsi505969qti.53.2024.03.27.07.57.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 07:57:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121399-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iZydgAPJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121399-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A7741C224CA for ; Wed, 27 Mar 2024 14:57:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C180A1422CF; Wed, 27 Mar 2024 14:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iZydgAPJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6BCB130AD1; Wed, 27 Mar 2024 14:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711548030; cv=none; b=qCB/jORB++LSxOUFMuWIHC9zFG1rbHuDnnLgLrABItB1CIswfyeAIO3mBQJoA4BHQyBSa+dReoRpuDf5Pg7BMhb5dH2xHV/T8EDqKDY+WunwLaZ5L8VvFMxc8yM0CMpnZyA9VWeNZY4iczivaQgpDNzp+BrlLgpiyagWc+xxBFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711548030; c=relaxed/simple; bh=Tll+aW5UzZK8YuZZkR7WzGfMayybv0KNwJ35XBtg264=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=OZBtTuos5UMwenz/2TOQ32UkHea8eARszwlypEGVy8n4KbNyi5wvzy5XsJM3pby+4h0fsaH/IN4zk9aeqj/fFryEszMVXtAzG9p2eDA3oyvPysfQ3CDyQN1QhWu3/gAHuGBOSrix5x2CAUBeT3sUPiWYbEUdUbhMxveca7RBuuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iZydgAPJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id A32DEC43399; Wed, 27 Mar 2024 14:00:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711548029; bh=Tll+aW5UzZK8YuZZkR7WzGfMayybv0KNwJ35XBtg264=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=iZydgAPJiAxrATGtcqgLHPbZOX6sT0pFQmn0g7mCn4hqM10pueEU7b2S2taaIm3CH YSFJkpMB34qGgjVQ7l5nFqE0YAThCVWE0upVMd4HJhX2jXLYIH90qe+jigXCRAcPQt VeL8cqclWL2glzQJSY0wNf2kIAuRKpAJc+xIRsdoxhX/g0fmWrY6nmcsFwiMDolP9s rEPiUPY71B+P6kfDrSDO3R+ghvaMeN8sP3HMWCAI+yx5amyEMqrbX3XhjVsBjEpZH8 +XDzjj2zP6iRwhsuu6zZbY+YWNoU//UOEhcIyrcjY1NV3PbsVy1eMbrm+lmhTOn22+ t3Y1RPIZsIBvw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 944D3D95070; Wed, 27 Mar 2024 14:00:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] riscv: Mark __se_sys_* functions __used From: patchwork-bot+linux-riscv@kernel.org Message-Id: <171154802960.9827.16527899722264043993.git-patchwork-notify@kernel.org> Date: Wed, 27 Mar 2024 14:00:29 +0000 References: <20240326153712.1839482-2-samitolvanen@google.com> In-Reply-To: <20240326153712.1839482-2-samitolvanen@google.com> To: Sami Tolvanen Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, keescook@chromium.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, lkft@linaro.org Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Tue, 26 Mar 2024 15:37:13 +0000 you wrote: > Clang doesn't think ___se_sys_* functions used even though they are > aliased to __se_sys_*, resulting in -Wunused-function warnings when > building rv32. For example: > > mm/oom_kill.c:1195:1: warning: unused function '___se_sys_process_mrelease' [-Wunused-function] > 1195 | SYSCALL_DEFINE2(process_mrelease, int, pidfd, unsigned int, flags) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/syscalls.h:221:36: note: expanded from macro 'SYSCALL_DEFINE2' > 221 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/syscalls.h:231:2: note: expanded from macro 'SYSCALL_DEFINEx' > 231 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > arch/riscv/include/asm/syscall_wrapper.h:81:2: note: expanded from macro '__SYSCALL_DEFINEx' > 81 | __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > arch/riscv/include/asm/syscall_wrapper.h:40:14: note: expanded 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. > > [...] Here is the summary with links: - riscv: Mark __se_sys_* functions __used https://git.kernel.org/riscv/c/653650c468be You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html