public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* checkpatch.pl should check UAPI headers don't #include <uapi/...>
@ 2012-12-18 14:23 David Howells
  2012-12-18 17:53 ` [PATCH] checkpatch: Warn on #include <uapi/ Joe Perches
  0 siblings, 1 reply; 10+ messages in thread
From: David Howells @ 2012-12-18 14:23 UTC (permalink / raw)
  To: Joe Perches, Marcelo Tosatti; +Cc: dhowells, Alexander Graf, linux-kernel


Hi Joe,

Can you make checkpatch.pl check that lines added to UAPI headers don't have
the form:

	#include <uapi/...>

or:

	#include "uapi/..."

Such as these should be regarded as errors as they will likely break userspace
which shouldn't get to see any uapi/ directories.

An example of this is in:

	commit 19bf7f8ac3f8131100027281c495dbbe00cd5ae0
	Merge: 787c57c 35fd3dc
	Author: Marcelo Tosatti <mtosatti@redhat.com>
	Date:   Mon Oct 29 19:15:32 2012 -0200

where during the conflict resolution, the following change was made:

	- #include <asm/epapr_hcalls.h>
	++#include <uapi/asm/epapr_hcalls.h>

I recognise that checkpatch.pl might not have helped in this case since it
isn't normally applied to merged as far as I know.

Thanks,
David

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

end of thread, other threads:[~2012-12-19 13:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18 14:23 checkpatch.pl should check UAPI headers don't #include <uapi/...> David Howells
2012-12-18 17:53 ` [PATCH] checkpatch: Warn on #include <uapi/ Joe Perches
2012-12-18 19:17   ` David Howells
2012-12-18 19:52     ` Joe Perches
2012-12-18 20:35       ` David Howells
2012-12-18 22:14         ` Joe Perches
2012-12-18 22:35           ` David Howells
2012-12-19  1:30             ` [PATCH V2] checkpatch: Warn on uapi #includes that " Joe Perches
2012-12-19 13:18               ` David Howells
2012-12-19 13:31               ` Andy Whitcroft

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