Use <sys/ktr.h> directly in .S files instead of exporting the

KTR_* class macros via genassym.c. Together with sys/sys/ktr.h
rev. 1.34 this has the desired side-effect of providing a default
value for KTR_COMPILE. Thus this fixes warnings from -Wundef
regarding KTR_COMPILE not being defined for .S files.

Requested by:	ru
Reviewed by:	ru
This commit is contained in:
Marius Strobl 2005-12-06 16:38:08 +00:00
parent 3e4e0e14f6
commit b6c63e2a81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153175
2 changed files with 2 additions and 14 deletions

View File

@ -32,6 +32,8 @@
#ifndef _MACHINE_KTR_H_
#define _MACHINE_KTR_H_
#include <sys/ktr.h>
#include <machine/upa.h>
#ifndef LOCORE

View File

@ -138,20 +138,6 @@ ASSYM(IC_LINESIZE, offsetof(struct cacheinfo, ic_linesize));
ASSYM(ICA_PA, offsetof(struct ipi_cache_args, ica_pa));
ASSYM(KTR_PROC, KTR_PROC);
ASSYM(KTR_TRAP, KTR_TRAP);
ASSYM(KTR_SMP, KTR_SMP);
ASSYM(KTR_SYSC, KTR_SYSC);
ASSYM(KTR_INTR, KTR_INTR);
ASSYM(KTR_CT1, KTR_CT1);
ASSYM(KTR_CT2, KTR_CT2);
ASSYM(KTR_CT3, KTR_CT3);
ASSYM(KTR_CT4, KTR_CT4);
ASSYM(KTR_CT5, KTR_CT5);
ASSYM(KTR_CT6, KTR_CT6);
ASSYM(KTR_CT7, KTR_CT7);
ASSYM(KTR_CT8, KTR_CT8);
ASSYM(KTR_SIZEOF, sizeof(struct ktr_entry));
ASSYM(KTR_LINE, offsetof(struct ktr_entry, ktr_line));
ASSYM(KTR_FILE, offsetof(struct ktr_entry, ktr_file));