From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 01 Nov 2019 21:14:23 -0000 Received: from us-smtp-2.mimecast.com ([205.139.110.61] helo=us-smtp-delivery-1.mimecast.com) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iQeFR-0005Hv-BG for speck@linutronix.de; Fri, 01 Nov 2019 22:14:22 +0100 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B868C2A3 for ; Fri, 1 Nov 2019 21:14:14 +0000 (UTC) Received: from treble (ovpn-122-227.rdu2.redhat.com [10.10.122.227]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2534810016EB for ; Fri, 1 Nov 2019 21:14:13 +0000 (UTC) Date: Fri, 1 Nov 2019 16:14:11 -0500 From: Josh Poimboeuf Subject: [MODERATED] Re: [PATCH v2] NX build fixup Message-ID: <20191101211411.4tsxl7oiye7igo7e@treble> References: <20191101163150.z7qlfwp6vai3ttp5@treble> <20191101203859.GA10998@sec> MIME-Version: 1.0 In-Reply-To: <20191101203859.GA10998@sec> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Fri, Nov 01, 2019 at 08:39:09PM +0000, speck for Tyler Hicks wrote: > From: Tyler Hicks > Subject: [PATCH] cpu/speculation: Uninline and export CPU mitigations helpers > > A kernel module may need to check the value of the "mitigations=" kernel > command line parameter as part of its setup when the module needs > to perform software mitigations for a CPU flaw. Uninline and export the > helper functions surrounding the cpu_mitigations enum to allow for their > usage from a module. Lastly, privatize the enum and cpu_mitigations > variable since the value of cpu_mitigations can be checked with the > exported helper functions. > > Signed-off-by: Tyler Hicks Acked-by: Josh Poimboeuf -- Josh