mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sparse warnings on undeclared asmlinkage
@ 2019-10-11 16:18 Ben Dooks
  2019-10-11 18:53 ` Luc Van Oostenryck
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2019-10-11 16:18 UTC (permalink / raw)
  To: linux-kernel, linux-sparse

I was reviewing the sparse output for the current kernel release and
note there are a number of warnings about un-declared functions which
are only used for code in assembly.

I was wondering if we should just ignore those, and have either a
new attribute for "undeclared is ok" or to make spare just ignore
anything with the syscall_linkage attribute?

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

https://www.codethink.co.uk/privacy.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sparse warnings on undeclared asmlinkage
  2019-10-11 16:18 sparse warnings on undeclared asmlinkage Ben Dooks
@ 2019-10-11 18:53 ` Luc Van Oostenryck
  0 siblings, 0 replies; 2+ messages in thread
From: Luc Van Oostenryck @ 2019-10-11 18:53 UTC (permalink / raw)
  To: Ben Dooks; +Cc: linux-kernel, linux-sparse

On Fri, Oct 11, 2019 at 05:18:58PM +0100, Ben Dooks wrote:
> I was reviewing the sparse output for the current kernel release and
> note there are a number of warnings about un-declared functions which
> are only used for code in assembly.
> 
> I was wondering if we should just ignore those, and have either a
> new attribute for "undeclared is ok" or to make spare just ignore
> anything with the syscall_linkage attribute?

There is already an attribute and it's corresponding kernel define:
__attribute__((__externally_visible__)), aka __visible.

My point of view on the subject is more about the lines:
* who knows about __visble/externally_visible?
* what's wrong/are the disadvantge to adding the prototype?
But it seems that some maintainers are against using prototypes
for functions only used in assembly.

Cheers,
-- Luc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-11 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 16:18 sparse warnings on undeclared asmlinkage Ben Dooks
2019-10-11 18:53 ` Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®