Skip to contentSkip to conversation

baycom_epp.c compile failure

DISCUSSION Applied Andrew Morton 4 participants 5 messages Dec 10, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

drivers/net/hamradio/baycom_epp.c: In function 'baycom_probe':
drivers/net/hamradio/baycom_epp.c:1180: error: 'ax25_nocall' undeclared (first use in this function) drivers/net/hamradio/baycom_epp.c:1180: error: (Each undeclared identifier is reported only once drivers/net/hamradio/baycom_epp.c:1180: error: for each function it appears in.)

#1 lore raw
Quoted 4 lines · Andrew Morton

drivers/net/hamradio/baycom_epp.c: In function 'baycom_probe':
drivers/net/hamradio/baycom_epp.c:1180: error: 'ax25_nocall' undeclared (first use in this function) drivers/net/hamradio/baycom_epp.c:1180: error: (Each undeclared identifier is reported only once drivers/net/hamradio/baycom_epp.c:1180: error: for each function it appears in.)

Will look into it later today.

Thanks,

Ralf

#2 lore raw
Quoted 8 lines · On Sun, 10 Dec 2006 12:57:35 +0000 Ralf Baechle wrote:
Quoted 4 lines · Andrew Morton

drivers/net/hamradio/baycom_epp.c: In function 'baycom_probe':
drivers/net/hamradio/baycom_epp.c:1180: error: 'ax25_nocall' undeclared (first use in this function) drivers/net/hamradio/baycom_epp.c:1180: error: (Each undeclared identifier is reported only once drivers/net/hamradio/baycom_epp.c:1180: error: for each function it appears in.)

Will look into it later today.

and after baycom:

net/ax25/ax25_route.c:295: warning: implicit declaration of function 'ax2asc' net/ax25/ax25_route.c:295: warning: assignment makes pointer from integer without a cast net/ax25/ax25_route.c:316: warning: format '%s' expects type 'char *', but argument 3 has ty pe 'int'
net/ax25/ax25_uid.c:184: warning: implicit declaration of function 'ax2asc' net/ax25/ax25_uid.c:184: warning: format '%s' expects type 'char *', but argument 4 has type
'int'
net/ax25/af_ax25.c:1893: warning: implicit declaration of function 'ax2asc' net/ax25/af_ax25.c:1894: warning: format '%s' expects type 'char *', but argument 5 has type
'int'
net/ax25/af_ax25.c:1895: warning: format '%s' expects type 'char *', but argument 3 has type
'int'
net/ax25/af_ax25.c:1900: warning: format '%s' expects type 'char *', but argument 3 has type
'int'
net/netrom/af_netrom.c:1292: warning: implicit declaration of function 'ax2asc' net/netrom/af_netrom.c:1292: warning: format '%-9s' expects type 'char *', but argument 3 ha s type 'int'
net/netrom/af_netrom.c:1293: warning: format '%-9s' expects type 'char *', but argument 3 ha s type 'int'
net/netrom/af_netrom.c:1319: warning: format '%-9s' expects type 'char *', but argument 3 ha s type 'int'
net/netrom/nr_route.c:900: warning: implicit declaration of function 'ax2asc' net/netrom/nr_route.c:903: warning: format '%-9s' expects type 'char *', but argument 3 has type 'int'
net/netrom/nr_route.c:989: warning: format '%-9s' expects type 'char *', but argument 4 has type 'int'
net/netrom/nr_route.c:994: warning: format '%s' expects type 'char *', but argument 3 has ty pe 'int'
net/rose/af_rose.c:1397: warning: implicit declaration of function 'ax2asc' net/rose/af_rose.c:1397: warning: format '%-9s' expects type 'char *', but argument 4 has ty pe 'int'
net/rose/af_rose.c:1402: warning: assignment makes pointer from integer without a cast net/rose/rose_route.c:871: warning: implicit declaration of function 'ax2asc' net/rose/rose_route.c:871: warning: format '%s' expects type 'char *', but argument 2 has ty pe 'int'
net/rose/rose_route.c:1185: warning: pointer/integer type mismatch in conditional expression net/rose/rose_route.c:1196: warning: format '%s' expects type 'char *', but argument 3 has t ype 'int'
net/rose/rose_route.c:1270: warning: format '%-9s' expects type 'char *', but argument 5 has
type 'int'
net/rose/rose_route.c:1281: warning: format '%-9s' expects type 'char *', but argument 5 has
type 'int'
net/rose/rose_subr.c:340: warning: implicit declaration of function 'asc2ax' net/rose/rose_subr.c:460: warning: implicit declaration of function 'ax2asc' net/rose/rose_subr.c:460: warning: assignment makes pointer from integer without a cast net/rose/rose_subr.c:475: warning: assignment makes pointer from integer without a cast

---
~Randy

#3 lore raw
In reply to Andrew Morton

Fix foobar in 15b1c0e822f578306332d4f4c449250db5c5dceb and e8cc49bb0fdb9e18a99e6780073d1400ba2b0d1f patch series.

drivers/net/hamradio/baycom_epp.c +1 -1
index 8a83db0..153b6dc 100644
@@ -1177,7 +1177,7 @@ static void baycom_probe(struct net_devi
 	dev->mtu = AX25_DEF_PACLEN;        /* eth_mtu is the default */
 	dev->addr_len = AX25_ADDR_LEN;     /* sizeof an ax.25 address */
 	memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN);
-	memcpy(dev->dev_addr, &ax25_nocall, AX25_ADDR_LEN);
+	memcpy(dev->dev_addr, &null_ax25_address, AX25_ADDR_LEN);
 	dev->tx_queue_len = 16;
 
 	/* New style flags */
include/net/ax25.h +2 -0
index e1d116f..14b72d8 100644
@@ -285,6 +285,8 @@ extern struct sock *ax25_make_new(struct
 extern const ax25_address ax25_bcast;
 extern const ax25_address ax25_defaddr;
 extern const ax25_address null_ax25_address;
+extern char *ax2asc(char *buf, const ax25_address *);
+extern void asc2ax(ax25_address *addr, const char *callsign);
 extern int ax25cmp(const ax25_address *, const ax25_address *);
 extern int ax25digicmp(const ax25_digi *, const ax25_digi *);
 extern const unsigned char *ax25_addr_parse(const unsigned char *, int,
net/ax25/ax25_addr.c +1 -1
index 21a0616..97a49c7 100644
@@ -83,7 +83,7 @@ EXPORT_SYMBOL(ax2asc);
  */
 void asc2ax(ax25_address *addr, const char *callsign)
 {
-	char *s;
+	const char *s;
 	int n;
 
 	for (s = callsign, n = 0; n < 6; n++) {