Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3301452pxf; Sun, 28 Mar 2021 20:47:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM52ynewOh0/kIJcDgGztu/blOVzCxrPAVMXNEPgEEyZYwLDSO9S8mm2wgSb2/OwLaxiK1 X-Received: by 2002:a17:906:753:: with SMTP id z19mr26756766ejb.447.1616989630837; Sun, 28 Mar 2021 20:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616989630; cv=none; d=google.com; s=arc-20160816; b=e3feyLZ5H2bCROF/PCUE48+Y41VadQafK9uuugrpeD+XvhyWUPqcly9UILg0Qe1wjh m8Fs0bCVOpFLrLMErWOI/2jUcdsauhnYQrcLZaT3dws4CSfY6A3Tmddxq6/IcmAiNwLf OSMwVW5hYIeBkEC389J3NgGFntWUsm2RcF0MyqGQFt2GfV7REcrdVFzv8n+Nv19nx0Eo xBJa/oexjdhom2gokxmdkVHcuOVJaJM3qVxIjQm0SUanhLpz3t0BikufzqqI38B/48Nj OMPf8Cnh/gt6xPi3xrsDHRkGTljWI4V2r6ysinV6RzcsLI68v6oSH88mBJJxEH6013E1 QgOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hEEynPmnGCeU4nXDfYwB3e+fKRLUuCUFHx+ViFXn5jI=; b=uZ6ZlGZlGC39MoMswjke5dbT+xHRQ/enaJAYZst/wxV4FxJi/mXa1ndzDwefw67cF5 ujfsqv4IAbK0FXiN/8Oka6qn+iDPDuF2+Slfbb+dPvolttgnQfzE3N5oEA2b0pcf2meQ QiK4RAcjcayKRWb382Cdf87fyKZ4zU/fTiFhJ1CnOSNDBhjC7WWr7omUXJWrymw48cYd V9yGxtd7rHHRabEQbOqMqPsJjHmFbD8QxGm2bjGngsI+2NEjY0+tLCPOO6l5GfUhuY4j 6K6qYyXunNgIqpahl1ATTXmbGwUak57k0garbwSGN5hl3Agd5ps2cQ4vOAmiNwfELvEG nxFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si11701205ejy.55.2021.03.28.20.46.47; Sun, 28 Mar 2021 20:47:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbhC2Dps (ORCPT + 99 others); Sun, 28 Mar 2021 23:45:48 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15368 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbhC2Dpd (ORCPT ); Sun, 28 Mar 2021 23:45:33 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F7z273cjpz9sJy; Mon, 29 Mar 2021 11:43:27 +0800 (CST) Received: from huawei.com (10.67.174.78) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Mon, 29 Mar 2021 11:45:23 +0800 From: Chen Lifu To: , , , , , , , , CC: , , , , Chen Lifu Subject: [PATCH v2 -next] arm64: smp: Add missing prototype for some smp.c functions Date: Mon, 29 Mar 2021 11:43:43 +0800 Message-ID: <20210329034343.183974-1-chenlifu@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210328172147.GA19252@arm.com> References: <20210328172147.GA19252@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.174.78] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit eb631bb5bf5b ("arm64: Support arch_irq_work_raise() via self IPIs") a new function "arch_irq_work_raise" was added without a prototype. In commit d914d4d49745 ("arm64: Implement panic_smp_self_stop()") a new function "panic_smp_self_stop" was added without a prototype. We get the following warnings on W=1: arch/arm64/kernel/smp.c:842:6: warning: no previous prototype for ‘arch_irq_work_raise’ [-Wmissing-prototypes] arch/arm64/kernel/smp.c:862:6: warning: no previous prototype for ‘panic_smp_self_stop’ [-Wmissing-prototypes] Fix the warnings by: 1. Adding the prototype for 'arch_irq_work_raise' in irq_work.h 2. Adding the prototype for 'panic_smp_self_stop' in smp.h Signed-off-by: Chen Lifu --- v2: - move the prototype for 'panic_smp_self_stop' to smp.h arch/arm64/include/asm/irq_work.h | 2 ++ arch/arm64/include/asm/smp.h | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/irq_work.h b/arch/arm64/include/asm/irq_work.h index a1020285ea75..81bbfa3a035b 100644 --- a/arch/arm64/include/asm/irq_work.h +++ b/arch/arm64/include/asm/irq_work.h @@ -2,6 +2,8 @@ #ifndef __ASM_IRQ_WORK_H #define __ASM_IRQ_WORK_H +extern void arch_irq_work_raise(void); + static inline bool arch_irq_work_has_interrupt(void) { return true; diff --git a/arch/arm64/include/asm/smp.h b/arch/arm64/include/asm/smp.h index bcb01ca15325..0e357757c0cc 100644 --- a/arch/arm64/include/asm/smp.h +++ b/arch/arm64/include/asm/smp.h @@ -145,6 +145,7 @@ bool cpus_are_stuck_in_kernel(void); extern void crash_smp_send_stop(void); extern bool smp_crash_stop_failed(void); +extern void panic_smp_self_stop(void); #endif /* ifndef __ASSEMBLY__ */ -- 2.17.1