lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 22 Oct 2007 16:29:36 -0200
From:	Mauro Carvalho Chehab <>
To:	Patrick Boettcher <>
Cc:	Adrian Bunk <>,
	v4l-dvb maintainer list <>,
Subject: Re: [v4l-dvb-maintainer] DVB: BANDWIDTH_TO_KHZ strangeness

> I know that in the future the linux-dvb-API will also support other 
> bandwidths so I'm begging for mercy for those 3 things here to not get too 
> much out-of-sync with our internal code.

I don't see much problem on keeping this for a while. 

However, if not causing to much troubles for you to manage, I would to
this, instead:
#if 0
	/* Currently, DVB API allows only bandwidths starting from 5 GHz */
        factor = BANDWIDTH_TO_KHZ(ch->u.ofdm.bandwidth);
        if (factor >= 5000)
                factor = 1;
                factor = 6;
	factor = 6;

With the above code, scripts will automatically remove the
dead code from the Kernel, while keeping it defined at the development

If you want, you may also replace the #if 0 by something like:


In this case, by adding API_SUPPORTS_LOW_BANDWIDTH to, the
same effect of eliminating the dead code from kernel can be produced,
since is capable of evaluating cpp macros like the above to 0
(or 1) for the constants declared on a table inside its code.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists