Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2296340pxk; Sun, 27 Sep 2020 02:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc48hKDXuQhJ2hmP8pcgfL2sPneA8hikfAL9GilAEDDMcgeERdXVuTev1mIlgE971mtk5K X-Received: by 2002:a17:906:cc8d:: with SMTP id oq13mr10365519ejb.280.1601198614552; Sun, 27 Sep 2020 02:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601198614; cv=none; d=google.com; s=arc-20160816; b=UaoOLHlyvNgHzx/P2/vtQ1bg5loSj9m+8ATqDkiyGeRhilXGNnQYu90Bz+OSB5McwE 3u/iHfj0RoMilOiHUTzypcHvQNH4Umuc6/vEBij0keXjLCXoj+4NQckTwuzx6Q+7pYPO lx68ymmNtltu5xSkY9JjkG3WwnwidMNaohTP1zQVhRkiEWLDA7AyrQQ3j1JrJRCHMjtO JWIecNuONffFvYRsco+eEY9ZaVxbSbDup/lfEEeUm3aBgcsWfBZ3DySyxRdt2SCe7Hqq SbG6nWcl2VMNXrZtJNozNBhZyeyL3jHoGX3vF8Y6lUI+ktsCNc8u7XIfRrxUewjHH851 AxNA== 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=B++in0lGoc/BjWUNEMvXxicCP336IVWkHPCZlvacCRI=; b=bkSawUVUm50Qjl8rAHQVmpfAxBn9eQPHye3Prl4qOo9p9JnCyimphTTiEiwRBVzxOW bKoLa2WaDg1wFRbOjir2ZuHI4Q+N7TznbOucYWzfQ6m3zfJ7j25dvCPXE7GsbNN2DZ46 3KoeiyvOcvTQ6qOdwkRslhckx4FrHS+Ef8i1/dk66o+gRfVZZ4XWALaqAQOh0acIW8ED TJvEOHzCZPFZsLXLanK7lDdcNb17gu1+/9S7RNGP9+/ifb3Y7MKWszagwXqD4OKpkeuQ K5nh5l3vQxsDMAqtqwiaT8oEKVZkHm8h4As9Eyb4SJ0tgJgRrgTF3nWOzYiIHdmT0sPk jhIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qSKDydic; 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 d9si5722542edv.452.2020.09.27.02.23.12; Sun, 27 Sep 2020 02:23:34 -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=qSKDydic; 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 S1726466AbgI0JWX (ORCPT + 99 others); Sun, 27 Sep 2020 05:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbgI0JWX (ORCPT ); Sun, 27 Sep 2020 05:22:23 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073FDC0613CE; Sun, 27 Sep 2020 02:22:23 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id e4so1734508pln.10; Sun, 27 Sep 2020 02:22:23 -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=B++in0lGoc/BjWUNEMvXxicCP336IVWkHPCZlvacCRI=; b=qSKDydicDEFVRjiWX4O3TYCNIG/PaAAh6MuaL1K9OqlFrF5JfPQPp8eWzah4pAI1r3 nEiBvwYMK396XejcL8GGAgZBq8TrtlfjXKwyF/aFEgU0zl7sNS6xrTk1QtVzCsSUOk1M sDX9N6YUPHOz7aG0hvwW78K4hMWdcWvSSsz38dG6rJMZDV+3+LTYYQeRt52ZA8YySZ9F KJGQ6XZi2g28X4fLmwOW36lsO0R8IwMWSA1dC3xAN1JLhDFBOnaWmYqoY769EdbI1V0/ v7UP3gOtE2f9CGAuze+ea9kNoVAlAxzdpsi8R6a/v7ARUP8sZ1ZmJV9+Mf6BjkmHQh9H Lpiw== 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=B++in0lGoc/BjWUNEMvXxicCP336IVWkHPCZlvacCRI=; b=t4XPCN2Z1xvfOGMns6UicU6fHeBC3iIvxuUEXl4upX+/mIu6OIa7U9xHsENwtjqvxu gfZtUp784BRdMJgFiXQfzLNkTgQHX4h1h5ziOEWI4uO2KWrvNvSOXFjTmfkgGBo1ZOHt BtLQPt5QPHhfRcLQkajp31YknKi/J300vAAIl21yEjAm/4Xglxw2rgxKZ9damq0iN6+C rocjslplVSERl9FgXvLDAw1CXPAqtHo9G8TH3XrH/rreRvXNjMcIDCqd/EmfBFAleapp CwrwClBIfePI7U2H09cJDPZPTu1knLEIVqnoQrKWUW4Agj4Zrgt+nMurGcT32IFRcpvh OLgg== X-Gm-Message-State: AOAM533jZ5ssqR+wG2e/9Kkp+ngOmegg9nupQSHo/RdvR0KcA9LR0l6q SWhiOIQHipffhNbSLrw5nOfzz4GjLTMg X-Received: by 2002:a17:902:aa8e:b029:d2:62fd:a2f9 with SMTP id d14-20020a170902aa8eb02900d262fda2f9mr6764820plr.49.1601198542627; Sun, 27 Sep 2020 02:22:22 -0700 (PDT) Received: from localhost.localdomain ([47.242.131.39]) by smtp.gmail.com with ESMTPSA id s16sm6554592pgl.78.2020.09.27.02.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 02:22:21 -0700 (PDT) From: Pujin Shi To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, shipujin.t@gmail.com Subject: [PATCH v3] MIPS: idle: Add prototype for function check_wait Date: Sun, 27 Sep 2020 17:22:05 +0800 Message-Id: <20200927092205.1252-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