From patchwork Wed Oct 11 21:55:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jasmin J." X-Patchwork-Id: 10000701 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 3EC3960216 for ; Wed, 11 Oct 2017 21:55:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3645C28B9C for ; Wed, 11 Oct 2017 21:55:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AF8328BA0; Wed, 11 Oct 2017 21:55:50 +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 3604728B9C for ; Wed, 11 Oct 2017 21:55:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbdJKVzr (ORCPT ); Wed, 11 Oct 2017 17:55:47 -0400 Received: from mail.anw.at ([195.234.101.228]:58794 "EHLO mail.anw.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbdJKVzq (ORCPT ); Wed, 11 Oct 2017 17:55:46 -0400 Received: from hoppel.217.196.72.190 (anwhome.anw.at [195.234.103.23]) by mail.anw.at (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id v9BLtiEL024370; Wed, 11 Oct 2017 23:55:44 +0200 From: "Jasmin J." To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, d.scheller@gmx.net, jasmin@anw.at Subject: [PATCH] build: Add U32_MAX if not defined Date: Wed, 11 Oct 2017 23:55:34 +0200 Message-Id: <1507758934-11680-1-git-send-email-jasmin@anw.at> X-Mailer: git-send-email 2.7.4 X-Antivirus: checked in 0.021sec at mail.anw.at ([195.234.102.72]) by smf-clamd v1.2.1 - http://smfs.sf.net/ 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 From: Jasmin Jessich Compiling for Kernel 3.4 failed in "ir-lirc-codec.c" with error: 'U32_MAX' undeclared Signed-off-by: Jasmin Jessich --- v4l/compat.h | 4 ++++ v4l/scripts/make_config_compat.pl | 1 + 2 files changed, 5 insertions(+) diff --git a/v4l/compat.h b/v4l/compat.h index a20264c..15f2cd6 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -2166,4 +2166,8 @@ static inline unsigned long nsecs_to_jiffies_static(u64 n) #endif +#ifdef NEED_U32_MAX +#define U32_MAX ((u32)~0U) +#endif + #endif /* _COMPAT_H */ diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl index 53ca439..9fdf10d 100644 --- a/v4l/scripts/make_config_compat.pl +++ b/v4l/scripts/make_config_compat.pl @@ -704,6 +704,7 @@ sub check_other_dependencies() check_files_for_func("KEY_APPSELECT", "NEED_KEY_APPSELECT", "include/uapi/linux/input-event-codes.h"); check_files_for_func("PCI_DEVICE_SUB", "NEED_PCI_DEVICE_SUB", "include/linux/pci.h"); check_files_for_func("annotate_reachable", "NEED_ANNOTATE_REACHABLE", "include/linux/compiler.h"); + check_files_for_func("U32_MAX", "NEED_U32_MAX", "include/linux/kernel.h"); # For tests for uapi-dependent logic check_files_for_func_uapi("usb_endpoint_maxp", "NEED_USB_ENDPOINT_MAXP", "usb/ch9.h");