Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83683C43387 for ; Thu, 10 Jan 2019 17:52:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A24820685 for ; Thu, 10 Jan 2019 17:52:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linaro.org header.i=@linaro.org header.b="PfpKYWGJ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730732AbfAJRwO (ORCPT ); Thu, 10 Jan 2019 12:52:14 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:35130 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730696AbfAJRwN (ORCPT ); Thu, 10 Jan 2019 12:52:13 -0500 Received: by mail-qt1-f195.google.com with SMTP id v11so14314890qtc.2 for ; Thu, 10 Jan 2019 09:52:13 -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=PfpKYWGJ4eIZstKw6WStQx39q+x5lfvvjnhDlJf1RtDdVNlVlsZJdz+Oo0CxZKLM8D Y1qxnPoczCvJ+BpwXOuExtG4dVFM4D8il1iP9AXOcnCvSM1WulxW+cpMqBjphQDiFQIO NwMfqWYEdIld2nDLyOahXBO0elYu2C5zdLl84= 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=WPSx418ImxSpR6+ATJDHiQ8Vk5m1XPkwij/ZmvGl9SzYyrRuInMDY32U4AZ/b4X1+l Q+J1eqTijKFFLSMGQ85EjLyjLZg0516nJTNrGXeT3AQm4/6SglVqoS/o3fepkAYBwUpv uBljoPJIZQgbkpnLeAsAMiX3ZubRbyvHEdhwpMSDeVmM74/qA0uL40bMb0mBN3iu+dw3 0F2yT6EY4O8Siu8GNesFZKb48iB+Wgkrc6+2zG01dfIl47YwSW1RGkifLZyGYQLDo1SS i1efTUVsdfgNGQELVwCTEzI/Pcf8+2qxNPgZZljqVex3gAB31j57z9KHG5DwwYdx1Rls 914w== X-Gm-Message-State: AJcUukfX+QU+OwiJKqehpe54RCaM6OUeqdF5p5pSLjyuXf+ctOV08pxO /FlfERvabvMdtZ4Bpa/twZTKBjU8zaQ= X-Google-Smtp-Source: ALg8bN7xvQYniPdbpKztoOl2htQBof9f3rBnevIbzq7Ez5cUZmcV/6QlvpJgxwQARDp40SftShZttQ== X-Received: by 2002:a37:b942:: with SMTP id j63mr10289148qkf.67.1547142732369; Thu, 10 Jan 2019 09:52:12 -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 b8sm41815904qka.79.2019.01.10.09.52.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 09:52:11 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Mark Rutland Cc: Greg KH , Mark Brown Subject: [PATCH 4.14 13/17] ARM: clean up per-processor check_bugs method call Date: Thu, 10 Jan 2019 12:51:46 -0500 Message-Id: <20190110175150.5239-14-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190110175150.5239-1-dave.long@linaro.org> References: <20190110175150.5239-1-dave.long@linaro.org> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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