From patchwork Mon Sep 21 16:00:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pujin Shi X-Patchwork-Id: 256724 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C87D1C43468 for ; Mon, 21 Sep 2020 16:00:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 69728216C4 for ; Mon, 21 Sep 2020 16:00:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QnEDrJd5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbgIUQA0 (ORCPT ); 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-Google-Smtp-Source: ABdhPJzDYQ+qQl0zHfHu3dx0mPPwS7Piu9hDRkwW6ap//krle+V13oNG9arVJDRIlibdmn77a15DbA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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