public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* include/linux/ipv6.h  error?
@ 2004-12-30  0:38 Mateusz Berezecki
  2004-12-30  3:12 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 2+ messages in thread
From: Mateusz Berezecki @ 2004-12-30  0:38 UTC (permalink / raw)
  To: Linux Kernel Mailing List

inet_sk(__sk) returns pointer to inet_sock structure which has pinet6 
field defined
or not defined depending on kernel configuration during compilation time

#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
        struct ipv6_pinfo       *pinet6;
#endif

the function below causes compilation error in kernel configs with 
neither CONFIG_IPV6 nor
CONFIG_IPV6_MODULE defined.

should these functions be included between
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)

static inline struct ipv6_pinfo * inet6_sk(const struct sock *__sk)
{
        return inet_sk(__sk)->pinet6;
}

static inline struct raw6_opt * raw6_sk(const struct sock *__sk)
{
        return &((struct raw6_sock *)__sk)->raw6;
}
#endif


?? or should the #ifdef directive be removed from ipv6.h header file?


regards
-mb

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

end of thread, other threads:[~2004-12-30  3:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-30  0:38 include/linux/ipv6.h error? Mateusz Berezecki
2004-12-30  3:12 ` Arnaldo Carvalho de Melo

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