From patchwork Tue May 16 16:06:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94793 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp543302vqo; Tue, 16 May 2023 09:11:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7F7RVjKfOiquRa5UnpMIHu6chdpL8HeyISHTKNgb/6Z8f2VHfX/a0KYhvkTPCtiSB/8Kc8 X-Received: by 2002:a17:902:e882:b0:1aa:e30e:29d3 with SMTP id w2-20020a170902e88200b001aae30e29d3mr48943986plg.29.1684253483475; Tue, 16 May 2023 09:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684253483; cv=none; d=google.com; s=arc-20160816; b=HL3kG7rS3CmOacWqNEr119kCPaeXeqBFl1ZZltYAsKp5b4cesqQ4P0J669KZtCo6Q2 wOM6HjfkBJAlQeKYDgRzuu0i7xE5ahI+qXg7KB1bwCfxx0T72/mvCCtcjbBdvP9s/8DA CSWZzjympSEdoW4Ofv44FZl33UvxUQ0z681IZxaVjUqR6864o65Ux1SI9lZ4NV3CVPAZ 6PzjioNBGwVyqctRKQKcHJsWoRG3UGnUMD+1VioQRb1/32a77JnQ4t+T6Z0iFZGhHOgG lN52Q7AGA5IZcJad0wmrO4reLDstVzUItcQCKNxa8ax692i/fJhpZEb1Y7+psl3AiUro 06Cw== 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=mXDOGvPUX2RVZJ+3sjoVvEugdEJnFCMWfMlj7NMl9SE=; b=Gmn0yZrp0kIlkZTub5c99xDw+tU5Z/xvwby3RMp+4kM74uUPeZbkArhq6YjFVKK2Tz OoCsS+7jqKwzGUI1rN6C0x/f1kGR6RYzMsoDIEhVQQZ2e3MHRhYfuWsGmG5Y04TtlmCy Nmz/eMv+bmNuBAmaJwferx1V8KlfcrQAAVk9Y/aP6CH6+Mj9rPDXEM6JImRp3cooAutX 3EwUOhCeggit2GerO/W+HfbylVtzvO7DTWh9SlEZuYGvMzbw8ktcnuNGZm/6boJ0blFQ zIr2ZS78w20HcF1w2gjPu17EuEi2nLA3UMXYI9wYAHDdo5FuZP1gKRbgbT6dBuOiG0HV zc7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9U9QQ13; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iw22-20020a170903045600b001a63b8e071esi17639002plb.28.2023.05.16.09.11.07; Tue, 16 May 2023 09:11:23 -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=n9U9QQ13; 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 S234498AbjEPQJT (ORCPT + 99 others); Tue, 16 May 2023 12:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234437AbjEPQIq (ORCPT ); Tue, 16 May 2023 12:08:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB893A5ED; Tue, 16 May 2023 09:08:25 -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 C07D863BF7; Tue, 16 May 2023 16:07:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1A42C433A4; Tue, 16 May 2023 16:07:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684253277; bh=BD0ipDsRhl90CAL+14HC8Lct0XsReJC1pDRKPHzBMaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n9U9QQ13YMvuuS3MR4tKUlFVWqrHShPb4YxuV4c9DePCQTYQuOI9FXxxmPVS7D8+J AsU/0T96sFcz8/dxoRYlEtc/Hw/hn4/bX0XBR8dNp0G+DXSdKqORbThsY4OyulDyaG dWM4BDDe/k+lyVgyOFJUYtYySqOvk9NphJ8PdC5dgyV0qkHPIXBCV9shrATK+OPB8W UMmN9syxC8AbMWkt2gEI7nIO0lvMdlD5fnrq00MbFabkq9nbKtO6V2DLsqKvN/yId/ +/AkrzNCnISp28rRVsnvzJxB2c90G88oG/Xinuca3ToNwts5JQyHeKKDkxiPpMI+bi 95EtkbG24LWqg== 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 15/15] arm64: add alt_cb_patch_nops prototype Date: Tue, 16 May 2023 18:06:42 +0200 Message-Id: <20230516160642.523862-16-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766067780441650927?= X-GMAIL-MSGID: =?utf-8?q?1766067780441650927?= From: Arnd Bergmann alt_cb_patch_nops() is called through an inline asm macro, so it does not need a prototype for the caller, but adding it avoids this W=1 build warning: arch/arm64/kernel/alternative.c:295:14: error: no previous prototype for 'alt_cb_patch_nops' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/arm64/include/asm/alternative.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/alternative.h b/arch/arm64/include/asm/alternative.h index a38b92e11811..55da3fedcfe2 100644 --- a/arch/arm64/include/asm/alternative.h +++ b/arch/arm64/include/asm/alternative.h @@ -31,5 +31,8 @@ void apply_alternatives_module(void *start, size_t length); static inline void apply_alternatives_module(void *start, size_t length) { } #endif +void alt_cb_patch_nops(struct alt_instr *alt, __le32 *origptr, + __le32 *updptr, int nr_inst); + #endif /* __ASSEMBLY__ */ #endif /* __ASM_ALTERNATIVE_H */