Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2296251pxk; Sun, 27 Sep 2020 02:23:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfrglrGijznU7fTYOk25SZPH9TJxoHH9d5EG11ghK+mmALHNbUTTDl4WNuIhlsNnBMeO6K X-Received: by 2002:a17:906:2dd:: with SMTP id 29mr10975185ejk.31.1601198598298; Sun, 27 Sep 2020 02:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601198598; cv=none; d=google.com; s=arc-20160816; b=Z0RJKC3m5HrwAj1X7QXTsbgG6dlz5Lib4ZTHtULoy15ZasJom/Vn/OXfQZLOQQEbYd YgVy1DWV1u5u/yILzRlKbN719f+rsp6GgWZU7Q0ai3TF/wzy/gXzPFxWiFzvOFEvQVDZ 4a/yIKmrCdGYnE6pqoJv+ANBNpYRT6tzsgLYrY5GPpEkgPr4zZwpaFauT5yY+NympQso 9u7SQ7hO4cM4zRSe8WSgJjmFfQZVpVJnztyo7ab9+e9Yzu5fHylmllqlyc7AfdRusWM0 wjasijxhDTB6PE/7f+gJtyCh+OOYLLZbUJtAgzcBb+kAA5JIwMNNpIsb7OSMDiczRq3/ bOMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=49O4zHPx1PVwGbq+z1yRkKckf3sNv0jnpUzWYqsF8Ug=; b=iXW64EI3FGxTAzsqxLKmdIBq7EjLXwtV0z4ZDCHGERZRCN+4KTNc2g00f0EQPawmRv /BlbJUpnVMYCyKobbrZOKkPLQziiZFWsna+kgI6fYe7+5Z9tU2hir9zkE2k4xNjuNUmd dcoyewvI/YWLTVCY78QP+7mKVy9i3nhmL+5Qt9EerR+aToJpTIUlEes9jmxdJYXqYPnJ nxHLdVPQ5/+NM4TO+smXK1k901F4qbX2uZucVPMWI8VgFeT7jt2yW+yHd8XnR3/QQwqq BYl1ho+/VABuZpubOyzqRMaFuYOIwAgTSrjkhZMDruOfLMPLdEUgupvuDKb6zgEcA8oS YV8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SIBHc8S1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qo10si5360357ejb.730.2020.09.27.02.22.55; Sun, 27 Sep 2020 02:23:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SIBHc8S1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbgI0JUx (ORCPT + 99 others); Sun, 27 Sep 2020 05:20:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726185AbgI0JUx (ORCPT ); Sun, 27 Sep 2020 05:20:53 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4CDC0613CE; Sun, 27 Sep 2020 02:20:53 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id b124so6685370pfg.13; Sun, 27 Sep 2020 02:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=49O4zHPx1PVwGbq+z1yRkKckf3sNv0jnpUzWYqsF8Ug=; b=SIBHc8S1kVbejxLpkvkbAnmaMKtpEDgXAUTVYm7bTQrxeyEd68dqoh6aC6uWS7+b9o CR7/Rag/PwVQImFjW8jOSYcUevO2p3YEEb4sMtSh+eINHTUDbVEc2MjmlLsDeNNhbH1M V9SqIUm4DcGsJoDutnrn+ieu+PAxol1B/a6UAs0d+xRE24Rm+oqdEUNUjEqpi1FDcg7R xX9BA0Zx/Yw7PdxkjE7EnOLIE6PcBgnBs1xcI4K/VLctyULi00fBOM5Kxx4A8TPVKmKa eEwQ4GUCb/+EQeyzeuSLsQoRMG/LEc5qzPGkttMDa5bHJIs1wxC2oe6SVzSGnO9Ibsjc kydQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=49O4zHPx1PVwGbq+z1yRkKckf3sNv0jnpUzWYqsF8Ug=; b=Lw1XEnFb8uJilg77x2GGpTzcy4pe/wa9dORB7nqz5Wh18Bq8fWmgmK+1qxM/1RoQVA q/l08OTMUKIr+GOOY/VVqx/JBxVae2XJy88posTg75vHNpdieerx4qQ7x1gbyKTCohTH YZ3QvxoBQHkklPB6ARi8wrmxHcJcwacP6tDTI3oY3nZK/RuaRplRAjfNvDN9XWDwm7dP mbxqDDZiA94wNDdU/e0pH4/5YF+J4URYm0sLiRphhVjYWSNTFl2oM+4YOVn+0VHfrZFL 899g5+vLgjZoj7Mf5zMJjj6Oslj/STWQrzob6J5jwoPsHnEWDTJj+8giAaxQAUPwb7pa 1xtA== X-Gm-Message-State: AOAM5333ASueyVNFsYZImteyUcHloE7PNSOhWsoy2GD9G3sSZIjPko6X nQS23FPjZG30AABmqrzGgA== X-Received: by 2002:aa7:9583:0:b029:142:2501:396a with SMTP id z3-20020aa795830000b02901422501396amr6459109pfj.47.1601198453059; Sun, 27 Sep 2020 02:20:53 -0700 (PDT) Received: from localhost.localdomain ([47.242.131.39]) by smtp.gmail.com with ESMTPSA id j19sm7780904pfe.108.2020.09.27.02.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 02:20:52 -0700 (PDT) From: Pujin Shi To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, shipujin.t@gmail.com, Pujin Shi Subject: [PATCH v2] MIPS: idle: Add prototype for function check_wait Date: Sun, 27 Sep 2020 17:20:41 +0800 Message-Id: <20200927092041.1187-1-shipujin.t@gmail.com> X-Mailer: git-send-email 2.18.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds a prototype to fix warning at W=1: arch/mips/kernel/idle.c:126:13: error: no previous prototype for 'check_wait' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi --- arch/mips/include/asm/idle.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include/asm/idle.h b/arch/mips/include/asm/idle.h index 655a6dbc861a..0992cad9c632 100644 --- a/arch/mips/include/asm/idle.h +++ b/arch/mips/include/asm/idle.h @@ -15,6 +15,8 @@ static inline int using_rollback_handler(void) return cpu_wait == r4k_wait; } +extern void __init check_wait(void); + extern int mips_cpuidle_wait_enter(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index); -- 2.18.1