Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp52713lqo; Tue, 7 May 2024 11:52:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWh9KDSEP6/SQmgLv+VKkkPpFe0Rdn+Ooq+DebOCLSMDjzSbcHFQfPtylmdf1CWk1Mi37yMaKB60Ps4IEKH8amuGygGxdU2IMa+NSlBg== X-Google-Smtp-Source: AGHT+IGoXok7gEdlixjffrlf4ite4slD9oSOjyPcBylFAjCqHvqlPngdCXOR85RMaNEAb6zndOGF X-Received: by 2002:aa7:844f:0:b0:6f3:ed26:e4ef with SMTP id d2e1a72fcca58-6f49c2be6c5mr551864b3a.34.1715107949433; Tue, 07 May 2024 11:52:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715107949; cv=pass; d=google.com; s=arc-20160816; b=OG5JR9XU8nlIQbAT5NFCThQBl1mFOsL/sCL/xtZp5Q50MmQJsPZe5nxKZqeoIcX+wx 4kzmQpYmvUHJUNzBB56VSWmOWcX1hQ2BHh6GIRKhx3M+ad8ZDH5VLEazpRPhiIXm09TD DwTBqUmjE2b3qz3aAxtD1pef1Fc/n88LoC8qHbNDx3eNoExks4Y63ieIOrcWSkEGSoZ3 WKHf0lW+W7jPPC1Ig01TR7B/V0366OyDB16tUQAGbAcKxVML9z5VOBSNh8rtQGTU60+r wVjAXyZDxNitjboEyA91z12LKEHBo1AdtW/jWkxC1cLEIq7cskcuMXGgFpjA7Ez54wWC l4gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:feedback-id:dkim-signature:dkim-signature; bh=w1VjM0ud1RjbTEuBE6lkuqZ74DTWQfcdUXkhG/SaK+0=; fh=2nPjfULBGkO4Luq7v7rkq1081NbURatt7UuG7NhB29A=; b=GYUMR4dixGHS6/5IWYQHh++nt6hsozWBLYecoUUAbydFCxmD2dm0VgHuoV1Splpy+7 JGQDvc7xIA+7X9foSZBVezo0DsB72fWfsR7r5XGk2FnFB9kT62ocegrKTVuNxA0XF4mc ClNopNS7m7UzXeiX0H0a62zkA1PhvoZSh5iKO+VZ0A1IIkCBMWIbk0VVv0cTKwz3Bu6l Zr233IcxkjFXu7YqGFTz3sAy2I86aPndxhukzLX2+DIbESYC3d6UvE/+y5KCXTAqf/EF XHyfY1slH12u9mJNL2SsnQfgyL0rUsVMQe7rSY53gnJ6TorYLOfeDGNws1RyFxguWdx8 TqOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=dijWbgwG; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=AY96E30J; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-172014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w2-20020a056a0014c200b006f46f916f8asi5891165pfu.14.2024.05.07.11.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 11:52:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=dijWbgwG; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=AY96E30J; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-172014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 147702809FE for ; Tue, 7 May 2024 18:52:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BE8F16E896; Tue, 7 May 2024 18:51:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="dijWbgwG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="AY96E30J" Received: from wfhigh2-smtp.messagingengine.com (wfhigh2-smtp.messagingengine.com [64.147.123.153]) (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 E0BED16DEDB; Tue, 7 May 2024 18:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715107896; cv=none; b=Yrd01p8dBfCRYZHUzvOuTSSkdSe6Vs4Vby/LaDZkzVDf2B2sdf4p5mDB1NJhAcKI2LuFMiEyEcm8FskZouWZD94JuTBn3MKuCgBQygVhqP2JiOELT/B20bCoZ4DodPlj888JFowmMvAJTbmAv1cRlGgadg41qB3NaTO/nMmOFNY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715107896; c=relaxed/simple; bh=KdcCNVcmeZ72AJl9E3GrBg4pv9vxdHO3/iu3xmIRyOc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eU4UOiTdU0wyLSwghVcasdIb1ne7Y9VYoim1aVRUjfKNsdIERCBm5o+swdd5prMwCVPSbOm9AkSsKkf4npv/yfIr5OdIkOwQzJSX5vroBw/Bddj0xixt3Nkk2PgfWtcDFh0VOF9FUcLaSHsnh31HTmur/J2J/D9L2pFw6XGzJNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=dijWbgwG; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=AY96E30J; arc=none smtp.client-ip=64.147.123.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id 5AA5418000AA; Tue, 7 May 2024 14:51:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 07 May 2024 14:51:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1715107893; x=1715194293; bh=w1VjM0ud1RjbTEuBE6lkuqZ74DTWQfcdUXkhG/SaK+0=; b= dijWbgwGE7NeIrmEpBPbt1GTzwosbFdsrtq1Mh7ENQh+IHwUt8ksPt7QQV7ISS8S NFKENEYGFBquvEMHNYKLiPe8106pCd5RYjxnmJ2x/3mPwm9GHQfr63oBLoARTQ2/ Sf0vDQViwOVxV9XGhasgZuUTwDdSYwZkAQB83Cxl7TaJ7Yedj/AqxHj/ReD77K1R 9Ycr+j+AD+oBLmXRC5ixB2uKX2fpbm7eGeU0u5Q0hXl1Ql3Rxx55Jl8NHXzIUNgp iKL7lkxCKPb60ORrlVx4wkYf85l/HU9yQ3cshYhCIUlWRUtKiqcgJ0toDF6cu45D Z9vMjUp8XnACLxeetNsBDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715107893; x= 1715194293; bh=w1VjM0ud1RjbTEuBE6lkuqZ74DTWQfcdUXkhG/SaK+0=; b=A Y96E30JiW+lTyHmFtFYLekHWjegk9qgrNIk4FYrFXXGDC9C8WmcBUfZWvgwrzOlp V/NgzfOW2g98oH/L2WQsBVwmKOR5DLKZK8u030Q9JawsrP7pQjfjUZY/l6ep5ypM yyKi1uu4BuEE5ZbWDV4whIZ40UsjkVntfeiHgyEePkSzTUUddYDAV9mYGAYyXph2 Y1qHIRZVJMDjAxFY9U0CzgSOLvhbv2OLHNZkcYPnePvJfZsxAYl32eIptAiABCmQ OisIgJPBpju9tAGArScjQYA1DD0zp1eEJYi+AwJjsVl62HkNAjSrnim+p+1qjvVa WkIov9KCebjUTLJr/R0fg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvkedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhfffugggtgffkfhgjvfevofesthekredtredtjeenucfhrhhomheplfhi rgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpeevveetheeggfegjeekjedttdetueeludehveejgfejtedv hfdugeetgfelhfevkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 May 2024 14:51:31 -0400 (EDT) From: Jiaxun Yang Date: Tue, 07 May 2024 19:51:20 +0100 Subject: [PATCH 2/4] MIPS: Loongson64: Include bootinfo.h in dma.c 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 Message-Id: <20240507-loongson64-warnings-v1-2-2cad88344e9e@flygoat.com> References: <20240507-loongson64-warnings-v1-0-2cad88344e9e@flygoat.com> In-Reply-To: <20240507-loongson64-warnings-v1-0-2cad88344e9e@flygoat.com> To: Huacai Chen , Thomas Bogendoerfer , Aleksandar Markovic , Paolo Bonzini , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jiaxun Yang , linux-mips@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=850; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=KdcCNVcmeZ72AJl9E3GrBg4pv9vxdHO3/iu3xmIRyOc=; b=owGbwMvMwCHmXMhTe71c8zDjabUkhjSrCt19Cg9ZDwfv6RXZ2hdrOvlqyK9zqWqOW7fx33s3f VWW653YjlIWBjEOBlkxRZYQAaW+DY0XF1x/kPUHZg4rE8gQBi5OAZjISV2GfyZ3zOwcXlyO6dgl xGZ8VnrFhVXp3zZ9OPI32HVDj86//KUM/9NT1ncu2fzXNatevlzkuE7Co6WrGEMUDy8T8g89E2s qwgoA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 dma.c defined function plat_swiotlb_setup, which is declared in bootinfo.h. Fixes warning: arch/mips/loongson64/dma.c:25:13: warning: no previous prototype for ‘plat_swiotlb_setup’ [-Wmissing-prototypes] 25 | void __init plat_swiotlb_setup(void) | ^~~~~~~~~~~~~~~~~~ Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/loongson64/dma.c b/arch/mips/loongson64/dma.c index 8220a1bc0db6..52801442ea86 100644 --- a/arch/mips/loongson64/dma.c +++ b/arch/mips/loongson64/dma.c @@ -2,6 +2,7 @@ #include #include #include +#include #include dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) -- 2.34.1