static int gs_alloc_ports(struct gs_dev *dev, int kmalloc_flags) 
static int gs_alloc_ports(struct gs_dev *dev, unsigned kmalloc_flags) 
static int gs_alloc_ports(struct gs_dev *dev, int kmalloc_flags){	int i;	struct gs_port *port;	if (dev == NULL)		return -EIO;	for (i=0; i<GS_NUM_PORTS; i++) {		if ((port=(struct gs_port *)kmalloc(sizeof(struct gs_port), kmalloc_flags)) == NULL)			return -ENOMEM;		memset(port, 0, sizeof(struct gs_port));		port->port_dev = dev;		port->port_num = i;		port->port_line_coding.dwDTERate = cpu_to_le32(GS_DEFAULT_DTE_RATE);		port->port_line_coding.bCharFormat = GS_DEFAULT_CHAR_FORMAT;		port->port_line_coding.bParityType = GS_DEFAULT_PARITY;		port->port_line_coding.bDataBits = GS_DEFAULT_DATA_BITS;		spin_lock_init(&port->port_lock);		init_waitqueue_head(&port->port_write_wait);		dev->dev_port[i] = port;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1bbc169621cbe502b9143a27eb12802a0f1d43a0/serial.c/buggy/drivers/usb/gadget/serial.c