Re: Where to put new header file

Jeffrey E Altman <[email protected]>
Newsgroups gmane.comp.file-systems.openafs.devel
Organization AuriStor, Inc.
Message-ID <[email protected]>
On 1/31/2023 12:17 PM, Ben Huntsman ([email protected]) wrote:
> #ifdef  _KERNEL
>>
>> #ifdef  _AIX_FULLOSF
>> #include "kern/queue.h"
>> #include "kern/thread.h"
>> #include "kern/sched_prim.h"
>> #else
>> #define EVENT_NETISR  0x0726
>> #include <sys/libsysp.h>        /* remque/insque */
>> #endif
>> ...
>>
The above block of code appears to be present in net/netisr.h on AIX 7.2 
as well.


I might have missed something but it appears the only defines OpenAFS 
uses from net/netisr.h are:


/* AIX 3.x compatibility defines */
#define NETISR_MAX      64
#define NET_KPROC       0


These are used in the add_input_type() call.

NET_KPROC has always been 0 and I think OpenAFS should be using 
NETISR_AFS (33) instead of (NETISR_MAX - 1).


If an empty file needs to be created, please do not add it to the 
repository.  Instead, I suggest creating it at build time.


Jeffrey Altman
smime.p7s (application/pkcs7-signature, 3.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.