ATM - fix seqfile compile failure
Subsystems (3)
PATCH 1/1 ATM - fix seqfile compile failure
The recent conversion to seq_file breaks CONFIG_ATM_BR2684_IPFILTER compile.
I have absolutely no idea what the original author was attempting to achieve with the "pos" thing, btw ... *shrug*
Entirely untested.
regards
john
net/atm/br2684.c +2 -2
@@ -732,8 +732,8 @@ static int br2684_seq_show(struct seq_fi#ifdef CONFIG_ATM_BR2684_IPFILTER #define b1 (var, byte) ((u8 *) &brvcc->filter.var)[byte]#define bs (var) b1(var, 0), b1(var, 1), b1(var, 2), b1(var, 3) -if (brvcc->filter.netmask !=0 && pos-- ==0 ) -return sprintf (buf," filter=%d.%d.%d.%d/" +if (brvcc->filter.netmask !=0 ) +seq_printf (seq," filter=%d.%d.%d.%d/" "%d.%d.%d.%d\n" ,bs (prefix),bs (netmask));#undef bs#undef b1
Quoted 2 lines
The recent conversion to
seq_filebreaksCONFIG_ATM_BR2684_IPFILTERcompile.
i sent in a patch for this already. i did a bit of testing.
Quoted 2 lines
I have absolutely no idea what the original author was attempting to achieve with the "pos" thing, btw ... *shrug*
the "pos" stuff was used by the old proc interface.