From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f71df6341fe1647a,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-08-22 19:27:57 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: banny52@yahoo.com (Ginny E. Kim) Newsgroups: comp.unix.tru64 Subject: BUG of Tru64UNIX V5.1 Date: 22 Aug 2001 19:27:56 -0700 Organization: http://groups.google.com/ Message-ID: <2f6bec0a.0108221827.62166dda@posting.google.com> NNTP-Posting-Host: 211.117.39.57 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 998533677 20737 127.0.0.1 (23 Aug 2001 02:27:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 Aug 2001 02:27:57 GMT Xref: archiver1.google.com comp.unix.tru64:4327 I got following message while comiling my module with defined "_KERNEL". cc: Error: /sys/include/machine/pcb.h, line 179: In the declaration of "x", the array bound "((int)(&((struct stack_layout ...)(0))->pcb)&127)?-1:1" is not a positive integer. (notposint) struct _pcb_align_check { char x[((int)stack_to_pcb(0) & 127) ? -1 : 1]; }; -------------------------------^ The header file , /sys/include/machine/pcb.h has following contents.. #define stack_to_pcb(stack) (&((struct stack_layout *)(stack))->pcb) #define pcb_to_stack(pcb) ((vm_offset_t)(((long)(pcb))&~(KERNEL_STACK_SIZE-1))) struct _pcb_size_check { char x[(sizeof(struct pcb) == 0x300) ? 1 : -1]; }; struct _pcb_align_check { char x[((int)stack_to_pcb(0) & 127) ? -1 : 1]; }; Isn't it a OS bug that"((int)(&((struct stack_layout ...)(0))->pcb)&127)?-1:1" can't be positive interger?