ac.ac_ahz just looks a bit weird (fwd)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---------- Forwarded message ----------
Date: Tue, 27 Nov 2007 14:26:19 -0500 (EST)
From: Robert P. J. Day <rpjday@xxxxxxxxxxxxxx>
To: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>,
    Roman Zippel <zippel@xxxxxxxxxxxxxx>
Subject: ac.ac_ahz just looks a bit weird


  i'm curious about the following.  first, in include/linux/acct.h:

#if !defined(CONFIG_M68K) || !defined(__KERNEL__)
        __u16           ac_ahz;                 /* AHZ */
#endif

ok, so that structure member will be created only in user space, or in
kernel space as long as !CONFIG_M68K.  but then there's this in
kernel/acct.c:

#if ACCT_VERSION==2
        ac.ac_ahz = AHZ;
#endif

is there no way that could get into trouble?  for instance, if you
build for M68K, and that structure member doesn't exist?

  anyway, i just thought the above looked a bit strange, but i might
be misreading it entirely.

rday

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux