From patchwork Sun Nov 5 12:08:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schwarzott X-Patchwork-Id: 10042115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 686EA60244 for ; Sun, 5 Nov 2017 12:08:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 556A1289AD for ; Sun, 5 Nov 2017 12:08:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A63D289E5; Sun, 5 Nov 2017 12:08:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4D20289AD for ; Sun, 5 Nov 2017 12:08:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751658AbdKEMIi (ORCPT ); Sun, 5 Nov 2017 07:08:38 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:33458 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbdKEMIh (ORCPT ); Sun, 5 Nov 2017 07:08:37 -0500 Received: from gauss.fritz.box (unknown [IPv6:2001:a62:2d3:2e01:553e:3623:3ead:cddd]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zzam) by smtp.gentoo.org (Postfix) with ESMTPSA id CD2AE34164B; Sun, 5 Nov 2017 12:08:35 +0000 (UTC) From: Matthias Schwarzott To: hverkuil@xs4all.nl, linux-media@vger.kernel.org Cc: Matthias Schwarzott Subject: [PATCH] build: add fwnode_property_get_reference_args if not defined Date: Sun, 5 Nov 2017 13:08:41 +0100 Message-Id: <20171105120841.652-1-zzam@gentoo.org> X-Mailer: git-send-email 2.15.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add function dummy that returns -ENODATA. Copied struct fwnode_reference_args from include/linux/fwnode.h. Signed-off-by: Matthias Schwarzott --- v4l/compat.h | 19 +++++++++++++++++++ v4l/scripts/make_config_compat.pl | 1 + 2 files changed, 20 insertions(+) diff --git a/v4l/compat.h b/v4l/compat.h index f788e79..eec2974 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -2212,4 +2212,23 @@ static inline void timer_setup(struct timer_list *timer, #endif +#ifdef NEED_FWNODE_PROP_GET_REF_ARGS +#define NR_FWNODE_REFERENCE_ARGS 8 + +struct fwnode_reference_args { + struct fwnode_handle *fwnode; + /* unsigned int nargs; */ + unsigned int args[NR_FWNODE_REFERENCE_ARGS]; +}; + +static inline int fwnode_property_get_reference_args(const struct fwnode_handle *fwnode, + const char *prop, const char *nargs_prop, + unsigned int nargs, unsigned int index, + struct fwnode_reference_args *args) +{ + return -ENODATA; +} + +#endif + #endif /* _COMPAT_H */ diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl index 62eb6b9..9752ddf 100644 --- a/v4l/scripts/make_config_compat.pl +++ b/v4l/scripts/make_config_compat.pl @@ -707,6 +707,7 @@ sub check_other_dependencies() check_files_for_func("U32_MAX", "NEED_U32_MAX", "include/linux/kernel.h"); check_files_for_func("bsearch", "NEED_BSEARCH", "include/linux/bsearch.h"); check_files_for_func("timer_setup", "NEED_TIMER_SETUP", "include/linux/timer.h"); + check_files_for_func("fwnode_property_get_reference_args", "NEED_FWNODE_PROP_GET_REF_ARGS", "include/linux/property.h"); # For tests for uapi-dependent logic check_files_for_func_uapi("usb_endpoint_maxp", "NEED_USB_ENDPOINT_MAXP", "usb/ch9.h");