public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* net/sunrpc/clnt.c compilation error: tk_pid field
@ 2003-10-10  8:40 Miles Bader
  2003-10-10 15:44 ` Trond Myklebust
  0 siblings, 1 reply; 2+ messages in thread
From: Miles Bader @ 2003-10-10  8:40 UTC (permalink / raw)
  To: linux-kernel

With linux-2.6.0-test7, I get compilation errors like:

     CC      net/sunrpc/clnt.o
   net/sunrpc/clnt.c:965: structure has no member named `tk_pid'
   net/sunrpc/clnt.c:970: structure has no member named `tk_pid'
   net/sunrpc/clnt.c:976: structure has no member named `tk_pid'
   make[2]: *** [net/sunrpc/clnt.o] Error 1

The reason seems to be that the tk_pid field is only included in
`struct rpc_task' (defined in include/linux/sunrpc/sched.h) if
DEBUG_RPC is defined, and DEBUG_RPC is only defined if CONFIG_SYSCTL
is defined (include/linux/sunrpc/debug.h).  I've enabled NFS, but not
CONFIG_SYSCTL:

   $ egrep '(SYSCTL|NFS|RPC)' .config
   # CONFIG_SYSCTL is not set
   CONFIG_NFS_FS=y
   CONFIG_NFS_V3=y
   CONFIG_NFS_V4=y
   # CONFIG_NFSD is not set
   CONFIG_SUNRPC=y
   CONFIG_SUNRPC_GSS=y

Most code in net/sunrpc only references the tk_pid field inside of calls
to `dprintk', which is a macro that does nothing unless DEBUG_RPC is
defined; however the three lines mentioned in the error messages above
use ordinary printks, and so don't compile unless DEBUG_RPC is defined.
Perhaps these three lines should also use dprintk.

-Miles
-- 
`Life is a boundless sea of bitterness'

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: net/sunrpc/clnt.c compilation error: tk_pid field
  2003-10-10  8:40 net/sunrpc/clnt.c compilation error: tk_pid field Miles Bader
@ 2003-10-10 15:44 ` Trond Myklebust
  0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2003-10-10 15:44 UTC (permalink / raw)
  To: Miles Bader; +Cc: linux-kernel

>>>>> " " == Miles Bader <miles@lsi.nec.co.jp> writes:

     > With linux-2.6.0-test7, I get compilation errors like:
     >      CC net/sunrpc/clnt.o
     >    net/sunrpc/clnt.c:965: structure has no member named
     >    `tk_pid' net/sunrpc/clnt.c:970: structure has no member
     >    named `tk_pid' net/sunrpc/clnt.c:976: structure has no
     >    member named `tk_pid' make[2]: *** [net/sunrpc/clnt.o] Error
     >    1

See yesterday's discussion of this very same topic on this very same
list. A fix is already in Linus' bitkeeper repository...

Cheers,
   Trond

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-10 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-10  8:40 net/sunrpc/clnt.c compilation error: tk_pid field Miles Bader
2003-10-10 15:44 ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox