[Compile Regression in 2.4.25-pre8][PATCH 5/42]

From: Kronos (kronos_at_kronoz.cjb.net)
Date: 02/02/04

  • Next message: Philip Martin: "Re: 2.6.1 slower than 2.4, smp/scsi/sw-raid/reiserfs"
    Date:	Mon, 2 Feb 2004 19:26:32 +0100
    To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
    
    

    amd7930_fn.h:35: warning: `initAMD' defined but not used

    There is a static array in a header file. I moved it in the c file.

    diff -Nru -X dontdiff linux-2.4-vanilla/drivers/isdn/hisax/amd7930_fn.c linux-2.4/drivers/isdn/hisax/amd7930_fn.c
    --- linux-2.4-vanilla/drivers/isdn/hisax/amd7930_fn.c Fri Nov 29 00:53:13 2002
    +++ linux-2.4/drivers/isdn/hisax/amd7930_fn.c Sat Jan 31 16:38:54 2004
    @@ -61,6 +61,40 @@
     #include <linux/interrupt.h>
     #include <linux/init.h>
     
    +static WORD initAMD[] __devinit = {
    + 0x0100,
    +
    + 0x00A5, 3, 0x01, 0x40, 0x58, // LPR, LMR1, LMR2
    + 0x0086, 1, 0x0B, // DMR1 (D-Buffer TH-Interrupts on)
    + 0x0087, 1, 0xFF, // DMR2
    + 0x0092, 1, 0x03, // EFCR (extended mode d-channel-fifo on)
    + 0x0090, 4, 0xFE, 0xFF, 0x02, 0x0F, // FRAR4, SRAR4, DMR3, DMR4 (address recognition )
    + 0x0084, 2, 0x80, 0x00, // DRLR
    + 0x00C0, 1, 0x47, // PPCR1
    + 0x00C8, 1, 0x01, // PPCR2
    +
    + 0x0102,
    + 0x0107,
    + 0x01A1, 1,
    + 0x0121, 1,
    + 0x0189, 2,
    +
    + 0x0045, 4, 0x61, 0x72, 0x00, 0x00, // MCR1, MCR2, MCR3, MCR4
    + 0x0063, 2, 0x08, 0x08, // GX
    + 0x0064, 2, 0x08, 0x08, // GR
    + 0x0065, 2, 0x99, 0x00, // GER
    + 0x0066, 2, 0x7C, 0x8B, // STG
    + 0x0067, 2, 0x00, 0x00, // FTGR1, FTGR2
    + 0x0068, 2, 0x20, 0x20, // ATGR1, ATGR2
    + 0x0069, 1, 0x4F, // MMR1
    + 0x006A, 1, 0x00, // MMR2
    + 0x006C, 1, 0x40, // MMR3
    + 0x0021, 1, 0x02, // INIT
    + 0x00A3, 1, 0x40, // LMR1
    +
    + 0xFFFF};
    +
    +
     static void Amd7930_new_ph(struct IsdnCardState *cs);
     
     
    diff -Nru -X dontdiff linux-2.4-vanilla/drivers/isdn/hisax/amd7930_fn.h linux-2.4/drivers/isdn/hisax/amd7930_fn.h
    --- linux-2.4-vanilla/drivers/isdn/hisax/amd7930_fn.h Fri Nov 29 00:53:13 2002
    +++ linux-2.4/drivers/isdn/hisax/amd7930_fn.h Sat Jan 31 16:39:05 2004
    @@ -32,38 +32,5 @@
     
     #define DBUSY_TIMER_VALUE 80
     
    -static WORD initAMD[] = {
    - 0x0100,
    -
    - 0x00A5, 3, 0x01, 0x40, 0x58, // LPR, LMR1, LMR2
    - 0x0086, 1, 0x0B, // DMR1 (D-Buffer TH-Interrupts on)
    - 0x0087, 1, 0xFF, // DMR2
    - 0x0092, 1, 0x03, // EFCR (extended mode d-channel-fifo on)
    - 0x0090, 4, 0xFE, 0xFF, 0x02, 0x0F, // FRAR4, SRAR4, DMR3, DMR4 (address recognition )
    - 0x0084, 2, 0x80, 0x00, // DRLR
    - 0x00C0, 1, 0x47, // PPCR1
    - 0x00C8, 1, 0x01, // PPCR2
    -
    - 0x0102,
    - 0x0107,
    - 0x01A1, 1,
    - 0x0121, 1,
    - 0x0189, 2,
    -
    - 0x0045, 4, 0x61, 0x72, 0x00, 0x00, // MCR1, MCR2, MCR3, MCR4
    - 0x0063, 2, 0x08, 0x08, // GX
    - 0x0064, 2, 0x08, 0x08, // GR
    - 0x0065, 2, 0x99, 0x00, // GER
    - 0x0066, 2, 0x7C, 0x8B, // STG
    - 0x0067, 2, 0x00, 0x00, // FTGR1, FTGR2
    - 0x0068, 2, 0x20, 0x20, // ATGR1, ATGR2
    - 0x0069, 1, 0x4F, // MMR1
    - 0x006A, 1, 0x00, // MMR2
    - 0x006C, 1, 0x40, // MMR3
    - 0x0021, 1, 0x02, // INIT
    - 0x00A3, 1, 0x40, // LMR1
    -
    - 0xFFFF};
    -
     extern void Amd7930_interrupt(struct IsdnCardState *cs, unsigned char irflags);
     extern void Amd7930_init(struct IsdnCardState *cs);

    -- 
    Reply-To: kronos@kronoz.cjb.net
    Home: http://kronoz.cjb.net
    Alcuni pensano che io sia una persona orribile, ma non vero. Ho il
    cuore di un ragazzino - in un vaso sulla scrivania.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Philip Martin: "Re: 2.6.1 slower than 2.4, smp/scsi/sw-raid/reiserfs"

    Relevant Pages

    • Re: deriving from CListCtrl
      ... //This is the beginning of the cpp for the child dialog in my dialog App ... void reportdialog::DoDataExchange ... //This is the end of the Header file for the child dialog in my dialog App ... //This is the Beginning of the cpp file for the Header column function. ...
      (microsoft.public.vc.mfc)
    • Re: Managed code, .H and .CPP
      ... void Method_A ... >>> set in the .H file, as they were inline methods. ... >>> managed code they are effectively inline methods or they are handled ...
      (microsoft.public.dotnet.languages.vc)
    • Re: need to compile this ( trying to find roots of a bisection)
      ... There is no such header file as conio.h. ... main returns an int, not void. ... If you are using some other language with vague ...
      (comp.lang.c)
    • Re: circular dependencies, unrecognized base types, oh-my
      ... > should I put a forward declaration of C in B.h and of B in C.h? ... You can't sensibly control which header file the compiler reaches first. ... I've added void C::functo ...
      (comp.lang.cpp)
    • [PATCH 03/14] [ISDN] Ready HiSax driver for modularization
      ... static void ... arcofi_timer(struct IsdnCardState *cs) { ... static void __init HiSaxVersion ... int ll_run ...
      (Linux-Kernel)