Re: Deprecating a #define(s) w/dtc

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



On Tue, Aug 20, 2019 at 01:19:42PM -0500, Kumar Gala wrote:
> Is there some operator/function we could define to be able to flag deprecated defines.
> 
> For example with gcc we can do:
> 
> #define __DEPRECATED_MACRO _Pragma("GCC warning \"Macro is deprecated\”")
> 
> So something like:
> 
> 	clock-frequency = < /deprecate/ I2C_BITRATE_STANDARD 100000 >;

I don't quite understand your example.  I assume the idea of the
__DEPRECATED_MACRO thing is that you put that in the macro definition,
so that it will warn you any time you use it.

But then your dts example has the /deprecate/ tag at the _invocation_
of the macro so I don't really see how that's useful.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux