[patchlet] Compile warning in drivers/media/video/bttv-cards.c (240t8p1)

From: Rasmus Andersen (rasmus@jaquet.dk)
Date: Thu Aug 31 2000 - 16:15:45 EDT

  • Next message: Chris Wedgwood: "Re: Newbie question: mmap() and file descriptor limits"

    Hi.

    When I compile drivers/media/video/bttv-cards.c I get the following
    warnings:

    bttv-cards.c:781: warning: `init_tea5757' defined but not used

    Since the call to init_tea5757() is languishing inside an #if 0
    construct the following patch does the same to the function
    declarations. Please comment:

    --- linux-240test7-pre7-clean/drivers/media/video/bttv-cards.c Wed Aug 23 08:50:19 2000
    +++ linux/drivers/media/video/bttv-cards.c Wed Aug 23 19:35:58 2000
    @@ -41,7 +41,9 @@
     static void hauppauge_eeprom(struct bttv *btv);
     static void hauppauge_boot_msp34xx(struct bttv *btv);
     static void init_PXC200(struct bttv *btv);
    +#if 0
     static void init_tea5757(struct bttv *btv);
    +#endif /*0*/
     
     MODULE_PARM(card,"1-4i");
     MODULE_PARM(pll,"1-4i");
    @@ -778,6 +780,7 @@
             if (bttv_debug) tea_read(btv);
     }
     
    +#if 0
     void init_tea5757(struct bttv *btv)
     {
             BUS_LOW(CLK);
    @@ -788,6 +791,7 @@
             /* normal mode for GPIO */
             btaor(0, BT848_GPIO_DMA_CTL_GPIOMODE, BT848_GPIO_DMA_CTL);
     }
    +#endif /*0*/
     
     /* ----------------------------------------------------------------------- */
     /* winview */

    -- 
            Rasmus(rasmus@jaquet.dk)
    

    Without censorship, things can get terribly confused in the public mind. -General William Westmoreland, during the war in Viet Nam - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 16:24:02 EDT