[usb:usb-next 26/26] drivers/usb/core/port.c:25:2: error: implicit declaration of function 'kfree'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
head:   6e30d7cba992d626c9d16b3873a7b90c700d0e95
commit: 6e30d7cba992d626c9d16b3873a7b90c700d0e95 [26/26] usb: Add driver/usb/core/(port.c,hub.h) files
config: make ARCH=arm at91_dt_defconfig

All error/warnings:

   drivers/usb/core/port.c: In function 'usb_port_device_release':
>> drivers/usb/core/port.c:25:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
   drivers/usb/core/port.c: In function 'usb_hub_create_port_device':
>> drivers/usb/core/port.c:38:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
>> drivers/usb/core/port.c:38:40: error: 'GFP_KERNEL' undeclared (first use in this function)
   drivers/usb/core/port.c:38:40: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors

vim +/kfree +25 drivers/usb/core/port.c

    19	#include "hub.h"
    20	
    21	static void usb_port_device_release(struct device *dev)
    22	{
    23		struct usb_port *port_dev = to_usb_port(dev);
    24	
  > 25		kfree(port_dev);
    26	}
    27	
    28	struct device_type usb_port_device_type = {
    29		.name =		"usb_port",
    30		.release =	usb_port_device_release,
    31	};
    32	
    33	int usb_hub_create_port_device(struct usb_hub *hub, int port1)
    34	{
    35		struct usb_port *port_dev = NULL;
    36		int retval;
    37	
    38		port_dev = kzalloc(sizeof(*port_dev), GFP_KERNEL);
    39		if (!port_dev) {
    40			retval = -ENOMEM;
    41			goto exit;

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux