xref: /third_party/ltp/tools/sparse/sparse-src/validation/fored_arg.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_ci/*
2f08c3bdfSopenharmony_ci * check-name: Forced function argument type.
3f08c3bdfSopenharmony_ci */
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ci#define __iomem	__attribute__((noderef, address_space(2)))
6f08c3bdfSopenharmony_ci#define __force __attribute__((force))
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_cistatic void foo(__force void * addr)
9f08c3bdfSopenharmony_ci{
10f08c3bdfSopenharmony_ci}
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_ci
13f08c3bdfSopenharmony_cistatic void bar(void)
14f08c3bdfSopenharmony_ci{
15f08c3bdfSopenharmony_ci	void __iomem  *a;
16f08c3bdfSopenharmony_ci	foo(a);
17f08c3bdfSopenharmony_ci}
18f08c3bdfSopenharmony_ci
19

Indexes created Thu Nov 07 10:32:03 CST 2024