Re: [PATCH] let sparse warn on &inline_function

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

 



Michael,

Let sparse warn, if we take pointers to inline functions.

I'm not sure if I understand the rationale for wanting to
do this.

Is it because you think taking the address will cause
an actual definition to be created (so its address can be
assigned) where there might not have been one in the first
place?

The inline specifier does not guarantee that the call will
be inlined.  It is only a hint to the compiler.

Presumably the address of a function is being taken because
it is needed.  What is the developer supposed to do instead?
Rewrite an algorithm?

Do you have any examples where this warning was useful?

--
Derek M. Jones                              tel: +44 (0) 1252 520 667
Knowledge Software Ltd                      mailto:derek@xxxxxxxxxxxx
Applications Standards Conformance Testing    http://www.knosof.co.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux