Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp777806pxp; Fri, 11 Mar 2022 14:53:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUOdByvcZtLmoRMRNA8y31v7TAPH6x8dqNtjIm7mHuqVdo37ZKZFV78Pooj7xGuZDf4MBb X-Received: by 2002:a62:18cc:0:b0:4f6:fdff:5440 with SMTP id 195-20020a6218cc000000b004f6fdff5440mr12412014pfy.35.1647039229705; Fri, 11 Mar 2022 14:53:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647039229; cv=none; d=google.com; s=arc-20160816; b=dbkHzF9AdE27/BGIBOwSNgsIVOZ87w1m4t8Zz8UzLlKuNsmBIj6VxPSHZK3p7BXx2X xgBr1YBBni176Bgz6RCYIFQP7UO7aG/awYVujFoOCwYTT2XYwaCHB+DFrNPF3Db/fWEd QbBl2dHRhTZNWf70AcFKR1hH1zpJYm/c5/rUMZBclFMykU6H07f9kZShKR9i+A0vgduH go+E4Ov4HGJcXuHESbxULYPn5IdXi/dr33wk8itU/GDdbBPqzx8vD97wpRSOTc1f+3t0 ii0QfOIUeRLj1k7w9jTixs0NfNGsWTFIp8jqotjkwlyXqM+jnrTPHHCFjaZMaplswhQo OUPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Aq3TMBOFCfpJGlYnfuH0Up8vmk4Xb4+iQbh/HTw69s0=; b=kz+ZVOBJmQl1sKbcZyQ1DsDBRzIoER0GJrfB6Ow8J2O34vpVZ3Afg/Un2/fNQ84Gg+ da4IdaQsFeVNQCgG2omC2X8zVxLbJTgflvqK6vcYVhaClkZrn1LzCnhOAwgUuU3U+Rbr bzn/nnFmUWTaWucm5V8RId1SFeMkBUPtfhYzDts6PFxRQ2SV7zjByhZRRUdsi18rsBLk ACH/pha9bPlmnv0crnSP0MegXZICWecIpN52H5G+ZoXWpOgsKuEx6rJA6jpHdk0n0XR/ Vf5hVu4HBUb8htNSh1XuOzmFVSVC2jC3wG+JwZkqqtM6qulei9drgd/xqN4LPNeLy2EC +w0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=kQZ1NKSD; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z10-20020a170903018a00b00151bcc06439si9449375plg.347.2022.03.11.14.53.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:53:49 -0800 (PST) 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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=kQZ1NKSD; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A90E83100F0; Fri, 11 Mar 2022 13:51:59 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351107AbiCKT3n (ORCPT + 99 others); Fri, 11 Mar 2022 14:29:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237286AbiCKT3m (ORCPT ); Fri, 11 Mar 2022 14:29:42 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBDA49A9B1 for ; Fri, 11 Mar 2022 11:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Aq3TMBOFCfpJGlYnfuH0Up8vmk4Xb4+iQbh/HTw69s0=; b=kQZ1NKSDAm707BTZIin0qUI1SE qVPOKbmgKl332kr/d8GUt/cBGkPmCnvK+kDv6fXn+kIqkbQHeqZjbYItg4j+WD6zOOaHRkTOy4oJg c6fzt2E/wLCQtzj0iM+oXdcMbP8vJvX+TIPaorlF8vuqX1Cvpnj8kuT6L+faHBaUUsoduvRjPyM9c REDsopn4yT7qib4RxQJhIL04JN401sQLdXYTzqqa8cJwgHE8dEGZsVE2p9hAyE6XXw/P9DzeqMc8m j6FSo8u/Wfv2xxsuKkmVBo5wr52xfUsagFHUmMmz30ItYv95YNQLzqDZn2wukzFhhfeeg1NxexE/d 2Jm+cySQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57808) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nSkwF-0000ZN-72; Fri, 11 Mar 2022 19:28:34 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nSkwC-0001td-Pq; Fri, 11 Mar 2022 19:28:32 +0000 Date: Fri, 11 Mar 2022 19:28:32 +0000 From: "Russell King (Oracle)" To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, kernel test robot , Catalin Marinas , linux-arm-kernel@lists.infradead.org, patches@armlinux.org.uk Subject: Re: [PATCH] ARM: Spectre-BHB: provide empty stub for non-config Message-ID: References: <20220311191820.25771-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220311191820.25771-1-rdunlap@infradead.org> Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 Fri, Mar 11, 2022 at 11:18:20AM -0800, Randy Dunlap wrote: > When CONFIG_GENERIC_CPU_VULNERABILITIES is not set, references > to spectre_v2_update_state() cause a build error, so provide an > empty stub for that function when the Kconfig option is not set. > > Fixes this build error: > > arm-linux-gnueabi-ld: arch/arm/mm/proc-v7-bugs.o: in function `cpu_v7_bugs_init': > proc-v7-bugs.c:(.text+0x52): undefined reference to `spectre_v2_update_state' > arm-linux-gnueabi-ld: proc-v7-bugs.c:(.text+0x82): undefined reference to `spectre_v2_update_state' > > Fixes: b9baf5c8c5c3 ("ARM: Spectre-BHB workaround") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot Acked-by: Russell King (Oracle) I'd suggest sending this direct to Linus as I've been doing with the other fixes for Spectre BHB. Trying to fit it now into a pull request is just going to be very messy. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!