Message ID | 16cc80ceb76db7e889b16a3d9b8c45ae821087de.1560480942.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1505547ilk; Thu, 13 Jun 2019 20:12:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqza6Hx/T8/dq1m9SG0N4hdTIFAZ3nNKwoarDTSxE3leS54SuoBmNToC9B9od0v78mlhiSNX X-Received: by 2002:a17:90a:9201:: with SMTP id m1mr8808611pjo.38.1560481950079; Thu, 13 Jun 2019 20:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560481950; cv=none; d=google.com; s=arc-20160816; b=D7QDpBp0mRmYOFjW3VNR8+4olVL9lLXHinkfcLr2ykc6BSaoNUVzmCOLcdsaOPUF4q y8mdIh+gL2ZZEk95TByitQR5thnuUg0DPro/WCjiE3HFmh5TNcQVgr6biXVTechDXj6I YiIT1kh7UXF5WucDsBa8Ji7ty9vRadaGrePUbnCKz51YsqyiIItaUlBP8kitngPYY80X adXmv2zQu0Y/dugSif98JWsnc4l5nPeplggL9mKPzvyqAGhqguzHCjXq9QsA0pf53ocU mIKa24Xn+jwA3EcR87WGovM68AkbqzdR5aZ1R7kC1IsXHjxqNUQLhSfBWmoZICCpJA2k kmOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+VnHrOqiLyuTpal1o2zRenzQv7xKEdgOssME91mwrbo=; b=qb4FxIYoxG7IhFlohurzUjwyylKfu2XtaF4cxbh1ndHaj+0udOoW/clbdH3Ygj8Xd/ hhVX+u7d0rooLMEVBXbNtPadvlRSenSXlly6/P1UGlP4QY8IuYZv2ozS0E5U73AxSbDs DkDCjAWeHCWEODzHeF7YzghuuaNFO3Sf1Qz4jdPbKxRO7XhfOVIxfIgTgrQsHiKZLnQ4 vTiEll/9PCNYzle7I/cFp610zJ9Xj5SNIDevpk1ZiLVa9yAdDbgA9XQbOMUjhVOk8N8G DNLQY6NreDm81+BiTZHWrwzhBtxBUFiyBvQJ80ojdks0uY+rvdW9jVrnhrClOSfhjS+e kBvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tb47hPFh; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si1073936plb.420.2019.06.13.20.12.29; Thu, 13 Jun 2019 20:12:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tb47hPFh; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbfFNDM3 (ORCPT <rfc822;matthew.hart@linaro.org> + 14 others); Thu, 13 Jun 2019 23:12:29 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38683 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbfFNDM3 (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 13 Jun 2019 23:12:29 -0400 Received: by mail-pf1-f193.google.com with SMTP id a186so495527pfa.5 for <stable@vger.kernel.org>; Thu, 13 Jun 2019 20:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+VnHrOqiLyuTpal1o2zRenzQv7xKEdgOssME91mwrbo=; b=Tb47hPFhrekRIM/B4VddOaEWndYWU2Mpfbs111lRorm/o8pnyAoKX5rwgAtdbh9Ccw fwb7GLYKgWUtNl8cQJpMYeOvZoNMd7Wu5qd7n6wAz1atAQo8t+VQSLxOEhz9562am+vj VWg/seVR9qMm30yB3daUKfVvrwvi/YkYDymDHYZ4mYYiUQZPdeBSQdGrFz/nxMizP2tH yYxcEWqg/Jga4CVq0WCtbo1VV+7l2YAP2pyZw6FikYnWiH76f1YfzGyFVJNfVMaAVbWA Y3N6VH6UYvlE9futQG+BB1WPjVZ3xk0qI+pY+L/tJrJ2Z6UndfT1oaEkJe4T3EbTckEH vF3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+VnHrOqiLyuTpal1o2zRenzQv7xKEdgOssME91mwrbo=; b=rfbRmarPQuM3S3wsZpoyOI/Pz8aBcFPoha/Kx4Pe+FxW5+EgjSmtDqrFYA12bkJIIW nrBg9pa/lt8EMKdwhy7jyiKGMMHeGti/X1kEr6xxu+zRrWFmzImWcYNNGx7s9abK81sW dfPqvO03aBYe0KFlMXegFua1IH9Gv11dTrhxp1HIhWin8KZ58XqRKxGcIiu37qnOYx/d JHsHgHYgvxeadwKywLfgg9mVoLVP/G3XoLdd0dlvJ/JY4nsL/KGIGjMlxTQFsjJeJzov rbJutFt7Yn3CkrfOqY7FBlDM7dTOEpLgWXbd/4/3heyT4NfHdSYt/cpCmeQREMhMk0/d ntVg== X-Gm-Message-State: APjAAAWCHtLSZ0WLAcNlGbu1DeCKzhJ6o8jwLj4cStJnpBXAJf8/YZFU +w6aqoGZJZrGRcHu3Ts4vejq5A== X-Received: by 2002:a65:4209:: with SMTP id c9mr34462297pgq.111.1560481948541; Thu, 13 Jun 2019 20:12:28 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id g2sm1165232pfb.95.2019.06.13.20.12.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 20:12:28 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: linux-arm-kernel@lists.infradead.org, Julien Thierry <Julien.Thierry@arm.com> Cc: Viresh Kumar <viresh.kumar@linaro.org>, stable@vger.kernel.org, Catalin Marinas <catalin.marinas@arm.com>, Marc Zyngier <marc.zyngier@arm.com>, Mark Rutland <mark.rutland@arm.com>, Will Deacon <will.deacon@arm.com>, Russell King <rmk+kernel@arm.linux.org.uk>, Vincent Guittot <vincent.guittot@linaro.org>, mark.brown@arm.com Subject: [PATCH v4.4 13/45] arm64: cpufeature: Pass capability structure to ->enable callback Date: Fri, 14 Jun 2019 08:37:56 +0530 Message-Id: <16cc80ceb76db7e889b16a3d9b8c45ae821087de.1560480942.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: <cover.1560480942.git.viresh.kumar@linaro.org> References: <cover.1560480942.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
V4.4 backport of arm64 Spectre patches
|
expand
|
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index c1eddc07d996..c7a2827658fd 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -780,7 +780,7 @@ static void enable_cpu_capabilities(const struct arm64_cpu_capabilities *caps) * uses an IPI, giving us a PSTATE that disappears when * we return. */ - stop_machine(caps[i].enable, NULL, cpu_online_mask); + stop_machine(caps[i].enable, (void *)&caps[i], cpu_online_mask); } #ifdef CONFIG_HOTPLUG_CPU @@ -894,7 +894,7 @@ void verify_local_cpu_capabilities(void) if (!feature_matches(__raw_read_system_reg(caps[i].sys_reg), &caps[i])) fail_incapable_cpu("arm64_features", &caps[i]); if (caps[i].enable) - caps[i].enable(NULL); + caps[i].enable((void *)&caps[i]); } for (i = 0, caps = arm64_hwcaps; caps[i].desc; i++) {