Probably not, but it's trivial to write a small C program that
translates the above to #define offsetfoobar 123 (just call
printf("#define offsetfoobar %d", offsetfoobar) for all the
offsetfoobars you need). Add a few Makefile rules, and you're done.
Take a look at arch/sparc64/kernel/check_asm.sh and the 'check_asm'
rule in the appropriate Makefiles... it's been done already and has
been working for a long time on the two sparc ports ;-)
Later,
David S. Miller
davem@dm.cobaltmicro.com