Received: by 10.192.165.148 with SMTP id m20csp3087054imm; Sun, 22 Apr 2018 23:44:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48qfcOGthBP67qpEZcTZ2oSUjeL2b61+ssn9d6LuQ4UBV/N+QImpJsN/NifEawL9IDMchDG X-Received: by 10.99.4.69 with SMTP id 66mr16416889pge.323.1524465860435; Sun, 22 Apr 2018 23:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524465860; cv=none; d=google.com; s=arc-20160816; b=HChUvDBpD6nBTVh5oAuNtcLJt4jcr5fv8R8BVhqucnubScblooNdigzHtz9XhsZ/NZ nbBZemptrLpTCW27uSpat3Au68CpFh0RvjiqgGNlIMIkpt+r7+QDbDXjcvVtWSbFG9m5 se4J4qYxMEzUHO6Tzi9p38cI8DD5iBG+rBn3iTdu5ITYYjCd0GqJrFpKA8gRkaX+m1YM rAu5gWtu34UFodszeKJKIGR0uvT07V83QM2jNd9I1Tsh5ZizvgDHQRJcHOMCcqOjGljx 4S9fte1mpuqPK8BDYHuogoQ0WWLcje7PwrMcffnpo21Akd+uwMpzGC6HsXVbj+xarWLb ePRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=awORWf6haatmJ2Gu/BvXubUWDoTVjHZhLrkhTKEYddk=; b=NLzVsbHgcbVzPTLtbrS1hOXdQEpqKeNfLw8rgwEakuV3WbHMVOaF5pAhAd75wON1ns Iww3SFpU5YTjUAq/IqvT/VYfhRHswmyXmHaUUtY3BEVfJ+sSM/mLq68z9Ml4LZMdlzM1 gtwUUl5F1Qz6SSJL6gTVQCDxMkJE+EHl14x3aLMOpkD4PKhTZj5bRa8z+mPMV4UDd8pv 0dENLUgs48+KuIIDPZoZiosAIELZMv34WhYFTAQ3WuSVfzsvkG+WYuziCngt7jWYy52f vNKZdtvh4FCCXJVP81cDdcWJkgaUjEEpashyFmFEZrlPQbgtXKCgsuAa06TtTlwUvxUw zwQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6-v6si10482500pll.40.2018.04.22.23.44.06; Sun, 22 Apr 2018 23:44:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754000AbeDWGmy (ORCPT + 99 others); Mon, 23 Apr 2018 02:42:54 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:24703 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753018AbeDWGmw (ORCPT ); Mon, 23 Apr 2018 02:42:52 -0400 X-UUID: db282b8663f5420796379f406801dee8-20180423 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 201821681; Mon, 23 Apr 2018 14:42:48 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 23 Apr 2018 14:42:46 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 23 Apr 2018 14:42:46 +0800 From: To: , , CC: , , , , , Sean Wang , Mark Brown Subject: [PATCH v2 1/2] regmap: include from include/linux/regmap.h Date: Mon, 23 Apr 2018 14:42:44 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Similar to the readx_poll_timeout() macro calling ktime_* and using ktime_t type, which is declared in . So, make include/linux/regmap.h explicitly include , like include/linux/iopoll.h does. Otherwise, users of the macro will see below errors. error: implicit declaration of function ‘ktime_add_us’ [-Werror=implicit-function-declaration] error: implicit declaration of function ‘ktime_get’ [-Werror=implicit-function-declaration] error: implicit declaration of function ‘ktime_compare’ [-Werror=implicit-function-declaration] include/linux/regmap.h:128:2: error: unknown type name ‘ktime_t’ ktime_t __timeout = ktime_add_us(ktime_get(), __timeout_us); \ Cc: Mark Brown Signed-off-by: Sean Wang --- include/linux/regmap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 5f7ad05..b6865f0 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -15,6 +15,7 @@ #include #include +#include #include #include #include -- 2.7.4