Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp927825rwd; Tue, 16 May 2023 09:21:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DL0k+Kr/9zx3OEinkQ21RswYMPlkOsEeyV50/1yjAudb5SexHXgo8klKGGZw+4alPQ/AL X-Received: by 2002:a05:6a21:7891:b0:101:47d8:ff80 with SMTP id bf17-20020a056a21789100b0010147d8ff80mr37145642pzc.41.1684254094655; Tue, 16 May 2023 09:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684254094; cv=none; d=google.com; s=arc-20160816; b=aPUMqN6y16W+nkmxThQNAEwIjSMJJ5nN5I8usa2keF7wWhWMN3BPo4/DkV0dRGRq4Q LgbVgXM24LMGW+fTgQPCzvqtWU3xmKP4Arxaseklb3jVESmBKw8zbXWEFohNq9Dvoz8D ulRFTenkqxtxa3wMWEKaB3kPhK412eMR6kjtH55p2XxXHz7qLXammnFPJwnk0eMFR7u9 sws0oPpDXD6fIMxmhG5CnYot9hMtONnZ/UrtmbB7hfdyjKJZ5wtMud3QImd4aGR8dh4J +eNBHbyGOOtqCE8VF776lOiIWr3h/P1Vaokz4VXGg9c96M1Pt5m7ZRGod8yYvtyCRmVX 28SQ== 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 :dkim-signature; bh=AH5tOVxvwNSUHkI31HjPUeBR1UcaKxudhcDzNjb+oU8=; b=yDrS7TaD88NSZnnBUI0FTTvDaqYBQ2wgpZ2OvARiUBdEaOLeqrGEYgkqdDYdo+cEjb 5FHjtIQgfNqtZzsn+rw8niy94o8qZn5rmqJbeT8u+lrZltLpxK9NtE+zuaG5Sdp67cky ZY/yw9ecRH2Qo0kFJ0PmJg8WFIVvZ4Ngn9gWRu3hAiNj4D5LlCPLhene3EncF0FoH8At 0j9/04SWHBRhTFovvK+RmWeDK0+wQIIlyy7vjHZdrXbVHqGUvP041JtM3O4hlLmzg435 V8829b3GIDyL0sXRATiipfZaCs6a6FftlKTBL3+bh45A+5hZgg4JoEZQqmI2WDP4fRbv udDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G2YspC5j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63dc01000000b0052dcd67347asi15073817pgg.382.2023.05.16.09.21.21; Tue, 16 May 2023 09:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G2YspC5j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234264AbjEPQJP (ORCPT + 99 others); Tue, 16 May 2023 12:09:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234418AbjEPQIk (ORCPT ); Tue, 16 May 2023 12:08:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E64411BF2; Tue, 16 May 2023 09:08:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B70A763BEB; Tue, 16 May 2023 16:07:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C92CC433D2; Tue, 16 May 2023 16:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684253273; bh=h0fpkbLAOr0hALEk6kCEy5MAyU8tR08UpwZWaWzGWr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G2YspC5jTHUuOJUI4EhhBUyFCOOKFZLkbqD8w9Riw21cTSw3fKo729EaQIG7drJkp s7H4r1X18FAn3mK3PbP6eGqd4lmiZwH8emoPTvUbYIZ2yHGKzhg02SuTVrMl6NxFDu Qw5IHyESKe0mBsXwq4sFHGZpnlkrHlm99GnnwZa5monJzLE/ojsflhI390GG4PsKWP aYtkKc/WJRhJc101pMIaAlg60JJ3KO2ri2eJNR19r0Ynt/YelPVvaVbL6CM4fGm1Gn g+KT47Tvzsd/OhDaHS3u7Ruhw4FIwYik84yYUKg/MixP7GzLkx60SAFQuHfrUiphCG DHPcVcgCM29iA== From: Arnd Bergmann To: Catalin Marinas , Will Deacon Cc: Arnd Bergmann , Ard Biesheuvel , Mark Rutland , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anshuman Khandual , Kees Cook , Suren Baghdasaryan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, kvmarm@lists.linux.dev Subject: [PATCH 14/15] arm64: move early_brk64 prototype to header Date: Tue, 16 May 2023 18:06:41 +0200 Message-Id: <20230516160642.523862-15-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516160642.523862-1-arnd@kernel.org> References: <20230516160642.523862-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The prototype used for calling early_brk64() is in the file that calls it, which is the wrong place, as it is not included for the definition: arch/arm64/kernel/traps.c:1100:12: error: no previous prototype for 'early_brk64' [-Werror=missing-prototypes] Move it to an appropriate header instead. Signed-off-by: Arnd Bergmann --- arch/arm64/include/asm/traps.h | 2 ++ arch/arm64/mm/fault.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/traps.h b/arch/arm64/include/asm/traps.h index 1f361e2da516..d66dfb3a72dd 100644 --- a/arch/arm64/include/asm/traps.h +++ b/arch/arm64/include/asm/traps.h @@ -29,6 +29,8 @@ void arm64_force_sig_fault(int signo, int code, unsigned long far, const char *s void arm64_force_sig_mceerr(int code, unsigned long far, short lsb, const char *str); void arm64_force_sig_ptrace_errno_trap(int errno, unsigned long far, const char *str); +int early_brk64(unsigned long addr, unsigned long esr, struct pt_regs *regs); + /* * Move regs->pc to next instruction and do necessary setup before it * is executed. diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index 5ccdba7132ca..940391ec5e1e 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/arm64/mm/fault.c @@ -886,9 +886,6 @@ void do_sp_pc_abort(unsigned long addr, unsigned long esr, struct pt_regs *regs) } NOKPROBE_SYMBOL(do_sp_pc_abort); -int __init early_brk64(unsigned long addr, unsigned long esr, - struct pt_regs *regs); - /* * __refdata because early_brk64 is __init, but the reference to it is * clobbered at arch_initcall time. -- 2.39.2