Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp95825imj; Thu, 14 Feb 2019 16:07:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IY2wUDngjyaHhFRVYN+YbEBRgnO9ri0WuN7gSQ0OOjqTUWaJe2h3/bhCTx3dUtfXycxHFsj X-Received: by 2002:a62:ab04:: with SMTP id p4mr6864018pff.142.1550189257420; Thu, 14 Feb 2019 16:07:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189257; cv=none; d=google.com; s=arc-20160816; b=assRy76osQBhYH7pNW37ZNId12TPZ+NH63q4F9uVEisIQNd0BNflJpgXCgHn+kXEr2 tDhIJzxzmrUKkjPMfTBsX6E0GRULXQwPAwulT+R+z1XmB8coNUxwucUZ/GgMIknyH9Te Gqqz2EpyndMwlsU+zccuHCCRhUGyzuTwGFmaXMFxBKWYrDbx7C0iBcJwd7pFVBKoVHuN dGsBkJNHWrwbeVOG67i2UdaQdVxLU680oZozYxkWBFtbIUDRPLTrmVEySocZKLPrnaUy V/MSTFzNPQQffaWF/pjyNKCyRnVUyBy4gQlBXMyPu7VVmchAOHb/AJdY6JTStpHiXYIs AjCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pAnOVz2Tf8tfyn6B3aYtP2aMoS37wFyp7WQ4pd7h468=; b=oVDpws2pUFbeZty8wBZZq4lwTX0khKnyHuGA3t8dPp3AKCsXWGFSBrUpOt//5obya+ goDRmE8LTfYcpDEUnqos0OxUHr/kXj8HiXKq1wSJcCUxuvNTBIA84TsqrWGmd5cJqlfh cRLdDTiqsw05LWduOjdYqowsSnljJ+XPhbNK1zHHc7NlCNFWcalVfV74rjgtKZIgp1vx ztPY4KHIrb88tSG0z4MxEBXS9TPiQo0H+AQDdXD8pONP5okLaXy15gQNSxaiuSk74zuJ TpnawUj9nURL4slTNo0CIcJY3ktcnlTxkY/Y7dyS3WCd85xAImufCqzxJ6bnKbe1X8Ss MADg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqqa4c05; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si3748203pgk.253.2019.02.14.16.07.16; Thu, 14 Feb 2019 16:07:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=oqqa4c05; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1731220AbfBNOuU (ORCPT + 99 others); Thu, 14 Feb 2019 09:50:20 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:42840 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439342AbfBNOtu (ORCPT ); Thu, 14 Feb 2019 09:49:50 -0500 Received: by mail-qt1-f193.google.com with SMTP id b8so7058681qtr.9 for ; Thu, 14 Feb 2019 06:49:49 -0800 (PST) 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; bh=pAnOVz2Tf8tfyn6B3aYtP2aMoS37wFyp7WQ4pd7h468=; b=oqqa4c05/tE/es628OJr0AKarImUFLu26ac/Z2ZYTTtqFs/psM0+eQUYUQoJofhFkW wD9y+ej56HVjNfAxvZ5nboB/WZMEhObRwTJcRdf8BwMVUZMXaJFbmkjLSE/wHf4LaKgh 8GO1ZBrEBfz63r0DJDKGYYhiSd2VQnxKUOq2at73VFQIFbDKwg9XUgM2RHKH5pzhgKAX t9XmWVZbDhv+TSxnyiFbqZBtYm0QT0GHBNI5XTWOs27srmfzsYzVM32z3DMhBbReLFWF +Y2LQNcgMvio+lC+DxKGCK4wXHbU+SY912+rsCTws1OYuHdW5+F2VlIeNcqU2XzmvF1e vtPg== 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; bh=pAnOVz2Tf8tfyn6B3aYtP2aMoS37wFyp7WQ4pd7h468=; b=n6mof3dpja5N6f7S5qTZq/ErgetvGuhpuxiuRUotB9L3EfIZVy8eyWL07fLR7t0DlF IDh1i9ktlXqL5TgBDLoalA9mgd4Kofh+qBy82vwxOKTfLJ1Fp+DYLASMFdLbYTnXZDbt /328LCkRmTh70lIw9hDqNiazr/fyw7XQ01kLvtg13Mg/fvXqcNhfOnvMK6gEebxkrWo7 h4ZACLgrbcIzukPiWP4BPWx3hERHL3Bj2ZP8n3bKDtDAbsX0A1KkQnU2+OJvNvaH+bmR 9RG+yN/MhkBS/rexJd0yJlVwpIK+W+7wwAPNOfts+EdEpu/VUL4khy/ho+Fi6rjC8XLU hbKg== X-Gm-Message-State: AHQUAuZ5hDtrCJXVIypa5Dq9HBG1FfcEZeQ8xHtAh6T5DRD6ZSLwjwLT qbG0Tn+RJbADatnY6E7oSlxlbg== X-Received: by 2002:a0c:c3d0:: with SMTP id p16mr3259210qvi.47.1550155789277; Thu, 14 Feb 2019 06:49:49 -0800 (PST) Received: from localhost.localdomain (pool-72-71-243-63.cncdnh.fast00.myfairpoint.net. [72.71.243.63]) by smtp.googlemail.com with ESMTPSA id k66sm1498919qkc.25.2019.02.14.06.49.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:49:48 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Greg KH , Mark Rutland Cc: Will Deacon , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 4.9 12/16] ARM: clean up per-processor check_bugs method call Date: Thu, 14 Feb 2019 09:49:26 -0500 Message-Id: <20190214144930.27539-13-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214144930.27539-1-dave.long@linaro.org> References: <20190214144930.27539-1-dave.long@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Russell King Commit 945aceb1db8885d3a35790cf2e810f681db52756 upstream. Call the per-processor type check_bugs() method in the same way as we do other per-processor functions - move the "processor." detail into proc-fns.h. Reviewed-by: Julien Thierry Signed-off-by: Russell King Signed-off-by: David A. Long --- arch/arm/include/asm/proc-fns.h | 1 + arch/arm/kernel/bugs.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/proc-fns.h b/arch/arm/include/asm/proc-fns.h index f379f5f849a9..19939e88efca 100644 --- a/arch/arm/include/asm/proc-fns.h +++ b/arch/arm/include/asm/proc-fns.h @@ -99,6 +99,7 @@ extern void cpu_do_suspend(void *); extern void cpu_do_resume(void *); #else #define cpu_proc_init processor._proc_init +#define cpu_check_bugs processor.check_bugs #define cpu_proc_fin processor._proc_fin #define cpu_reset processor.reset #define cpu_do_idle processor._do_idle diff --git a/arch/arm/kernel/bugs.c b/arch/arm/kernel/bugs.c index 7be511310191..d41d3598e5e5 100644 --- a/arch/arm/kernel/bugs.c +++ b/arch/arm/kernel/bugs.c @@ -6,8 +6,8 @@ void check_other_bugs(void) { #ifdef MULTI_CPU - if (processor.check_bugs) - processor.check_bugs(); + if (cpu_check_bugs) + cpu_check_bugs(); #endif } -- 2.17.1