Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1180705imj; Thu, 14 Feb 2019 02:32:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IZrqJVkGk7CPLflRUJxptKvAPsBV/PveIQzN4BfAb65TaVUQCou4LPvnZpSk+agP8VN2O6z X-Received: by 2002:a63:2ad4:: with SMTP id q203mr3125309pgq.43.1550140330264; Thu, 14 Feb 2019 02:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550140330; cv=none; d=google.com; s=arc-20160816; b=T6aEQ+Q8wmaBV34wSiGSuiFce3nmuy1erN41lYzMPOx2bX0lR5cmallcJ9nOQsNxW5 l14c+5j6gIN5rTh4o/GUYDEjIE6qrk6Kvzzv/TgVWUniO/ws685qeo/NuzCxYXSRFsbL 5VOJZM0ku3tWVFwdP9oWDKZPzbLLxNz/PNpgUPLbXKdTo0ygjdWPlzs5Q/nsPgDJhoL8 sDAfF05js4vKmW8ADxcqtHTuD5qjq8fn1wWnmPEslkg9A0OjYVXouNyAHShJoUuNf9pv becRcnIRxcQHrDxiCMJixIGY7qkNg51t+slHOgT3ExMSHomXb2HztIc4vTqlepINqfbz AcNw== 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=yWztxODyJk70cOjZaLMqULYccaSLR3ZRrSr0GSnJD8Q=; b=EjopIWbYFULTMKzUnMketc/9ltdrnndT14HaOnkfyIKEtjBzQ29yl1/Qy40bcojt0y EIBQNpRMV3z5kSMQWjTAORVtqXpgLgHumSqfvotaEdSCVyD7xGOKwegeiA7zcM9oTqPN AIlhNOHMH91ND18a3iVL2qOEwRU2HbHazLuYaILpC/abJqpxA3WR8EEXXPsAH4QmUOBY 0u2FQUBcwC1ZNkj87YYs25RJBtfiK+DK8zwRlBDKfNtR7H61GfhiPsnu2ZWKVXECSPng znF8Zdv2oHDl4zl7UE4MoE/gjHVFtrLUZUse53wikbYkArocZ8d2XM2YqMGb7Q+3E8LQ i6Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RLOAOGsE; 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 g8si232297pgb.128.2019.02.14.02.31.53; Thu, 14 Feb 2019 02:32:10 -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=RLOAOGsE; 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 S2404694AbfBNCKp (ORCPT + 99 others); Wed, 13 Feb 2019 21:10:45 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:36082 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404352AbfBNCKn (ORCPT ); Wed, 13 Feb 2019 21:10:43 -0500 Received: by mail-qk1-f194.google.com with SMTP id o125so2722220qkf.3 for ; Wed, 13 Feb 2019 18:10:43 -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=yWztxODyJk70cOjZaLMqULYccaSLR3ZRrSr0GSnJD8Q=; b=RLOAOGsE5nSbSM6/Fdwv4fbbCUUDxoH87XcZiZPt8XPUpEg2LeQDlKEdX9eejNMth4 D5sjkt3JIQB0/O4sBhzjI4Xv7TxMEI42fBR97qAQ9cEEOuR65FFVZMWXkwlG4nqVNzAA EfPJTUnOXNxNhhGH/5tgmpP6UVQJQzNHJNQG11QqTJiwiawxa4GLUSjj/KP/VFlVej/W VH/WPb8HzrrPBx/qXezHkdtF475W0RFdZVJpXxwJlA2vwLfNvMv2HhvzF+lq3iAEzPht kZ6B1lO/XSu80dqNSmIygnLp8yzaVcaN/IW8WA1AkCzfWWk8IfZjAPiFnb07WJNIi7Cs hoKw== 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=yWztxODyJk70cOjZaLMqULYccaSLR3ZRrSr0GSnJD8Q=; b=ZfIWKDjA6jujmuJP+5uVeQVWvRIT6FvH8DcrTNE70Ip1pI6OAMIktB8mAgFNdwrZO2 gtfPma4SthjAi0WuvrCe/WQ8vqzZo5+4XCzFJdUJgYr8AsuR63e0k70UXBCDqB2HJaxh 0GGWnP31A4JG5C6Id+n8xy5+dEUixQSrNcKh6OpNgMFS4E9Dwp9SyLCo/7Dcn7S1wbFZ csbHaZ7z930Q7XNnQqyLtz9lPnvkV5t5bH2DCQSz7wc0Ptjr8rYfpn+/3/qrG5FeKJdV GrditHdbxqtxUzu8+YleIx+rARja7r0oNW0XFd5gZf8gvyHTmX+3k4ka+ZxPjr9qvMHI pfxg== X-Gm-Message-State: AHQUAuZmRuopRc220HIdeM8iyJHlaKuJnKkKAmxNBg+Ixpv0aSJ74Zo4 lW6+yyEpryUfj0ZpNaoOSpYYJA== X-Received: by 2002:a37:b405:: with SMTP id d5mr980783qkf.162.1550110242675; Wed, 13 Feb 2019 18:10:42 -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 d63sm1091575qka.22.2019.02.13.18.10.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 18:10:42 -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.14 V2 13/17] ARM: clean up per-processor check_bugs method call Date: Wed, 13 Feb 2019 21:10:18 -0500 Message-Id: <20190214021022.5313-14-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214021022.5313-1-dave.long@linaro.org> References: <20190214021022.5313-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 e25f4392e1b2..30c499146320 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