From patchwork Fri Apr 1 19:38:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 64899 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp7271lbc; Fri, 1 Apr 2016 12:39:06 -0700 (PDT) X-Received: by 10.66.100.196 with SMTP id fa4mr33615463pab.37.1459539546479; Fri, 01 Apr 2016 12:39:06 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id df2si8075861pad.176.2016.04.01.12.38.53; Fri, 01 Apr 2016 12:39:06 -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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754573AbcDATiv (ORCPT + 29 others); Fri, 1 Apr 2016 15:38:51 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:37454 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbcDATiu (ORCPT ); Fri, 1 Apr 2016 15:38:50 -0400 Received: by mail-wm0-f51.google.com with SMTP id p65so3198031wmp.0 for ; Fri, 01 Apr 2016 12:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=6KYH21fzliTX5mv8xGGZtqyBe5OrrXzDvzWz4sXVejg=; b=ibicEUpKhZnKN6isE14E/TT96S/fYNUCFnOwAJCDxRGfiXZf3yQYlx5uv62TJ7LQ0/ nJ7De/HnzYV/xuvMhIk6I1iKVjNHlF1gZuXrm7Q2jAenr8iM7h/wN++jg6IrrogdguWl g+RISQXnV3rFCEv311EWgu4J8N08A8qB3npUI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6KYH21fzliTX5mv8xGGZtqyBe5OrrXzDvzWz4sXVejg=; b=KX+eWf+cN3XsV7tNVnXDRhcZ5hBwd94oZ+1558W/k6/4dTQHkGmmumesDb4zFKQvqY r/6NpKZZ6yVGxVY96LXE2Ja/8ZveyD08OjcJTxhWHqVQEJNnhcGp7DXB0Q2v69+bzoVT yjrw3lUXIkuzbcjsP4gXDSXyOJow+fs7ThMWVpk23/jvJg+P9EFl0c2ZT0s+IJZ96436 BcVTIN/1teNZBhoVryBdP2ZSnyszhfLfZ7iBPYi7H9qkzC0J2PmbpeJRsdJW3fhlDLVS sBvwlirV3Px/lu72raiXgQ2znFQ7VwIAk3LMPy8/d7enXt9IxBM9CUu3hEBLVLr9OEd6 O+fQ== X-Gm-Message-State: AD7BkJLixqX6N4GW0sdtzOqrbJc+VFxq7+fZsuE1DXZPJEUPRijXLIsIZbG8jF6FLRgrrW0f X-Received: by 10.194.86.202 with SMTP id r10mr7621106wjz.113.1459539528493; Fri, 01 Apr 2016 12:38:48 -0700 (PDT) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id ka4sm15447722wjc.47.2016.04.01.12.38.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Apr 2016 12:38:47 -0700 (PDT) From: Daniel Lezcano To: p.zabel@pengutronix.de Cc: matthias.bgg@gmail.com, linux-kernel@vger.kernel.org (open list) Subject: [PATCH] reset: Add missing function stub for device_reset Date: Fri, 1 Apr 2016 21:38:16 +0200 Message-Id: <1459539496-823-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Mediatek's thermal driver fails to compile when the RESET_CONTROLLER option is not set. Logically, as the driver depends on this option to compile, the Kconfig should select it but actually that is not correct because the Kconfig provides also the COMPILE_TEST to increase the compile test coverage. By providing the missing 'device_reset' stub for the driver in reset.h, that let the kernel to compile on different platforms with the Mediatek thermal driver enabled with the COMPILE_TEST option. Signed-off-by: Daniel Lezcano --- include/linux/reset.h | 5 +++++ 1 file changed, 5 insertions(+) -- 1.9.1 diff --git a/include/linux/reset.h b/include/linux/reset.h index c4c097d..db8cd7b 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -72,6 +72,11 @@ static inline void reset_control_put(struct reset_control *rstc) WARN_ON(1); } +static inline int __must_check device_reset(struct device *dev) +{ + return -ENOTSUPP; +} + static inline int device_reset_optional(struct device *dev) { return -ENOTSUPP;