Hi, does someone have a 64 bit system and/or time to look into this? Something like this seems to work on a regular i386 machine to get the 64bit related warnings: $ make ARCH=x86_64 CC="gcc -m64" allyesconfig $ make ARCH=x86_64 CC="gcc -m64" drivers/media/ I attach what I get from compiling 2.6.14-rc5-git6. I haven't tried to compile dvb-kernel CVS with "gcc -m64". Johannes ----- Forwarded message from akpm@xxxxxxxx ----- Subject: + dvb-usb-urb-printk-fix.patch added to -mm tree Date: Sun, 23 Oct 2005 23:58:19 -0700 From: akpm@xxxxxxxx To: akpm@xxxxxxxx, js@xxxxxxxxxxx, mm-commits@xxxxxxxxxxxxxxx The patch titled dvb-usb-urb printk fix has been added to the -mm tree. Its filename is dvb-usb-urb-printk-fix.patch From: Andrew Morton <akpm@xxxxxxxx> drivers/media/dvb/dvb-usb/dvb-usb-urb.c: In function `dvb_usb_allocate_stream_buffers': drivers/media/dvb/dvb-usb/dvb-usb-urb.c:199: warning: int format, different type arg (arg 4) Don't assume that dma_addr_t is 32-bit. (dvb has quite a few such warnings. Please compile it with a 64-bit compiler, fix them up - some are oopsable). Cc: Johannes Stezenbach <js@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/media/dvb/dvb-usb/dvb-usb-urb.c | 4 +++- media/dvb/dvb-core/dvb_frontend.c | 0 2 files changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/media/dvb/dvb-usb/dvb-usb-urb.c~dvb-usb-urb-printk-fix drivers/media/dvb/dvb-usb/dvb-usb-urb.c --- 25/drivers/media/dvb/dvb-usb/dvb-usb-urb.c~dvb-usb-urb-printk-fix 2005-10-23 23:00:13.000000000 -0700 +++ 25-akpm/drivers/media/dvb/dvb-usb/dvb-usb-urb.c 2005-10-23 23:00:42.000000000 -0700 @@ -196,7 +196,9 @@ static int dvb_usb_allocate_stream_buffe dvb_usb_free_stream_buffers(d); return -ENOMEM; } - deb_mem("buffer %d: %p (dma: %d)\n",d->buf_num,d->buf_list[d->buf_num],d->dma_addr[d->buf_num]); + deb_mem("buffer %d: %p (dma: %llu)\n", + d->buf_num, d->buf_list[d->buf_num], + (unsigned long long)d->dma_addr[d->buf_num]); memset(d->buf_list[d->buf_num],0,size); } deb_mem("allocation successful\n"); -------------- next part -------------- HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include HOSTCC scripts/basic/docproc SPLIT include/linux/autoconf.h -> include/config/* HOSTCC scripts/genksyms/genksyms.o HOSTCC scripts/genksyms/lex.o HOSTCC scripts/genksyms/parse.o HOSTLD scripts/genksyms/genksyms CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost HOSTCC scripts/kallsyms HOSTCC scripts/pnmtologo HOSTCC scripts/conmakehash HOSTCC scripts/bin2c CHK include/linux/version.h CC arch/x86_64/kernel/asm-offsets.s GEN include/asm-x86_64/asm-offsets.h CC drivers/media/common/saa7146_i2c.o CC drivers/media/common/saa7146_core.o CC drivers/media/common/saa7146_vv_ksyms.o CC drivers/media/common/saa7146_fops.o CC drivers/media/common/saa7146_video.o CC drivers/media/common/saa7146_hlp.o drivers/media/common/saa7146_hlp.c: In function 'saa7146_set_position': drivers/media/common/saa7146_hlp.c:565: warning: cast from pointer to integer of different size CC drivers/media/common/saa7146_vbi.o LD drivers/media/common/saa7146.o LD drivers/media/common/saa7146_vv.o CC drivers/media/common/ir-common.o LD drivers/media/common/built-in.o CC drivers/media/dvb/b2c2/flexcop-pci.o drivers/media/dvb/b2c2/flexcop-pci.c: In function 'flexcop_pci_isr': drivers/media/dvb/b2c2/flexcop-pci.c:164: warning: format '%08x' expects type 'unsigned int', but argument 4 has type 'dma_addr_t' CC drivers/media/dvb/b2c2/flexcop-usb.o CC drivers/media/dvb/b2c2/flexcop.o CC drivers/media/dvb/b2c2/flexcop-fe-tuner.o CC drivers/media/dvb/b2c2/flexcop-i2c.o CC drivers/media/dvb/b2c2/flexcop-sram.o CC drivers/media/dvb/b2c2/flexcop-eeprom.o CC drivers/media/dvb/b2c2/flexcop-misc.o CC drivers/media/dvb/b2c2/flexcop-hw-filter.o CC drivers/media/dvb/b2c2/flexcop-dma.o LD drivers/media/dvb/b2c2/b2c2-flexcop.o LD drivers/media/dvb/b2c2/b2c2-flexcop-pci.o LD drivers/media/dvb/b2c2/b2c2-flexcop-usb.o LD drivers/media/dvb/b2c2/built-in.o CC drivers/media/dvb/bt8xx/bt878.o CC drivers/media/dvb/bt8xx/dvb-bt8xx.o CC drivers/media/dvb/bt8xx/dst.o CC drivers/media/dvb/bt8xx/dst_ca.o drivers/media/dvb/bt8xx/dst_ca.c:588: warning: initialization from incompatible pointer type drivers/media/dvb/bt8xx/dst_ca.c:590: warning: initialization from incompatible pointer type LD drivers/media/dvb/bt8xx/built-in.o CC drivers/media/dvb/cinergyT2/cinergyT2.o LD drivers/media/dvb/cinergyT2/built-in.o CC drivers/media/dvb/dvb-core/dvbdev.o CC drivers/media/dvb/dvb-core/dmxdev.o CC drivers/media/dvb/dvb-core/dvb_demux.o CC drivers/media/dvb/dvb-core/dvb_filter.o CC drivers/media/dvb/dvb-core/dvb_ca_en50221.o drivers/media/dvb/dvb-core/dvb_ca_en50221.c: In function 'dvb_ca_en50221_io_read_condition': drivers/media/dvb/dvb-core/dvb_ca_en50221.c:1391: warning: passing argument 3 of 'dvb_ringbuffer_pkt_next' from incompatible pointer type drivers/media/dvb/dvb-core/dvb_ca_en50221.c:1402: warning: passing argument 3 of 'dvb_ringbuffer_pkt_next' from incompatible pointer type CC drivers/media/dvb/dvb-core/dvb_frontend.o drivers/media/dvb/dvb-core/dvb_frontend.c: In function 'dvb_frontend_ioctl': drivers/media/dvb/dvb-core/dvb_frontend.c:728: warning: cast from pointer to integer of different size drivers/media/dvb/dvb-core/dvb_frontend.c:741: warning: cast from pointer to integer of different size CC drivers/media/dvb/dvb-core/dvb_net.o drivers/media/dvb/dvb-core/dvb_net.c: In function 'dvb_net_do_ioctl': drivers/media/dvb/dvb-core/dvb_net.c:1290: warning: cast from pointer to integer of different size drivers/media/dvb/dvb-core/dvb_net.c:1292: warning: cast from pointer to integer of different size CC drivers/media/dvb/dvb-core/dvb_ringbuffer.o LD drivers/media/dvb/dvb-core/dvb-core.o LD drivers/media/dvb/dvb-core/built-in.o CC drivers/media/dvb/dvb-usb/a800.o CC drivers/media/dvb/dvb-usb/cxusb.o CC drivers/media/dvb/dvb-usb/dibusb-common.o CC drivers/media/dvb/dvb-usb/dibusb-mb.o CC drivers/media/dvb/dvb-usb/dibusb-mc.o CC drivers/media/dvb/dvb-usb/digitv.o CC drivers/media/dvb/dvb-usb/dtt200u.o CC drivers/media/dvb/dvb-usb/dtt200u-fe.o CC drivers/media/dvb/dvb-usb/nova-t-usb2.o CC drivers/media/dvb/dvb-usb/umt-010.o CC drivers/media/dvb/dvb-usb/vp702x.o CC drivers/media/dvb/dvb-usb/vp702x-fe.o CC drivers/media/dvb/dvb-usb/vp7045.o CC drivers/media/dvb/dvb-usb/vp7045-fe.o CC drivers/media/dvb/dvb-usb/dvb-usb-firmware.o CC drivers/media/dvb/dvb-usb/dvb-usb-init.o CC drivers/media/dvb/dvb-usb/dvb-usb-urb.o drivers/media/dvb/dvb-usb/dvb-usb-urb.c: In function 'dvb_usb_allocate_stream_buffers': drivers/media/dvb/dvb-usb/dvb-usb-urb.c:199: warning: format '%d' expects type 'int', but argument 4 has type 'long long unsigned int' CC drivers/media/dvb/dvb-usb/dvb-usb-i2c.o CC drivers/media/dvb/dvb-usb/dvb-usb-dvb.o CC drivers/media/dvb/dvb-usb/dvb-usb-remote.o LD drivers/media/dvb/dvb-usb/dvb-usb.o LD drivers/media/dvb/dvb-usb/dvb-usb-vp7045.o LD drivers/media/dvb/dvb-usb/dvb-usb-vp702x.o LD drivers/media/dvb/dvb-usb/dvb-usb-dtt200u.o LD drivers/media/dvb/dvb-usb/dvb-usb-dibusb-common.o LD drivers/media/dvb/dvb-usb/dvb-usb-a800.o LD drivers/media/dvb/dvb-usb/dvb-usb-dibusb-mb.o LD drivers/media/dvb/dvb-usb/dvb-usb-dibusb-mc.o LD drivers/media/dvb/dvb-usb/dvb-usb-nova-t-usb2.o LD drivers/media/dvb/dvb-usb/dvb-usb-umt-010.o LD drivers/media/dvb/dvb-usb/dvb-usb-digitv.o LD drivers/media/dvb/dvb-usb/dvb-usb-cxusb.o LD drivers/media/dvb/dvb-usb/built-in.o CC drivers/media/dvb/frontends/dvb-pll.o CC drivers/media/dvb/frontends/stv0299.o CC drivers/media/dvb/frontends/sp8870.o CC drivers/media/dvb/frontends/cx22700.o CC drivers/media/dvb/frontends/at76c651.o CC drivers/media/dvb/frontends/cx24110.o CC drivers/media/dvb/frontends/tda8083.o CC drivers/media/dvb/frontends/l64781.o CC drivers/media/dvb/frontends/dib3000mb.o CC drivers/media/dvb/frontends/dib3000-common.o CC drivers/media/dvb/frontends/dib3000mc.o CC drivers/media/dvb/frontends/mt312.o CC drivers/media/dvb/frontends/ves1820.o CC drivers/media/dvb/frontends/ves1x93.o CC drivers/media/dvb/frontends/tda1004x.o CC drivers/media/dvb/frontends/sp887x.o CC drivers/media/dvb/frontends/nxt6000.o CC drivers/media/dvb/frontends/mt352.o CC drivers/media/dvb/frontends/cx22702.o CC drivers/media/dvb/frontends/tda80xx.o CC drivers/media/dvb/frontends/tda10021.o CC drivers/media/dvb/frontends/stv0297.o CC drivers/media/dvb/frontends/nxt2002.o CC drivers/media/dvb/frontends/or51211.o drivers/media/dvb/frontends/or51211.c: In function 'or51211_load_firmware': drivers/media/dvb/frontends/or51211.c:113: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' CC drivers/media/dvb/frontends/or51132.o CC drivers/media/dvb/frontends/bcm3510.o drivers/media/dvb/frontends/bcm3510.c: In function 'bcm3510_download_firmware': drivers/media/dvb/frontends/bcm3510.c:623: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' drivers/media/dvb/frontends/bcm3510.c:629: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'size_t' CC drivers/media/dvb/frontends/s5h1420.o CC drivers/media/dvb/frontends/lgdt330x.o LD drivers/media/dvb/frontends/built-in.o CC drivers/media/dvb/pluto2/pluto2.o LD drivers/media/dvb/pluto2/built-in.o CC drivers/media/dvb/ttpci/budget-core.o CC drivers/media/dvb/ttpci/budget.o CC drivers/media/dvb/ttpci/ttpci-eeprom.o CC drivers/media/dvb/ttpci/budget-av.o CC drivers/media/dvb/ttpci/budget-ci.o CC drivers/media/dvb/ttpci/budget-patch.o CC drivers/media/dvb/ttpci/av7110_hw.o CC drivers/media/dvb/ttpci/av7110_v4l.o CC drivers/media/dvb/ttpci/av7110_av.o CC drivers/media/dvb/ttpci/av7110_ca.o CC drivers/media/dvb/ttpci/av7110.o CC drivers/media/dvb/ttpci/av7110_ipack.o CC drivers/media/dvb/ttpci/av7110_ir.o LD drivers/media/dvb/ttpci/dvb-ttpci.o LD drivers/media/dvb/ttpci/built-in.o CC drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.o LD drivers/media/dvb/ttusb-budget/built-in.o CC drivers/media/dvb/ttusb-dec/ttusb_dec.o CC drivers/media/dvb/ttusb-dec/ttusbdecfe.o LD drivers/media/dvb/ttusb-dec/built-in.o LD drivers/media/dvb/built-in.o CC drivers/media/radio/radio-maxiradio.o CC drivers/media/radio/radio-gemtek-pci.o CC drivers/media/radio/radio-maestro.o LD drivers/media/radio/built-in.o CC drivers/media/video/videodev.o CC drivers/media/video/v4l2-common.o CC drivers/media/video/v4l1-compat.o CC drivers/media/video/bttv-driver.o CC drivers/media/video/bttv-cards.o CC drivers/media/video/bttv-if.o CC drivers/media/video/bttv-risc.o CC drivers/media/video/bttv-vbi.o CC drivers/media/video/bttv-i2c.o CC drivers/media/video/bttv-gpio.o CC drivers/media/video/saa6588.o CC drivers/media/video/tuner-core.o CC drivers/media/video/tuner-simple.o CC drivers/media/video/mt20xx.o CC drivers/media/video/tda8290.o CC drivers/media/video/tea5767.o CC drivers/media/video/zoran_procfs.o CC drivers/media/video/zoran_device.o drivers/media/video/zoran_device.c: In function 'zr36057_overlay': drivers/media/video/zoran_device.c:539: warning: cast from pointer to integer of different size CC drivers/media/video/zoran_driver.o CC drivers/media/video/zoran_card.o drivers/media/video/zoran_card.c:149: warning: 'zr36067_pci_tbl' defined but not used LD drivers/media/video/bttv.o CC drivers/media/video/msp3400.o CC drivers/media/video/tvaudio.o CC drivers/media/video/tda7432.o CC drivers/media/video/tda9875.o CC drivers/media/video/ir-kbd-i2c.o CC drivers/media/video/ir-kbd-gpio.o CC drivers/media/video/tvmixer.o LD drivers/media/video/rds.o CC drivers/media/video/saa5246a.o CC drivers/media/video/saa5249.o CC drivers/media/video/c-qcam.o CC drivers/media/video/bw-qcam.o CC drivers/media/video/w9966.o CC drivers/media/video/saa7111.o CC drivers/media/video/saa7185.o CC drivers/media/video/zr36060.o CC drivers/media/video/saa7110.o CC drivers/media/video/adv7175.o CC drivers/media/video/vpx3220.o CC drivers/media/video/zr36050.o CC drivers/media/video/zr36016.o CC drivers/media/video/bt819.o CC drivers/media/video/bt856.o CC drivers/media/video/saa7114.o CC drivers/media/video/adv7170.o LD drivers/media/video/zr36067.o CC drivers/media/video/videocodec.o CC drivers/media/video/stradis.o CC drivers/media/video/cpia.o CC drivers/media/video/cpia_pp.o CC drivers/media/video/cpia_usb.o CC drivers/media/video/cx88/cx88-video.o CC drivers/media/video/cx88/cx88-vbi.o CC drivers/media/video/cx88/cx88-mpeg.o CC drivers/media/video/cx88/cx88-cards.o CC drivers/media/video/cx88/cx88-core.o CC drivers/media/video/cx88/cx88-i2c.o CC drivers/media/video/cx88/cx88-tvaudio.o CC drivers/media/video/cx88/cx88-input.o LD drivers/media/video/cx88/cx88xx.o LD drivers/media/video/cx88/cx8800.o LD drivers/media/video/cx88/cx8802.o CC drivers/media/video/cx88/cx88-blackbird.o CC drivers/media/video/cx88/cx88-dvb.o LD drivers/media/video/cx88/built-in.o CC drivers/media/video/ovcamchip/ovcamchip_core.o CC drivers/media/video/ovcamchip/ov6x20.o CC drivers/media/video/ovcamchip/ov6x30.o CC drivers/media/video/ovcamchip/ov7x10.o CC drivers/media/video/ovcamchip/ov7x20.o CC drivers/media/video/ovcamchip/ov76be.o LD drivers/media/video/ovcamchip/ovcamchip.o LD drivers/media/video/ovcamchip/built-in.o CC drivers/media/video/saa7134/saa7134-cards.o CC drivers/media/video/saa7134/saa7134-core.o CC drivers/media/video/saa7134/saa7134-i2c.o CC drivers/media/video/saa7134/saa7134-oss.o CC drivers/media/video/saa7134/saa7134-ts.o CC drivers/media/video/saa7134/saa7134-tvaudio.o CC drivers/media/video/saa7134/saa7134-vbi.o CC drivers/media/video/saa7134/saa7134-video.o CC drivers/media/video/saa7134/saa7134-input.o LD drivers/media/video/saa7134/saa7134.o CC drivers/media/video/saa7134/saa7134-empress.o CC drivers/media/video/saa7134/saa6752hs.o CC drivers/media/video/saa7134/saa7134-dvb.o LD drivers/media/video/saa7134/built-in.o LD drivers/media/video/tuner.o CC drivers/media/video/tda9840.o CC drivers/media/video/tea6415c.o CC drivers/media/video/tea6420.o CC drivers/media/video/mxb.o CC drivers/media/video/hexium_orion.o CC drivers/media/video/hexium_gemini.o CC drivers/media/video/dpc7146.o CC drivers/media/video/tuner-3036.o CC drivers/media/video/tda9887.o CC drivers/media/video/video-buf.o CC drivers/media/video/video-buf-dvb.o CC drivers/media/video/btcx-risc.o CC drivers/media/video/tveeprom.o LD drivers/media/video/built-in.o LD drivers/media/built-in.o