From patchwork Fri Jul 1 11:19:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102062 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp249532qgy; Fri, 1 Jul 2016 04:26:33 -0700 (PDT) X-Received: by 10.66.120.138 with SMTP id lc10mr30250602pab.33.1467372392966; Fri, 01 Jul 2016 04:26:32 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xq1si3913664pab.11.2016.07.01.04.26.32; Fri, 01 Jul 2016 04:26:32 -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 S1752686AbcGAL0b (ORCPT + 30 others); Fri, 1 Jul 2016 07:26:31 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:50995 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751960AbcGAL03 (ORCPT ); Fri, 1 Jul 2016 07:26:29 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0LyVBG-1bLmgl2K2w-015o0H; Fri, 01 Jul 2016 13:17:41 +0200 From: Arnd Bergmann To: Hans Verkuil , Mauro Carvalho Chehab Cc: Arnd Bergmann , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [media] cec: add missing inline stubs Date: Fri, 1 Jul 2016 13:19:56 +0200 Message-Id: <20160701112027.102024-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:Qav4YDF/v/5wpWhbZ4o7eNxGfHJiS9nDO2Xf/wunwSl9sTJ9Wtk RF5/ml/Qz3D+1uiOgpwc/KxUwyjZZQzX12TofzZAXxTMLwYfnAod0m96J6YnLWsiMBNU1lu GWCF1LhXa5uA5jmtlP48XxgY4Y/2P1fKzSPng4i2Tt1GpYWPbchKBJWlb67VHdUJ7R9/l+F 0ez77dtpI3Hpdnrh/+8Og== X-UI-Out-Filterresults: notjunk:1; V01:K0:4HvMvUBn3tU=:E0FNzlmrWs+9LcO42XYC3h Yv7cHmbnNJoJOUxr5nrCSckRF7SG0ILG00VE3IgI3TVUHCqVv3SgvXhkdxNH+XU5df6nAq8Bk zUyXxlxxbZEd05snY/y6yEhZV+l0nq7KagVmRn0nCzWo7w3Vb114dBqNSXNNQ5TlysMD/GOCF Qze2SscCGkkmZpYgAENWyA4H1Mw/5VsqzbeKvCSjBtBJIpXtCEXrBpXXgEofwd5MuEWvvl+aF UHxfUca5Gf1mU0S3TUSWpztMaarIITCmOZWvN2dF2C4vtSMT+U9RyOGcXbHddyeLw27ZbMQNu GN3GpOx3kcqSlpIl/oYfLWvYIskA0974fnOHRPU11YwTOcqVlL8hQXkqbGW1zTGtBHhnyNfQu 658+sYlQJxasaoRb1SQiWg63YXyHV0H3vXW81LkH0hL6CWCDrEX/t0j8SnsEFWXps5Gp2bFBr smVc6jxwv0loA3N6F71CKkDF+YlHGWXME8TSRbgxRHu1JIcBYqcPRoLr+KgvnNCdVV4ar9jsN iJz3ZQXebQz7HPzNCzL3zsHMWVk5DccHUscsvpZXPC7Yqc87hdT1o80BAq0MdCxzI9iV/6xaV c2xUTktX0FWycsnQwYXlYsAmBzJKQA6AJkF2e6JkjFBtvefpuab2rOSfgKXt1G/uw0taR3ggu odEapiDqyEWU/1L9f6ENyN4i4MtpISdG9RR/7XwsCDBhyBNeQTIdqrqJ6bdejMI57x7E= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The linux/cec.h header file contains empty inline definitions for a subset of the API for the case in which CEC is not enabled, however we have driver that call other functions as well: drivers/media/i2c/adv7604.c: In function 'adv76xx_cec_tx_raw_status': drivers/media/i2c/adv7604.c:1956:3: error: implicit declaration of function 'cec_transmit_done' [-Werror=implicit-function-declaration] drivers/media/i2c/adv7604.c: In function 'adv76xx_cec_isr': drivers/media/i2c/adv7604.c:2012:4: error: implicit declaration of function 'cec_received_msg' [-Werror=implicit-function-declaration] drivers/media/i2c/adv7604.c: In function 'adv76xx_probe': drivers/media/i2c/adv7604.c:3482:20: error: implicit declaration of function 'cec_allocate_adapter' [-Werror=implicit-function-declaration] This adds stubs for the remaining interfaces as well. Signed-off-by: Arnd Bergmann --- include/media/cec.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.9.0 diff --git a/include/media/cec.h b/include/media/cec.h index 9a791c08a789..c462f9b44074 100644 --- a/include/media/cec.h +++ b/include/media/cec.h @@ -208,6 +208,12 @@ void cec_transmit_done(struct cec_adapter *adap, u8 status, u8 arb_lost_cnt, void cec_received_msg(struct cec_adapter *adap, struct cec_msg *msg); #else +static inline struct cec_adapter *cec_allocate_adapter( + const struct cec_adap_ops *ops, void *priv, const char *name, + u32 caps, u8 available_las, struct device *parent) +{ + return NULL; +} static inline int cec_register_adapter(struct cec_adapter *adap) { @@ -227,6 +233,25 @@ static inline void cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, { } +static inline int cec_transmit_msg(struct cec_adapter *adap, + struct cec_msg *msg, bool block) +{ + return 0; +} + +/* Called by the adapter */ +static inline void cec_transmit_done(struct cec_adapter *adap, u8 status, + u8 arb_lost_cnt, u8 nack_cnt, + u8 low_drive_cnt, u8 error_cnt) +{ +} + +static inline void cec_received_msg(struct cec_adapter *adap, + struct cec_msg *msg) +{ +} + + #endif #endif /* _MEDIA_CEC_H */