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: 44930 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Oyj-0002Ou-On; Wed, 11 Oct 2017 21:55:50 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbdJKVzr (ORCPT + 1 other); 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 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");