All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Krufky <mkrufky@linuxtv.org>
To: Johannes Weber <jowebe@web.de>
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] problems with smscoreapi
Date: Mon, 14 Jul 2008 00:35:33 -0400	[thread overview]
Message-ID: <487AD795.9030205@linuxtv.org> (raw)
In-Reply-To: <1068982688@web.de>

Johannes Weber wrote:
>  CC [M]  /root/v4l-dvb/v4l/smscoreapi.o
> /root/v4l-dvb/v4l/smscoreapi.c: In function 'smscore_detect_mode':
> /root/v4l-dvb/v4l/smscoreapi.c:689: error: 'uintptr_t' undeclared (first use in this function)
> /root/v4l-dvb/v4l/smscoreapi.c:689: error: (Each undeclared identifier is reported only once
> /root/v4l-dvb/v4l/smscoreapi.c:689: error: for each function it appears in.)
> /root/v4l-dvb/v4l/smscoreapi.c: In function 'smscore_set_device_mode':
> /root/v4l-dvb/v4l/smscoreapi.c:820: error: 'uintptr_t' undeclared (first use in this function)
> make[5]: *** [/root/v4l-dvb/v4l/smscoreapi.o] Error 1
> make[4]: *** [_module_/root/v4l-dvb/v4l] Error 2
> make[3]: *** [modules] Error 2
> make[2]: *** [modules] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.6.22.18-0.2-obj/i386/default'
> make[1]: *** [default] Error 2
> make[1]: Leaving directory `/root/v4l-dvb/v4l'
> make: *** [all] Error 2


Please try this patch:

# HG changeset patch
# User Michael Krufky <mkrufky@linuxtv.org>
# Date 1216010022 14400
# Node ID 9ccf2533792a1e91988ae827190d1472f96e1ba4
# Parent  d49b1e522b37ecdbe659b234f156788216216b11
sms1xxx: fix compat for kernel 2.6.22 and earlier

From: Michael Krufky <mkrufky@linuxtv.org>

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>

diff -r d49b1e522b37 -r 9ccf2533792a linux/drivers/media/dvb/siano/smscoreapi.h
--- a/linux/drivers/media/dvb/siano/smscoreapi.h	Sat Jul 12 18:58:24 2008 -0400
+++ b/linux/drivers/media/dvb/siano/smscoreapi.h	Mon Jul 14 00:33:42 2008 -0400
@@ -29,7 +29,7 @@
 #include <linux/scatterlist.h>
 #include <linux/types.h>
 #include <asm/page.h>
-
+#include "compat.h"
 #include "dmxdev.h"
 #include "dvbdev.h"
 #include "dvb_demux.h"
diff -r d49b1e522b37 -r 9ccf2533792a v4l/compat.h
--- a/v4l/compat.h	Sat Jul 12 18:58:24 2008 -0400
+++ b/v4l/compat.h	Mon Jul 14 00:33:42 2008 -0400
@@ -210,4 +210,8 @@ static inline struct proc_dir_entry *pro
 
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
+typedef unsigned long uintptr_t;
 #endif
+
+#endif

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

      reply	other threads:[~2008-07-14  4:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-13  8:24 [linux-dvb] problems with smscoreapi Johannes Weber
2008-07-14  4:35 ` Michael Krufky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=487AD795.9030205@linuxtv.org \
    --to=mkrufky@linuxtv.org \
    --cc=jowebe@web.de \
    --cc=linux-dvb@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.