[LinuxPPS] won't compile if PPS debugging messages is not defined

Rodolfo Giometti giometti at enneenne.com
Mon May 14 10:29:06 CEST 2007


On Mon, May 14, 2007 at 06:09:42PM +1000, James Boddington wrote:
> I have to define PPS debugging messages for the kernel to compile. 
> Otherwise I get a few
> 
> include/linux/serial_core.h: In function `uart_handle_dcd_change':
> include/linux/serial_core.h:483: warning: implicit declaration of function 
> `pps_dbg

Try this patch:

diff --git a/include/linux/pps.h b/include/linux/pps.h
index e40ac70..d701c32 100644
--- a/include/linux/pps.h
+++ b/include/linux/pps.h
@@ -149,7 +149,7 @@ struct pps_netlink_msg {
 #define pps_dbg(format, arg...) printk(KERN_DEBUG "%s: " format "\n" , \
        KBUILD_MODNAME , ## arg)
 #else
-#define dbg(format, arg...) do {} while (0)
+#define pps_dbg(format, arg...) do {} while (0)
 #endif
 
 #define pps_err(format, arg...) printk(KERN_ERR "%s: " format "\n" , \

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list