Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1089620imj; Thu, 14 Feb 2019 00:48:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IYGoC4AbQ6I1QPuutUCG9dXFRe/MgSiqjOBTFL0pYfY9mDzwaMWRdUlir6p4wMpDnfjfCEc X-Received: by 2002:a17:902:a7:: with SMTP id a36mr2916724pla.295.1550134112082; Thu, 14 Feb 2019 00:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550134112; cv=none; d=google.com; s=arc-20160816; b=NM0tdwEVC5T1MEcsKZsipfu1NIqI+Puz2sgf3U+geciEkTqlQ+RtTr/kuu2KOUzZHD SYOir5AgwZIy1xBzsSpUb9RblYiETwF2MOvrBE2RqTLj2xEkRsni3GZsWxUJn/BaIzI4 hpf/+teDDXUbaXUW5dbupyCTurcl0F2/QNwBVbTpX38VBK7OMbT2YRZyRM7qotvN1tFb 1Xex+DGZQ/BjSgKROZ8m07B7ao7Np2v5whCQymF1CxNAYgsP3gSvGj/zGKbzeQI30hqS OacI2hmcUV2+zUnpmxF8RZ70IN6RuZRVL1DGFHsjMtwi/ZND5b7QVIiDS8cvf6zJfsoR DwqQ== 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=KlpYzAjkcsXAu0It0RBBz8NFHPufsGLnwHmaRMOQyuW4QxqjcZ/B7W3s2pG0CCl+G+ rGf4PiNMFVTezDWH08JgMGEnFH1FYYKw40+UO4pjnIuj6VELTJB7A8CFT9XeL1dEbrfa BiGtQBaZoWAnGR0nacTBkqlpoac3+XMS7hXxpX4W1BSvs2tINyhocmzd+x/jBSIxAMYb 5QnTejrFG1f78qnFhWBdF8dfsJv4JMA8dBtuykXFtOYeEOpt3UteZPyx2MtDfVgf4Fqr Br/6ZkHxcHMfnofi4QInvo3at+QJxQOqWHx7JZ5wNnm2p1al2+R6aX/xEliIZurHCbhB Ga7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w4LDUYdI; 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 g3si1763826pgi.443.2019.02.14.00.48.15; Thu, 14 Feb 2019 00:48:32 -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=w4LDUYdI; 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 S2436833AbfBMVcu (ORCPT + 99 others); Wed, 13 Feb 2019 16:32:50 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:40411 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436795AbfBMVco (ORCPT ); Wed, 13 Feb 2019 16:32:44 -0500 Received: by mail-qk1-f194.google.com with SMTP id y16so2336560qki.7 for ; Wed, 13 Feb 2019 13:32:44 -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=w4LDUYdIBqi9i2H0zziVwl6xNlsb4JOGyxns0NY9Sc4Sp2k3RVUCaQDCson84MAuNS dRrE+nsabr/JWzpawl59qNV0Rj3XRFptqCq7GHaFyFep2yisjAv/8tQyTPg9CURB+5Vy f+CSRuDeeOTu4XfRZsxf8pgRoyd0Y0TtogDnA1QSohGyrujR0FYqxQ1RsRukw/Se6Rcu c6P2wxurSjaA4iTmYvrHrE7mJxjK/kneUktI/h5rl3XsZK5n+QpdYw/aC5gvjhbJCNd2 n/IPbUKeQ8Zg9s4j9q7qpLRPTkX+c9bVuTCuam0GKeyiGo3vBe4BH753ytTMXL5oj0FH TLCg== 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=SWoX43tVMITQXhKW53zF06IEhvmHTETIzPqFLepxpUYtHQOtjfS6BosJYDqnSRiBaU da3FJx0uQyV6c3SMxLSFRGLZKTMec3NA1Tag9bUzTqQQPKdteBn7W5tuRv7A+Y6Jz/Oi oJyiGByfsd9Vw8WJPUL68uSM6t5/1gm5Bi263kmovL16ibi4IyC4tJG1s3eYLB+k0Wj8 CJTPkTxi8ZVE32c8SqodSiFql5c3tPnus6T4OQ224JoKfY8d59JlsgdvHTrc7uPjPXiE FOeYXaXXz6nFbsAF2A2YPgTBwrH84BsiBwuRZzMrpzGAktE3MPN0ccPK9gz3/N2puIBW YqnQ== X-Gm-Message-State: AHQUAuZ5X2mqBSKNiUujvoRpiKwx3fTIlP0qwstR/gLJKsxPYJXsvkxC QXz6BcladRMAHece3bAqvG/+6Q== X-Received: by 2002:a37:cf9d:: with SMTP id v29mr189595qkl.259.1550093563621; Wed, 13 Feb 2019 13:32:43 -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 8sm382675qtr.7.2019.02.13.13.32.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 13:32:43 -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.19 13/17] ARM: clean up per-processor check_bugs method call Date: Wed, 13 Feb 2019 16:32:19 -0500 Message-Id: <20190213213223.916-14-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213213223.916-1-dave.long@linaro.org> References: <20190213213223.916-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