Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp978387lqs; Wed, 6 Mar 2024 02:36:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUjUI0f7n3oeNebreIjNXriQgbwDURN02UPv4iwgqpm4n0EjW+Dy/bQ7P8AmCMcoomwRoaSUFw1JYO5SW2Li38DJ6VqvH6jR0y8SBRb5Q== X-Google-Smtp-Source: AGHT+IHobG0vb1Xypo9tmDR8WKffKZ7ppehzLHTJxrAe0UK/Hj9w3Ud5+pzcAG/iykozy45K5ROo X-Received: by 2002:a17:906:3712:b0:a45:ab58:ff45 with SMTP id d18-20020a170906371200b00a45ab58ff45mr3205912ejc.46.1709721393892; Wed, 06 Mar 2024 02:36:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709721393; cv=pass; d=google.com; s=arc-20160816; b=KCqnUzG+3qYi055c1Whz1RUaTJ8tXkw+pMuTUo8qkaUhkZaQ26GqMQPyYbdnhnYrFR x0GOhboxoNtDol/Wt4IylyTQAkWHiGHdtAJYwT2FcwJXeFXlKuqbWGUPiKdj5wm40jFh +Z0AwPgFa8KIu9FIOnyJvNdh6AldGlO16WAahdSYIoNJZITrtsxkKA8TabaDhC0M/QJL F/zUKT8NHPKkOyq4D0RRy0Z1wcZc/4HN+XiCnkNFT6ICQU+8fC4Foig4H+RQhDBx06WX KgUPjrHJc9jBuWD+l4SbtPDQEhXziwDEhRShKoyClGKsp7ZlCKgonn9EcGAP/Svx0Uo4 zvoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=VN88PcUqVASGP6tiSAjiF8M3G9GaUhFEX/YdxyWeGGA=; fh=lQ2M4e1FRnWVc02SlCLk2j1DdH8ys+lfLCZTieMVhWc=; b=orAqsFDJkVbdv1cywRilbGrTlcLaEV2ieUy15flHx3sXYako1CO4ppeYuTeUyU6WOu sInA5340BWzP3ZLpxwPD3NMPNE7JthlPk6n8haDxSgrV2n2ejGUZYN6CtEG/5Nnr7BhF 3joaPsK+khQ2FZYzKnW0Jx55vBSxlt+uH93g1xYo/s1ZQ6J5pdvjzglJXF22xLqSnEx+ YlZ1Ih3F/4VDWH4dkIZ0jEZqNpYF/UkOq7PtK/MMZienqnh3hIJ8Vg7I0F260l8Aa4Bd 4SUZ2fSAN8K+VaEt+/VTn6ebkTDHZABNWdOKVrnIiqk/EvhDkHyS1qy0Io0UbGZRU58k GycQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-93775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h10-20020a17090634ca00b00a43d361aa87si5694184ejb.277.2024.03.06.02.36.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 02:36:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-93775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9E0C91F2103F for ; Wed, 6 Mar 2024 10:36:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEE3960BA9; Wed, 6 Mar 2024 10:35:30 +0000 (UTC) Received: from out187-3.us.a.mail.aliyun.com (out187-3.us.a.mail.aliyun.com [47.90.187.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1B7E60B8E for ; Wed, 6 Mar 2024 10:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709721330; cv=none; b=bhe+ZwSKCtlGGckr5tfJP1w5U5KhyMqE0GfMRohp88E+28Acp7DZyK5PcMjTT1xGvBaUMyx9yJYPzudkStJUuJs98OuTMPWZGUU9KAPxJLOUvM1lUBWNllEz5vD+0pMJpsVb1Gdh+doPo81TgE8ZdZeGFXHMezVkh6q9Adku9WU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709721330; c=relaxed/simple; bh=O0NWohxWLhuPCPdgUtUvYLL8yZ/Ty6sMX82olIEuy3M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=XooFPYSEydGyokgl6XKEOJiO8UzWccurg42inWoMq925dxQJTElTxhGu1325lm5ZR92IrzZHaTvdJgMifwxo1MyP0rmEKSam1frKIay9HWiofh7wXwzLut3O7mJJynIHoyylK7fbnsa870ryATrli3mQqYKElr+/QdMeHdKyJ4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; arc=none smtp.client-ip=47.90.187.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047207;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---.Wgbn-K1_1709720384; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Wgbn-K1_1709720384) by smtp.aliyun-inc.com; Wed, 06 Mar 2024 18:19:44 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , , , "Tiwei Bie" Subject: [PATCH v3 8/9] um: Fix -Wmissing-prototypes warnings for text_poke* Date: Wed, 06 Mar 2024 18:19:24 +0800 Message-Id: <20240306101925.1088870-9-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240306101925.1088870-1-tiwei.btw@antgroup.com> References: <20240306101925.1088870-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The prototypes for text_poke* are declared in asm/text-patching.h under arch/x86/include/. It's safe to include this header, as it's UML-aware (by checking CONFIG_UML_X86). This will address below -Wmissing-prototypes warnings: arch/um/kernel/um_arch.c:461:7: warning: no previous prototype for ‘text_poke’ [-Wmissing-prototypes] arch/um/kernel/um_arch.c:473:6: warning: no previous prototype for ‘text_poke_sync’ [-Wmissing-prototypes] Signed-off-by: Tiwei Bie --- arch/um/kernel/um_arch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index 7a9820797eae..e95f805e5004 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include -- 2.34.1