Search Linux Wireless

Re: [RFC v3 6/8] kconfig: introduce "count"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2015-11-12 at 08:59 +0100, Johannes Berg wrote:
> On Wed, 2015-11-11 at 23:15 +0100, Johannes Berg wrote:
> >  
> > +static unsigned long long count_or_symbols(struct expr *e)
> > +{
> > +	switch (e->type) {
> > +	case E_SYMBOL:
> > +		return 1;
> 
> Oh, this is obviously bogus - I need to count the *enabled* symbols.
> 

-               return 1;
+               sym_calc_value(e->left.sym);
+               return e->left.sym->curr.tri != no;

works properly.

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux