Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651992rdb; Mon, 4 Dec 2023 04:00:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHN7hJEsN/uk/ioaKMF6EyBkyFH3YG3yYpG7EnyUlJp1jOBkynjZhuowZq0NdeLH7k0NqEf X-Received: by 2002:a17:902:ec81:b0:1d0:8554:5dd5 with SMTP id x1-20020a170902ec8100b001d085545dd5mr3204675plg.37.1701691202670; Mon, 04 Dec 2023 04:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691202; cv=none; d=google.com; s=arc-20160816; b=uhSvZN4hagpcJm8bvQ13QHfsM6MrYJrEfWg5BBPbDyYA9FKXvPwIs+6Xy6tG0AJqPL rEgkjYA0JztmRb18nBZWmbx71ibQpCk8bOSaCXYIwNDaRgBiA4QQqtg+ZEL0OkV4i5FL Zz82WNoey9lrypm5ZvOy99dPBs0j3tpd53EtKbEX79UVwNhxHANahTimfQeLx/C/q0Rv 3iRff51zIoEshKuWaeGqG+jThtADbzx8GpY9D5pRo4/sCSRnkGgmypRr9AbAV1LA8zYp uDyam07NH51nJpKtaTbf6nvSSFeVJLID+y5r2VLfeflUg7RqPBFQs3XTdikYkKCWXP9H /T4w== 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=QSLC6j1zLiQKEOX4W20pLG63m82s0uC3AexD/yAIr54=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=clHkNKHvft2ndoa8RSrYL6+Oh9sm3TR9b5zWKUYoMl5OU1b3KnHdLYNCwDtb+SmqZe +QzoWqPMaSO3p/N/wLzomw0ScfuyB8SstmA1LnG2zqKdhNnTvS+iivsk34zXz+6Dx6fj 4tgVtaTM+x0kLwqeHP6ZDZy62GI4x7Z5xTwiSqSqMIRdFznulysu6VHV3ZFoyHlWFWMW 9pGZhUOt+ANC5QpWsySBM7C2H5KwqwzZc/3lQGomLPBh4RNz3zwWhB/I7XP5Bg10aDXA HUwHu7Tgrz4273XTMrqZZDiLFY16jlPsiqVH6EBGIurIrtBmHLB6A9PwDwGQWcs4uOeo zX7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Io8rgrO6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h5-20020a170902f54500b001d09c96ba1esi1836383plf.452.2023.12.04.04.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:00:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Io8rgrO6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 30E428096589; Mon, 4 Dec 2023 03:59:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235445AbjLDL7a (ORCPT + 99 others); Mon, 4 Dec 2023 06:59:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235401AbjLDL6s (ORCPT ); Mon, 4 Dec 2023 06:58:48 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8185A1FC2 for ; Mon, 4 Dec 2023 03:57:53 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 390ECC433AD; Mon, 4 Dec 2023 11:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691072; bh=XNLXB9C9iANjifHx1nMXhDMMAGyy9Qfh4bqOEZ796KI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Io8rgrO6IONkw5FdvdLvBhvUKSNRrK/QWiQKGpgJoqXoJ2squCFeHfzLDaPf5HICZ rD9evFe+7fhYFUQaycqFh8VadEs4JStBSUlWWWqassmTEO6MSgKXM+dwEdx7uXiptY RTAnjkW6LDKYBrBMbD/58lMlFjzJoKI6XuaTVSkeZQjdWhp9kr39JM3MrUdHFVaC1e iSnR1WlI3slJkVH9RrM0x6A2jWJUvXDb59se3p+pdjIbsG0KsGjzc1VR7f11gTmr2O sks6Gmbxyo6bC9WjO+u7rKWdDXN6t3f5T3iypVlVcWHModGPt1+Ohlf5oLej1fIQxV j+ATqkXkHK/Gw== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 17/20] mips: suspend: include linux/suspend.h as needed Date: Mon, 4 Dec 2023 12:57:07 +0100 Message-Id: <20231204115710.2247097-18-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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:59:56 -0800 (PST) From: Arnd Bergmann A couple of functions are defined by the architecture and declared in linux/suspend.h, but mips is lacking the corresponding #include statement before the definition: arch/mips/power/cpu.c:16:6: warning: no previous prototype for 'save_processor_state' [-Wmissing-prototypes] arch/mips/power/cpu.c:26:6: warning: no previous prototype for 'restore_processor_state' [-Wmissing-prototypes] arch/mips/power/cpu.c:36:5: warning: no previous prototype for 'pfn_is_nosave' [-Wmissing-prototypes] arch/mips/power/hibernate.c:6:5: warning: no previous prototype for 'swsusp_arch_resume' [-Wmissing-prototypes] Signed-off-by: Arnd Bergmann --- arch/mips/power/cpu.c | 1 + arch/mips/power/hibernate.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/mips/power/cpu.c b/arch/mips/power/cpu.c index a15e29dfc7b3..d8ef7778e535 100644 --- a/arch/mips/power/cpu.c +++ b/arch/mips/power/cpu.c @@ -6,6 +6,7 @@ * Author: Hu Hongbing * Wu Zhangjin */ +#include #include #include #include diff --git a/arch/mips/power/hibernate.c b/arch/mips/power/hibernate.c index 94ab17c3c49d..192879e76c85 100644 --- a/arch/mips/power/hibernate.c +++ b/arch/mips/power/hibernate.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#include #include extern int restore_image(void); -- 2.39.2