Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651683rdb; Mon, 4 Dec 2023 03:59:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQnez4Spyf90eDwqkHg+f8ClzRX+cIlibPux/8TPDEWx647UcAY4HlzFE57KtyminRLg8h X-Received: by 2002:a05:6a00:1888:b0:6cd:daa5:1398 with SMTP id x8-20020a056a00188800b006cddaa51398mr1739642pfh.9.1701691167748; Mon, 04 Dec 2023 03:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691167; cv=none; d=google.com; s=arc-20160816; b=xmRbrGCAkLG6bC+kjQe+2UG2LLOHowXHZt5hVF2NozahbxNBjaKuOYn9afdIq4E1Qd XWZ63eKJVeRzaGRMCqyAVWaaSX4hcJ0m57Fb/YAA+MHWOBM4GA7I62K5Gb1yBtsu+z39 PE9SDOgyVbdKHda13ZILoucmoZpunCm2hnCmPCQsg8CvmbTz35Pd1iVCyYfQTq3EzStQ mJ/92Bm/jIRLcYMVqvGT4NMLeouy7O+cQW69+204uP7yPYkx2Rz/epciJ/JKdFUHFMdD cbOHg3oBtFqyaYWn/m2W/e0i1TeIXyIqLjIZ7fa0sJ9t4QUVOIOaCToVFmJ1unCF9jdQ RwFA== 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=33vrNauCG/8SqnSF7PvOcnvFgaPUZDtAhQrTO8C6PCA=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=wMQOmKkjrtttYkAYp/Phhc8eLk4gcxyEoJAg/+c3A0y/c6RsjbjtjP/eVq3vblJyFa SqE45Pe3RGLq/Mez6M9idfFy3iaghhPv/2ge2o25A8Fvy4LQKmnpvHoj4ub9IrfIp/mY XaN+0qGlsN9IQRBCHhIVA5+efZ1Ez7cM5GDQZLcLnJDXdc2AIztoYg3RVnw2Cj6Pwp93 BWvJaaqHjaPywpDIGJDu8LjZgsKsZ7H733NlpukJBlLmgSHazZWqtNkkFc3csmAuV1VM v7mRAt6ulAOKxOx7kGZV8iSn9q3cobbkAx25SWM21G2pWrX+vjpfVB/g2R//EgnJcin7 QJmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0b2PVdL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id j15-20020aa78dcf000000b006ce46551681si2348491pfr.258.2023.12.04.03.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:59:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0b2PVdL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 38C1F804B38C; Mon, 4 Dec 2023 03:59:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbjLDL6e (ORCPT + 99 others); Mon, 4 Dec 2023 06:58:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233378AbjLDL57 (ORCPT ); Mon, 4 Dec 2023 06:57:59 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA2DA1738 for ; Mon, 4 Dec 2023 03:57:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9769AC433CC; Mon, 4 Dec 2023 11:57:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691055; bh=SyiutF6r1lYIBhrZamcCKmSjbvADpqrs+8irYVNoqts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e0b2PVdLqrFPaIeHzatnB0JuZ9dTmwindq3FicXcUcWOKG2XetUUX+fgOaPU6zWE3 wwaVaQM6qkPhyo6ZQGmK8EsRLF/7hL7pe7Mo9Fzqabdq083ZidoFeptc55i4cXo8+2 AHLLhkPeFGeE8RjrA1GRn1pGavgJ0BAcAxWxcVvUPDaPuKG4M5CPlMg5B1FyQ/965O wQZP+CGclMW5ZTGn+BC25vOJ/95gsZCnD14DJYhzyQM5xxNtrm4JoyHczPeojyb3Oq CvegkX/CPWsFhq5iNEau5i6tm2sU+iKZuWikhNVwBRUSf7Rh+eM/aZzjT19MUSscWx 1SWSG4K+pG0XQ== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 08/20] mips: move jump_label_apply_nops() declaration to header Date: Mon, 4 Dec 2023 12:56:58 +0100 Message-Id: <20231204115710.2247097-9-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231204115710.2247097-1-arnd@kernel.org> References: <20231204115710.2247097-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:59:14 -0800 (PST) From: Arnd Bergmann Instead of an extern declaration in the C file with the caller, move it to an appropriate header, avoiding arch/mips/kernel/jump_label.c:93:6: error: no previous prototype for 'jump_label_apply_nops' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/mips/include/asm/jump_label.h | 3 +++ arch/mips/kernel/module.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/jump_label.h b/arch/mips/include/asm/jump_label.h index c5c6864e64bc..081be98c71ef 100644 --- a/arch/mips/include/asm/jump_label.h +++ b/arch/mips/include/asm/jump_label.h @@ -15,6 +15,9 @@ #include #include +struct module; +extern void jump_label_apply_nops(struct module *mod); + #define JUMP_LABEL_NOP_SIZE 4 #ifdef CONFIG_64BIT diff --git a/arch/mips/kernel/module.c b/arch/mips/kernel/module.c index 0c936cbf20c5..7b2fbaa9cac5 100644 --- a/arch/mips/kernel/module.c +++ b/arch/mips/kernel/module.c @@ -20,8 +20,7 @@ #include #include #include - -extern void jump_label_apply_nops(struct module *mod); +#include struct mips_hi16 { struct mips_hi16 *next; -- 2.39.2