Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3256583pxk; Mon, 21 Sep 2020 09:02:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm33gS3gBnYwERZdWRSFa4VimPNeHSrWx14wJjotkKBCx2jY78tl81m4LblmpKarBPIcFh X-Received: by 2002:a17:906:6b95:: with SMTP id l21mr86560ejr.317.1600704133556; Mon, 21 Sep 2020 09:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600704133; cv=none; d=google.com; s=arc-20160816; b=GUjlneUl6mcfl1p6aDUwb3VVUH9Kbyi1SxosXK+RtIiJPO591eaYmKLNumRntfh8he 7fhYqj6v6JRwtsd/QbVgumWEnzeKyOGmo0lv/9B0Ou39NTR0dIdmvbyPcc9KmDlOrMJn Sp00zGpJ/o28blWeMqJblWgrFFUYhbxgz9Qt6CMDYqp8U5osgBHK8BwZzoefwa0oYBh3 cmA+S6JeuJS+x73Wy5fJslihJ3GkSHyeYS4lB18/zL/QxIFMgS3B5bzcWdzUP9Cv6I21 xGnPEdsXoKkM8aokD1+6PTXbVa6METwLFmwAgumQwk7sNVMfdAJXGH0CM5T8Rcgn5VLa 2qnA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1z7DxZA1C6ZLPIw2jqF0dHu9eU0mYGkZpeGpThre5W0=; b=Pp9vmrU99cttrq8eBcfBGhoN8kjsOWVl6o11/q6+YGllXjVI4OTlN+kA9WCC5+/AjJ MZ45SBr4FpNBtehZm0Hv2rUz8pj6wLGxJgObKBad/GyKtfutGH4j4neglM7oqr45Frbw oC3+97w7nFa662I7RvrY3hLP/Fxnq0uh17rZxsfYLJvPGO46DiUpNEjh8PCAMUEAdWIS vtWLW7xGHsqVMjP0lR8fGPfr25sVC4O4XG9LMDkOLkwmfX6/OO6WNNpW6BlFUV6igoYd XCSgqAoLBCwlHUBVG+a0oxpS52tYLg3s2PIZbxzjHb75SU9f/itK/30+pltAIcaunfY3 J4Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QnEDrJd5; 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 gh1si8562305ejb.604.2020.09.21.09.01.49; Mon, 21 Sep 2020 09:02:13 -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=QnEDrJd5; 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 S1727131AbgIUQA0 (ORCPT + 99 others); Mon, 21 Sep 2020 12:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726696AbgIUQA0 (ORCPT ); Mon, 21 Sep 2020 12:00:26 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E5F9C061755; Mon, 21 Sep 2020 09:00:26 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id kk9so21037pjb.2; Mon, 21 Sep 2020 09:00:26 -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:mime-version :content-transfer-encoding; bh=1z7DxZA1C6ZLPIw2jqF0dHu9eU0mYGkZpeGpThre5W0=; b=QnEDrJd5mKeVdUFr1/aPFCjEysnxjkDGtLcVK6OwRG7mQyvggpoAWaypcsnZyzfKpO FgQStqDqwVYGlMTtJXMgSeHoin8vnaugWMZhSg1YgzWBtGVOhxEux13fUkqpTVcfA1u3 nay+BQDY1yy+aGoUhnIlq4XIIT3XvRuD/X/W9TY2lGqBDNpdOTl/QGyoNk8FtZ6UJYUz quyAgUtuYPt2UhpqTcpLDi33n6NNGDklaNHsDzcuiWXbwgk+1RsgdZEQM8XW/KlT+y0j d3ghTVjzQIvhuQXEmWbknfdibssdwKjsWxBZSbykdsw3LE4kjo0qJOtG+vihysGlsAzJ RpAw== 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:mime-version :content-transfer-encoding; bh=1z7DxZA1C6ZLPIw2jqF0dHu9eU0mYGkZpeGpThre5W0=; b=d1QcQN0AGEft2M0x2J8uAEZ7HPmXDdL659fNYEKXmk7LOXt95JF4ZNKVvt2q42T1gs bTLOLhT04pvPggTuBbzlsjPWD672fouhuGh4bmONtvMVRZtOPuXg7z7QDGsAVmV1tnNf ABjdyuP25gKTksRrCCio9D/ul88JPjuCV9ZACgx6fBrkpvpX8+ZI2ils+ScRzeI7rGsX nF4fO2Y/gsQz3hm+XREwgpnqqGKAVKaa1jnjpkSFuE4MDs49/hxllEq2JWxP/I5BHyxg 3TWTIzaeL7tMY4wW1zjwcOp2So5Fr6G5WYa7QklapH6gN7CEU9k9RaOD587Xpx/cV5O8 XR6w== X-Gm-Message-State: AOAM531fVa9rvs1j1ErGQw7rduJWdEuSd2C+10Nik0RSiisvP4EYGXSS SgpyqFebXbcKfSJSEcfzpiaH5xUhWOwBw8jeLQ== X-Received: by 2002:a17:90b:3cb:: with SMTP id go11mr65880pjb.152.1600704026027; Mon, 21 Sep 2020 09:00:26 -0700 (PDT) Received: from localhost.localdomain ([47.242.131.39]) by smtp.gmail.com with ESMTPSA id y13sm12554963pfr.141.2020.09.21.09.00.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 09:00:25 -0700 (PDT) From: Pujin Shi To: "Rafael J . Wysocki" Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, hankinsea@gmail.com, shipujin.t@gmail.com, Pujin Shi Subject: [PATCH v3] powercap: include header to fix -Wmissing-prototypes Date: Tue, 22 Sep 2020 00:00:08 +0800 Message-Id: <20200921160008.2162-1-shipujin.t@gmail.com> X-Mailer: git-send-email 2.18.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include the linux/idle_inject.h header to fix W=1 build warning: drivers/powercap/idle_inject.c:152:6: warning: no previous prototype for ‘idle_inject_set_duration’ [-Wmissing-prototypes] drivers/powercap/idle_inject.c:167:6: warning: no previous prototype for ‘idle_inject_get_duration’ [-Wmissing-prototypes] drivers/powercap/idle_inject.c:179:6: warning: no previous prototype for ‘idle_inject_set_latency’ [-Wmissing-prototypes] drivers/powercap/idle_inject.c:195:5: warning: no previous prototype for ‘idle_inject_start’ [-Wmissing-prototypes] drivers/powercap/idle_inject.c:227:6: warning: no previous prototype for ‘idle_inject_stop’ [-Wmissing-prototypes] drivers/powercap/idle_inject.c:299:28: warning: no previous prototype for ‘idle_inject_register’ [-Wmissing-prototypes] drivers/powercap/idle_inject.c:345:6: warning: no previous prototype for ‘idle_inject_unregister’ [-Wmissing-prototypes] Signed-off-by: Pujin Shi Signed-off-by: Pujin Shi --- drivers/powercap/idle_inject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c index 4310901a074e..6e1a0043c411 100644 --- a/drivers/powercap/idle_inject.c +++ b/drivers/powercap/idle_inject.c @@ -43,6 +43,7 @@ #include #include #include +#include #include -- 2.25.4