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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70F09C433EF for ; Tue, 9 Nov 2021 16:47:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4271E60FED for ; Tue, 9 Nov 2021 16:47:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4271E60FED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wYyymCe0o/FwRkk5BCv3SjlHDOhqd7JE05wNWqwh4/M=; b=0hLnoO3uYHPb3b l6WyyCnCmVMZLp8/5RezUizDC4iupsEFWXvtkYt/ory1CCc/Dt/rZzET60aT1IVaqyeKJmU9HTmeU tMhbwjMraPSayJsUMpqW8Ljq03zYN7tPGcR/OQ4I9Vip9XdM24xC5W3hFixztfHdxZiOzKVlF/fWJ 9lP96ke4uoamGp5OdSkH9TqAERO+gjeZ28mwqkDeqaf+LOoQEiYkh6YOat0q/6SMEd1W117uqWED5 2PWsLEyik2hXXwPKvdcpBS0GfZy5gphz/D52HMfaeUu7kjztSttIMjR3OQp6nCYQY6n4UCyU3KAHq l7t/9OUEAZFnIx3lWbNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkUGK-002j9n-6J; Tue, 09 Nov 2021 16:46:20 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkUG8-002j5I-OA for linux-arm-kernel@lists.infradead.org; Tue, 09 Nov 2021 16:46:12 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4954E60234; Tue, 9 Nov 2021 16:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636476368; bh=7mn3/Rzgs0AY9qDCuvn0WhLRmfJQywPw9A8MRDDKzLU=; h=From:To:Cc:Subject:Date:From; b=j6yw2Ps7uuFlnMGF0owr7OGP80m62VT+w0TM2iomPo2uDkg1kTL0SRyeL3mt2a65F bLFfWW/U2YlV0Qn6VM2XkVKdySdSDRuze4fOBhcB0SW5vD77E8XDbSrOMvu5BQ8E2F qvCxyqVFxjSMX9fdCYeOF0JjLEThic83ZbtcZQJXkHwWY0JOgdYCIgJa6+jY0SvTnT hIIKnmo4IVhGcaMWYeZLIGirS9lvrt59qeAzE03e1gaVrfn/gl3bsHJtigzGR+WtH/ AZIW5ZRpzGMJ/ru4B1k6b3T1lpaR3iSd2+oGSeq6+OU0whz4NzllZBpMQDlrGtRguW Ii+9VL5BhXP2Q== From: Ard Biesheuvel To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Peter Zijlstra , Josh Poimboeuf , Jason Baron , Steven Rostedt , Mark Rutland , Kees Cook Subject: [RFC PATCH 0/7] static call updates Date: Tue, 9 Nov 2021 17:45:42 +0100 Message-Id: <20211109164549.1724710-1-ardb@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2171; h=from:subject; bh=7mn3/Rzgs0AY9qDCuvn0WhLRmfJQywPw9A8MRDDKzLU=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBhiqWtdRyFdrqkl7Sd3XUJ9SOKDd1pSdhC9TrPDDe5 rN0/E46JAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCYYqlrQAKCRDDTyI5ktmPJAdPDA CwXhR4xwEapGvcZK4fNMZFehNUvYIv3ZQsaYUL6iMrcu9OD+SFcRwv94D3QGQhWFazkcJ1Pk9PIlxb PTsV/1U0LffZZj2Qk7iXErj6YwB1+99oVGvk5qDoZRg4IasHhTITiQ2lgXWxqyMTCDpBMztL9r+l0H C3l6cSLQc5DNfm+Db+WXJMVH6TTwIcZ4ITjKCmAoG485mzUDUyyk7jevxZPjtJynceOGnpIRJrb4Dq 4fsiermi8hm/nxblWPZ1wZvt1wWo50yNz076qsgI6akY0FFceGBWMhYcXhy+yKCNZFUedC6vugBLNy Uf7IW7TZGIymPe0vfT+aR/89f0T9snG1KZjdRqbtjOOve24nO3x0RKyHQ25hgOeXcqr8k4s4GQKJUU IGHDpuVLwvquqfBH+3UVbveQ/2/wWx4T0ZHRKB/lp+yVNE4XFecWUetjnFrJ5YtRZZNohIsRfVwvbd +Vx8jrsmk7geL4tmsIUzmpLbfiTW2eU23wjujvnkAMsZs= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211109_084608_859925_24B43887 X-CRM114-Status: GOOD ( 12.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series addresses a number of asymmetries and inconsistencies in both the API and the implementation of static calls. The aim is to ensure that the documented API is fully implemented and works correctly, regardless of which variety of static calls the arch decides to implement. Another goal of this series is to ensure that the caller of the API does not need to choose a particular kind of macro depending on whether the static call exports its key and/or whether the static call in question may implement the NULL flavor. Cc: Peter Zijlstra Cc: Josh Poimboeuf Cc: Jason Baron Cc: Steven Rostedt Cc: Mark Rutland Cc: Kees Cook Ard Biesheuvel (7): static_call: get rid of static_call_cond() static_call: deal with unexported keys without cluttering up the API static_call: use helper to access non-exported key static_call: fix broken static_call_query() for non-exported keys static_call: use non-function types to refer to the trampolines static_call: rename EXPORT_ macros to be more self-explanatory static_call: add generic support for non-exported keys arch/x86/events/core.c | 20 ++-- arch/x86/include/asm/kvm_host.h | 4 +- arch/x86/include/asm/preempt.h | 4 +- arch/x86/include/asm/static_call.h | 6 - arch/x86/kvm/irq.c | 2 +- arch/x86/kvm/x86.c | 10 +- include/asm-generic/vmlinux.lds.h | 5 +- include/linux/kernel.h | 2 +- include/linux/sched.h | 2 +- include/linux/static_call.h | 117 +++++++++----------- include/linux/static_call_types.h | 54 +++++---- kernel/extable.c | 1 + kernel/sched/core.c | 8 +- kernel/static_call.c | 29 +---- tools/include/linux/static_call_types.h | 54 +++++---- tools/objtool/check.c | 43 ++++--- 16 files changed, 174 insertions(+), 187 deletions(-) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel