diff options
145 files changed, 340 insertions, 360 deletions
diff --git a/arch/cris/arch-v32/drivers/pci/dma.c b/arch/cris/arch-v32/drivers/pci/dma.c index 10329306d23c..426b09878a05 100644 --- a/arch/cris/arch-v32/drivers/pci/dma.c +++ b/arch/cris/arch-v32/drivers/pci/dma.c | |||
| @@ -24,7 +24,7 @@ struct dma_coherent_mem { | |||
| 24 | }; | 24 | }; |
| 25 | 25 | ||
| 26 | void *dma_alloc_coherent(struct device *dev, size_t size, | 26 | void *dma_alloc_coherent(struct device *dev, size_t size, |
| 27 | dma_addr_t *dma_handle, unsigned int __nocast gfp) | 27 | dma_addr_t *dma_handle, gfp_t gfp) |
| 28 | { | 28 | { |
| 29 | void *ret; | 29 | void *ret; |
| 30 | struct dma_coherent_mem *mem = dev ? dev->dma_mem : NULL; | 30 | struct dma_coherent_mem *mem = dev ? dev->dma_mem : NULL; |
diff --git a/arch/i386/kernel/pci-dma.c b/arch/i386/kernel/pci-dma.c index 1e51427cc9eb..25fe66853934 100644 --- a/arch/i386/kernel/pci-dma.c +++ b/arch/i386/kernel/pci-dma.c | |||
| @@ -23,7 +23,7 @@ struct dma_coherent_mem { | |||
| 23 | }; | 23 | }; |
| 24 | 24 | ||
| 25 | void *dma_alloc_coherent(struct device *dev, size_t size, | 25 | void *dma_alloc_coherent(struct device *dev, size_t size, |
| 26 | dma_addr_t *dma_handle, unsigned int __nocast gfp) | 26 | dma_addr_t *dma_handle, gfp_t gfp) |
| 27 | { | 27 | { |
| 28 | void *ret; | 28 | void *ret; |
| 29 | struct dma_coherent_mem *mem = dev ? dev->dma_mem : NULL; | 29 | struct dma_coherent_mem *mem = dev ? dev->dma_mem : NULL; |
diff --git a/arch/ppc64/kernel/bpa_iommu.c b/arch/ppc64/kernel/bpa_iommu.c index 507eb9d0223f..5f2460090e03 100644 --- a/arch/ppc64/kernel/bpa_iommu.c +++ b/arch/ppc64/kernel/bpa_iommu.c | |||
| @@ -310,7 +310,7 @@ static void bpa_map_iommu(void) | |||
| 310 | 310 | ||
| 311 | 311 | ||
| 312 | static void *bpa_alloc_coherent(struct device *hwdev, size_t size, | 312 | static void *bpa_alloc_coherent(struct device *hwdev, size_t size, |
| 313 | dma_addr_t *dma_handle, unsigned int __nocast flag) | 313 | dma_addr_t *dma_handle, gfp_t flag) |
| 314 | { | 314 | { |
| 315 | void *ret; | 315 | void *ret; |
| 316 | 316 | ||
diff --git a/arch/ppc64/kernel/dma.c b/arch/ppc64/kernel/dma.c index 4da8e31b2b61..7c3419656ccc 100644 --- a/arch/ppc64/kernel/dma.c +++ b/arch/ppc64/kernel/dma.c | |||
| @@ -53,7 +53,7 @@ int dma_set_mask(struct device *dev, u64 dma_mask) | |||
| 53 | EXPORT_SYMBOL(dma_set_mask); | 53 | EXPORT_SYMBOL(dma_set_mask); |
| 54 | 54 | ||
| 55 | void *dma_alloc_coherent(struct device *dev, size_t size, | 55 | void *dma_alloc_coherent(struct device *dev, size_t size, |
| 56 | dma_addr_t *dma_handle, unsigned int __nocast flag) | 56 | dma_addr_t *dma_handle, gfp_t flag) |
| 57 | { | 57 | { |
| 58 | struct dma_mapping_ops *dma_ops = get_dma_ops(dev); | 58 | struct dma_mapping_ops *dma_ops = get_dma_ops(dev); |
| 59 | 59 | ||
diff --git a/arch/ppc64/kernel/iommu.c b/arch/ppc64/kernel/iommu.c index 9032b6bfe036..4d9b4388918b 100644 --- a/arch/ppc64/kernel/iommu.c +++ b/arch/ppc64/kernel/iommu.c | |||
| @@ -519,7 +519,7 @@ void iommu_unmap_single(struct iommu_table *tbl, dma_addr_t dma_handle, | |||
| 519 | * to the dma address (mapping) of the first page. | 519 | * to the dma address (mapping) of the first page. |
| 520 | */ | 520 | */ |
| 521 | void *iommu_alloc_coherent(struct iommu_table *tbl, size_t size, | 521 | void *iommu_alloc_coherent(struct iommu_table *tbl, size_t size, |
| 522 | dma_addr_t *dma_handle, unsigned int __nocast flag) | 522 | dma_addr_t *dma_handle, gfp_t flag) |
| 523 | { | 523 | { |
| 524 | void *ret = NULL; | 524 | void *ret = NULL; |
| 525 | dma_addr_t mapping; | 525 | dma_addr_t mapping; |
diff --git a/arch/ppc64/kernel/pci_direct_iommu.c b/arch/ppc64/kernel/pci_direct_iommu.c index b8f7f58824f4..54055c81017a 100644 --- a/arch/ppc64/kernel/pci_direct_iommu.c +++ b/arch/ppc64/kernel/pci_direct_iommu.c | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | #include "pci.h" | 31 | #include "pci.h" |
| 32 | 32 | ||
| 33 | static void *pci_direct_alloc_coherent(struct device *hwdev, size_t size, | 33 | static void *pci_direct_alloc_coherent(struct device *hwdev, size_t size, |
| 34 | dma_addr_t *dma_handle, unsigned int __nocast flag) | 34 | dma_addr_t *dma_handle, gfp_t flag) |
| 35 | { | 35 | { |
| 36 | void *ret; | 36 | void *ret; |
| 37 | 37 | ||
diff --git a/arch/ppc64/kernel/pci_iommu.c b/arch/ppc64/kernel/pci_iommu.c index 14647e09c9cd..d9e33b7d4203 100644 --- a/arch/ppc64/kernel/pci_iommu.c +++ b/arch/ppc64/kernel/pci_iommu.c | |||
| @@ -76,7 +76,7 @@ static inline struct iommu_table *devnode_table(struct device *dev) | |||
| 76 | * to the dma address (mapping) of the first page. | 76 | * to the dma address (mapping) of the first page. |
| 77 | */ | 77 | */ |
| 78 | static void *pci_iommu_alloc_coherent(struct device *hwdev, size_t size, | 78 | static void *pci_iommu_alloc_coherent(struct device *hwdev, size_t size, |
| 79 | dma_addr_t *dma_handle, unsigned int __nocast flag) | 79 | dma_addr_t *dma_handle, gfp_t flag) |
| 80 | { | 80 | { |
| 81 | return iommu_alloc_coherent(devnode_table(hwdev), size, dma_handle, | 81 | return iommu_alloc_coherent(devnode_table(hwdev), size, dma_handle, |
| 82 | flag); | 82 | flag); |
diff --git a/arch/ppc64/kernel/vio.c b/arch/ppc64/kernel/vio.c index c90e1dd875ce..0e555b7a6587 100644 --- a/arch/ppc64/kernel/vio.c +++ b/arch/ppc64/kernel/vio.c | |||
| @@ -218,7 +218,7 @@ static void vio_unmap_sg(struct device *dev, struct scatterlist *sglist, | |||
| 218 | } | 218 | } |
| 219 | 219 | ||
| 220 | static void *vio_alloc_coherent(struct device *dev, size_t size, | 220 | static void *vio_alloc_coherent(struct device *dev, size_t size, |
| 221 | dma_addr_t *dma_handle, unsigned int __nocast flag) | 221 | dma_addr_t *dma_handle, gfp_t flag) |
| 222 | { | 222 | { |
| 223 | return iommu_alloc_coherent(to_vio_dev(dev)->iommu_table, size, | 223 | return iommu_alloc_coherent(to_vio_dev(dev)->iommu_table, size, |
| 224 | dma_handle, flag); | 224 | dma_handle, flag); |
diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c index d74a7c5e75dd..4b6bf19c39c0 100644 --- a/drivers/atm/ambassador.c +++ b/drivers/atm/ambassador.c | |||
| @@ -795,7 +795,7 @@ static void drain_rx_pools (amb_dev * dev) { | |||
| 795 | } | 795 | } |
| 796 | 796 | ||
| 797 | static inline void fill_rx_pool (amb_dev * dev, unsigned char pool, | 797 | static inline void fill_rx_pool (amb_dev * dev, unsigned char pool, |
| 798 | unsigned int __nocast priority) | 798 | gfp_t priority) |
| 799 | { | 799 | { |
| 800 | rx_in rx; | 800 | rx_in rx; |
| 801 | amb_rxq * rxq; | 801 | amb_rxq * rxq; |
diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c index 58219744f5db..7f7ec288824d 100644 --- a/drivers/atm/firestream.c +++ b/drivers/atm/firestream.c | |||
| @@ -1374,8 +1374,7 @@ static void reset_chip (struct fs_dev *dev) | |||
| 1374 | } | 1374 | } |
| 1375 | } | 1375 | } |
| 1376 | 1376 | ||
| 1377 | static void __devinit *aligned_kmalloc (int size, unsigned int __nocast flags, | 1377 | static void __devinit *aligned_kmalloc (int size, gfp_t flags, int alignment) |
| 1378 | int alignment) | ||
| 1379 | { | 1378 | { |
| 1380 | void *t; | 1379 | void *t; |
| 1381 | 1380 | ||
| @@ -1466,7 +1465,7 @@ static inline int nr_buffers_in_freepool (struct fs_dev *dev, struct freepool *f | |||
| 1466 | working again after that... -- REW */ | 1465 | working again after that... -- REW */ |
| 1467 | 1466 | ||
| 1468 | static void top_off_fp (struct fs_dev *dev, struct freepool *fp, | 1467 | static void top_off_fp (struct fs_dev *dev, struct freepool *fp, |
| 1469 | unsigned int __nocast gfp_flags) | 1468 | gfp_t gfp_flags) |
| 1470 | { | 1469 | { |
| 1471 | struct FS_BPENTRY *qe, *ne; | 1470 | struct FS_BPENTRY *qe, *ne; |
| 1472 | struct sk_buff *skb; | 1471 | struct sk_buff *skb; |
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index 6f1a83c9d9e0..14f6a6201da3 100644 --- a/drivers/atm/fore200e.c +++ b/drivers/atm/fore200e.c | |||
| @@ -178,7 +178,7 @@ fore200e_irq_itoa(int irq) | |||
| 178 | 178 | ||
| 179 | 179 | ||
| 180 | static void* | 180 | static void* |
| 181 | fore200e_kmalloc(int size, unsigned int __nocast flags) | 181 | fore200e_kmalloc(int size, gfp_t flags) |
| 182 | { | 182 | { |
| 183 | void *chunk = kzalloc(size, flags); | 183 | void *chunk = kzalloc(size, flags); |
| 184 | 184 | ||
diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c index 60a7ef6a201b..e2f64f91ed05 100644 --- a/drivers/base/dmapool.c +++ b/drivers/base/dmapool.c | |||
| @@ -156,7 +156,7 @@ dma_pool_create (const char *name, struct device *dev, | |||
| 156 | 156 | ||
| 157 | 157 | ||
| 158 | static struct dma_page * | 158 | static struct dma_page * |
| 159 | pool_alloc_page (struct dma_pool *pool, unsigned int __nocast mem_flags) | 159 | pool_alloc_page (struct dma_pool *pool, gfp_t mem_flags) |
| 160 | { | 160 | { |
| 161 | struct dma_page *page; | 161 | struct dma_page *page; |
| 162 | int mapsize; | 162 | int mapsize; |
| @@ -262,8 +262,7 @@ dma_pool_destroy (struct dma_pool *pool) | |||
| 262 | * If such a memory block can't be allocated, null is returned. | 262 | * If such a memory block can't be allocated, null is returned. |
| 263 | */ | 263 | */ |
| 264 | void * | 264 | void * |
| 265 | dma_pool_alloc (struct dma_pool *pool, unsigned int __nocast mem_flags, | 265 | dma_pool_alloc (struct dma_pool *pool, gfp_t mem_flags, dma_addr_t *handle) |
| 266 | dma_addr_t *handle) | ||
| 267 | { | 266 | { |
| 268 | unsigned long flags; | 267 | unsigned long flags; |
| 269 | struct dma_page *page; | 268 | struct dma_page *page; |
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 7e22a58926b8..a280e679b1ca 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
| @@ -229,7 +229,7 @@ static int pkt_grow_pktlist(struct pktcdvd_device *pd, int nr_packets) | |||
| 229 | return 1; | 229 | return 1; |
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | static void *pkt_rb_alloc(unsigned int __nocast gfp_mask, void *data) | 232 | static void *pkt_rb_alloc(gfp_t gfp_mask, void *data) |
| 233 | { | 233 | { |
| 234 | return kmalloc(sizeof(struct pkt_rb_node), gfp_mask); | 234 | return kmalloc(sizeof(struct pkt_rb_node), gfp_mask); |
| 235 | } | 235 | } |
| @@ -2082,7 +2082,7 @@ static int pkt_close(struct inode *inode, struct file *file) | |||
| 2082 | } | 2082 | } |
| 2083 | 2083 | ||
| 2084 | 2084 | ||
| 2085 | static void *psd_pool_alloc(unsigned int __nocast gfp_mask, void *data) | 2085 | static void *psd_pool_alloc(gfp_t gfp_mask, void *data) |
| 2086 | { | 2086 | { |
| 2087 | return kmalloc(sizeof(struct packet_stacked_data), gfp_mask); | 2087 | return kmalloc(sizeof(struct packet_stacked_data), gfp_mask); |
| 2088 | } | 2088 | } |
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index a1bf8f066c88..4fa85234d8b5 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c | |||
| @@ -308,7 +308,7 @@ unlock: | |||
| 308 | } | 308 | } |
| 309 | 309 | ||
| 310 | static inline struct urb *bpa10x_alloc_urb(struct usb_device *udev, unsigned int pipe, | 310 | static inline struct urb *bpa10x_alloc_urb(struct usb_device *udev, unsigned int pipe, |
| 311 | size_t size, unsigned int __nocast flags, void *data) | 311 | size_t size, gfp_t flags, void *data) |
| 312 | { | 312 | { |
| 313 | struct urb *urb; | 313 | struct urb *urb; |
| 314 | struct usb_ctrlrequest *cr; | 314 | struct usb_ctrlrequest *cr; |
diff --git a/drivers/bluetooth/hci_usb.c b/drivers/bluetooth/hci_usb.c index 57c48bbf6fe6..6756cb20b753 100644 --- a/drivers/bluetooth/hci_usb.c +++ b/drivers/bluetooth/hci_usb.c | |||
| @@ -132,7 +132,7 @@ static struct usb_device_id blacklist_ids[] = { | |||
| 132 | { } /* Terminating entry */ | 132 | { } /* Terminating entry */ |
| 133 | }; | 133 | }; |
| 134 | 134 | ||
| 135 | static struct _urb *_urb_alloc(int isoc, unsigned int __nocast gfp) | 135 | static struct _urb *_urb_alloc(int isoc, gfp_t gfp) |
| 136 | { | 136 | { |
| 137 | struct _urb *_urb = kmalloc(sizeof(struct _urb) + | 137 | struct _urb *_urb = kmalloc(sizeof(struct _urb) + |
| 138 | sizeof(struct usb_iso_packet_descriptor) * isoc, gfp); | 138 | sizeof(struct usb_iso_packet_descriptor) * isoc, gfp); |
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c index 1422285d537c..505677fb3157 100644 --- a/drivers/connector/connector.c +++ b/drivers/connector/connector.c | |||
| @@ -69,8 +69,7 @@ int cn_already_initialized = 0; | |||
| 69 | * a new message. | 69 | * a new message. |
| 70 | * | 70 | * |
| 71 | */ | 71 | */ |
| 72 | int cn_netlink_send(struct cn_msg *msg, u32 __group, | 72 | int cn_netlink_send(struct cn_msg *msg, u32 __group, gfp_t gfp_mask) |
| 73 | unsigned int __nocast gfp_mask) | ||
| 74 | { | 73 | { |
| 75 | struct cn_callback_entry *__cbq; | 74 | struct cn_callback_entry *__cbq; |
| 76 | unsigned int size; | 75 | unsigned int size; |
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c index 5fe4f2ba0979..315f5ca8bedb 100644 --- a/drivers/ieee1394/raw1394.c +++ b/drivers/ieee1394/raw1394.c | |||
| @@ -98,7 +98,7 @@ static struct hpsb_address_ops arm_ops = { | |||
| 98 | 98 | ||
| 99 | static void queue_complete_cb(struct pending_request *req); | 99 | static void queue_complete_cb(struct pending_request *req); |
| 100 | 100 | ||
| 101 | static struct pending_request *__alloc_pending_request(unsigned int __nocast flags) | 101 | static struct pending_request *__alloc_pending_request(gfp_t flags) |
| 102 | { | 102 | { |
| 103 | struct pending_request *req; | 103 | struct pending_request *req; |
| 104 | 104 | ||
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index a4a4d9c1eef3..a14ca87fda18 100644 --- a/drivers/infiniband/core/mad.c +++ b/drivers/infiniband/core/mad.c | |||
| @@ -783,7 +783,7 @@ struct ib_mad_send_buf * ib_create_send_mad(struct ib_mad_agent *mad_agent, | |||
| 783 | u32 remote_qpn, u16 pkey_index, | 783 | u32 remote_qpn, u16 pkey_index, |
| 784 | struct ib_ah *ah, int rmpp_active, | 784 | struct ib_ah *ah, int rmpp_active, |
| 785 | int hdr_len, int data_len, | 785 | int hdr_len, int data_len, |
| 786 | unsigned int __nocast gfp_mask) | 786 | gfp_t gfp_mask) |
| 787 | { | 787 | { |
| 788 | struct ib_mad_agent_private *mad_agent_priv; | 788 | struct ib_mad_agent_private *mad_agent_priv; |
| 789 | struct ib_mad_send_buf *send_buf; | 789 | struct ib_mad_send_buf *send_buf; |
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c index 78de2dd1a4f2..262618210c1c 100644 --- a/drivers/infiniband/core/sa_query.c +++ b/drivers/infiniband/core/sa_query.c | |||
| @@ -574,7 +574,7 @@ static void ib_sa_path_rec_release(struct ib_sa_query *sa_query) | |||
| 574 | int ib_sa_path_rec_get(struct ib_device *device, u8 port_num, | 574 | int ib_sa_path_rec_get(struct ib_device *device, u8 port_num, |
| 575 | struct ib_sa_path_rec *rec, | 575 | struct ib_sa_path_rec *rec, |
| 576 | ib_sa_comp_mask comp_mask, | 576 | ib_sa_comp_mask comp_mask, |
| 577 | int timeout_ms, unsigned int __nocast gfp_mask, | 577 | int timeout_ms, gfp_t gfp_mask, |
| 578 | void (*callback)(int status, | 578 | void (*callback)(int status, |
| 579 | struct ib_sa_path_rec *resp, | 579 | struct ib_sa_path_rec *resp, |
| 580 | void *context), | 580 | void *context), |
| @@ -676,7 +676,7 @@ static void ib_sa_service_rec_release(struct ib_sa_query *sa_query) | |||
| 676 | int ib_sa_service_rec_query(struct ib_device *device, u8 port_num, u8 method, | 676 | int ib_sa_service_rec_query(struct ib_device *device, u8 port_num, u8 method, |
| 677 | struct ib_sa_service_rec *rec, | 677 | struct ib_sa_service_rec *rec, |
| 678 | ib_sa_comp_mask comp_mask, | 678 | ib_sa_comp_mask comp_mask, |
| 679 | int timeout_ms, unsigned int __nocast gfp_mask, | 679 | int timeout_ms, gfp_t gfp_mask, |
| 680 | void (*callback)(int status, | 680 | void (*callback)(int status, |
| 681 | struct ib_sa_service_rec *resp, | 681 | struct ib_sa_service_rec *resp, |
| 682 | void *context), | 682 | void *context), |
| @@ -759,7 +759,7 @@ int ib_sa_mcmember_rec_query(struct ib_device *device, u8 port_num, | |||
| 759 | u8 method, | 759 | u8 method, |
| 760 | struct ib_sa_mcmember_rec *rec, | 760 | struct ib_sa_mcmember_rec *rec, |
| 761 | ib_sa_comp_mask comp_mask, | 761 | ib_sa_comp_mask comp_mask, |
| 762 | int timeout_ms, unsigned int __nocast gfp_mask, | 762 | int timeout_ms, gfp_t gfp_mask, |
| 763 | void (*callback)(int status, | 763 | void (*callback)(int status, |
| 764 | struct ib_sa_mcmember_rec *resp, | 764 | struct ib_sa_mcmember_rec *resp, |
| 765 | void *context), | 765 | void *context), |
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index b82bc3150476..b6148f6f7836 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c | |||
| @@ -96,7 +96,7 @@ static kmem_cache_t *_crypt_io_pool; | |||
| 96 | /* | 96 | /* |
| 97 | * Mempool alloc and free functions for the page | 97 | * Mempool alloc and free functions for the page |
| 98 | */ | 98 | */ |
| 99 | static void *mempool_alloc_page(unsigned int __nocast gfp_mask, void *data) | 99 | static void *mempool_alloc_page(gfp_t gfp_mask, void *data) |
| 100 | { | 100 | { |
| 101 | return alloc_page(gfp_mask); | 101 | return alloc_page(gfp_mask); |
| 102 | } | 102 | } |
diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c index 9de000131a8a..4809b209fbb1 100644 --- a/drivers/md/dm-io.c +++ b/drivers/md/dm-io.c | |||
| @@ -32,7 +32,7 @@ struct io { | |||
| 32 | static unsigned _num_ios; | 32 | static unsigned _num_ios; |
| 33 | static mempool_t *_io_pool; | 33 | static mempool_t *_io_pool; |
| 34 | 34 | ||
| 35 | static void *alloc_io(unsigned int __nocast gfp_mask, void *pool_data) | 35 | static void *alloc_io(gfp_t gfp_mask, void *pool_data) |
| 36 | { | 36 | { |
| 37 | return kmalloc(sizeof(struct io), gfp_mask); | 37 | return kmalloc(sizeof(struct io), gfp_mask); |
| 38 | } | 38 | } |
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 863282513753..2375709a392c 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
| @@ -122,7 +122,7 @@ static inline sector_t region_to_sector(struct region_hash *rh, region_t region) | |||
| 122 | /* FIXME move this */ | 122 | /* FIXME move this */ |
| 123 | static void queue_bio(struct mirror_set *ms, struct bio *bio, int rw); | 123 | static void queue_bio(struct mirror_set *ms, struct bio *bio, int rw); |
| 124 | 124 | ||
| 125 | static void *region_alloc(unsigned int __nocast gfp_mask, void *pool_data) | 125 | static void *region_alloc(gfp_t gfp_mask, void *pool_data) |
| 126 | { | 126 | { |
| 127 | return kmalloc(sizeof(struct region), gfp_mask); | 127 | return kmalloc(sizeof(struct region), gfp_mask); |
| 128 | } | 128 | } |
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 286342375fb7..1151c3ed3006 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
| @@ -38,7 +38,7 @@ | |||
| 38 | static mdk_personality_t multipath_personality; | 38 | static mdk_personality_t multipath_personality; |
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | static void *mp_pool_alloc(unsigned int __nocast gfp_flags, void *data) | 41 | static void *mp_pool_alloc(gfp_t gfp_flags, void *data) |
| 42 | { | 42 | { |
| 43 | struct multipath_bh *mpb; | 43 | struct multipath_bh *mpb; |
| 44 | mpb = kmalloc(sizeof(*mpb), gfp_flags); | 44 | mpb = kmalloc(sizeof(*mpb), gfp_flags); |
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index a93ca478142a..0e1f148dd41d 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
| @@ -52,7 +52,7 @@ static mdk_personality_t raid1_personality; | |||
| 52 | static void unplug_slaves(mddev_t *mddev); | 52 | static void unplug_slaves(mddev_t *mddev); |
| 53 | 53 | ||
| 54 | 54 | ||
| 55 | static void * r1bio_pool_alloc(unsigned int __nocast gfp_flags, void *data) | 55 | static void * r1bio_pool_alloc(gfp_t gfp_flags, void *data) |
| 56 | { | 56 | { |
| 57 | struct pool_info *pi = data; | 57 | struct pool_info *pi = data; |
| 58 | r1bio_t *r1_bio; | 58 | r1bio_t *r1_bio; |
| @@ -79,7 +79,7 @@ static void r1bio_pool_free(void *r1_bio, void *data) | |||
| 79 | #define RESYNC_PAGES ((RESYNC_BLOCK_SIZE + PAGE_SIZE-1) / PAGE_SIZE) | 79 | #define RESYNC_PAGES ((RESYNC_BLOCK_SIZE + PAGE_SIZE-1) / PAGE_SIZE) |
| 80 | #define RESYNC_WINDOW (2048*1024) | 80 | #define RESYNC_WINDOW (2048*1024) |
| 81 | 81 | ||
| 82 | static void * r1buf_pool_alloc(unsigned int __nocast gfp_flags, void *data) | 82 | static void * r1buf_pool_alloc(gfp_t gfp_flags, void *data) |
| 83 | { | 83 | { |
| 84 | struct pool_info *pi = data; | 84 | struct pool_info *pi = data; |
| 85 | struct page *page; | 85 | struct page *page; |
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 5bd1e9ec899d..28dd028415e4 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
| @@ -47,7 +47,7 @@ | |||
| 47 | 47 | ||
| 48 | static void unplug_slaves(mddev_t *mddev); | 48 | static void unplug_slaves(mddev_t *mddev); |
| 49 | 49 | ||
| 50 | static void * r10bio_pool_alloc(unsigned int __nocast gfp_flags, void *data) | 50 | static void * r10bio_pool_alloc(gfp_t gfp_flags, void *data) |
| 51 | { | 51 | { |
| 52 | conf_t *conf = data; | 52 | conf_t *conf = data; |
| 53 | r10bio_t *r10_bio; | 53 | r10bio_t *r10_bio; |
| @@ -81,7 +81,7 @@ static void r10bio_pool_free(void *r10_bio, void *data) | |||
| 81 | * one for write (we recover only one drive per r10buf) | 81 | * one for write (we recover only one drive per r10buf) |
| 82 | * | 82 | * |
| 83 | */ | 83 | */ |
| 84 | static void * r10buf_pool_alloc(unsigned int __nocast gfp_flags, void *data) | 84 | static void * r10buf_pool_alloc(gfp_t gfp_flags, void *data) |
| 85 | { | 85 | { |
| 86 | conf_t *conf = data; | 86 | conf_t *conf = data; |
| 87 | struct page *page; | 87 | struct page *page; |
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index f0a5b772a386..f264ff162979 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
| @@ -1290,7 +1290,7 @@ static void bond_mc_list_destroy(struct bonding *bond) | |||
| 1290 | * Copy all the Multicast addresses from src to the bonding device dst | 1290 | * Copy all the Multicast addresses from src to the bonding device dst |
| 1291 | */ | 1291 | */ |
| 1292 | static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond, | 1292 | static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond, |
| 1293 | unsigned int __nocast gfp_flag) | 1293 | gfp_t gfp_flag) |
| 1294 | { | 1294 | { |
| 1295 | struct dev_mc_list *dmi, *new_dmi; | 1295 | struct dev_mc_list *dmi, *new_dmi; |
| 1296 | 1296 | ||
diff --git a/drivers/net/ns83820.c b/drivers/net/ns83820.c index 83334db2921c..e4811b42a6b7 100644 --- a/drivers/net/ns83820.c +++ b/drivers/net/ns83820.c | |||
| @@ -584,7 +584,7 @@ static inline int ns83820_add_rx_skb(struct ns83820 *dev, struct sk_buff *skb) | |||
| 584 | return 0; | 584 | return 0; |
| 585 | } | 585 | } |
| 586 | 586 | ||
| 587 | static inline int rx_refill(struct net_device *ndev, unsigned int __nocast gfp) | 587 | static inline int rx_refill(struct net_device *ndev, gfp_t gfp) |
| 588 | { | 588 | { |
| 589 | struct ns83820 *dev = PRIV(ndev); | 589 | struct ns83820 *dev = PRIV(ndev); |
| 590 | unsigned i; | 590 | unsigned i; |
diff --git a/drivers/net/sungem.h b/drivers/net/sungem.h index 16edbb1a4a7a..13006d759ad8 100644 --- a/drivers/net/sungem.h +++ b/drivers/net/sungem.h | |||
| @@ -1036,7 +1036,7 @@ struct gem { | |||
| 1036 | #define ALIGNED_RX_SKB_ADDR(addr) \ | 1036 | #define ALIGNED_RX_SKB_ADDR(addr) \ |
| 1037 | ((((unsigned long)(addr) + (64UL - 1UL)) & ~(64UL - 1UL)) - (unsigned long)(addr)) | 1037 | ((((unsigned long)(addr) + (64UL - 1UL)) & ~(64UL - 1UL)) - (unsigned long)(addr)) |
| 1038 | static __inline__ struct sk_buff *gem_alloc_skb(int size, | 1038 | static __inline__ struct sk_buff *gem_alloc_skb(int size, |
| 1039 | unsigned int __nocast gfp_flags) | 1039 | gfp_t gfp_flags) |
| 1040 | { | 1040 | { |
| 1041 | struct sk_buff *skb = alloc_skb(size + 64, gfp_flags); | 1041 | struct sk_buff *skb = alloc_skb(size + 64, gfp_flags); |
| 1042 | 1042 | ||
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c index 0b5087f7cabc..cab098556b44 100644 --- a/drivers/s390/scsi/zfcp_aux.c +++ b/drivers/s390/scsi/zfcp_aux.c | |||
| @@ -833,7 +833,7 @@ zfcp_unit_dequeue(struct zfcp_unit *unit) | |||
| 833 | } | 833 | } |
| 834 | 834 | ||
| 835 | static void * | 835 | static void * |
| 836 | zfcp_mempool_alloc(unsigned int __nocast gfp_mask, void *size) | 836 | zfcp_mempool_alloc(gfp_t gfp_mask, void *size) |
| 837 | { | 837 | { |
| 838 | return kmalloc((size_t) size, gfp_mask); | 838 | return kmalloc((size_t) size, gfp_mask); |
| 839 | } | 839 | } |
| @@ -75,7 +75,7 @@ struct bio_set { | |||
| 75 | */ | 75 | */ |
| 76 | static struct bio_set *fs_bio_set; | 76 | static struct bio_set *fs_bio_set; |
| 77 | 77 | ||
| 78 | static inline struct bio_vec *bvec_alloc_bs(unsigned int __nocast gfp_mask, int nr, unsigned long *idx, struct bio_set *bs) | 78 | static inline struct bio_vec *bvec_alloc_bs(gfp_t gfp_mask, int nr, unsigned long *idx, struct bio_set *bs) |
| 79 | { | 79 | { |
| 80 | struct bio_vec *bvl; | 80 | struct bio_vec *bvl; |
| 81 | struct biovec_slab *bp; | 81 | struct biovec_slab *bp; |
| @@ -155,7 +155,7 @@ inline void bio_init(struct bio *bio) | |||
| 155 | * allocate bio and iovecs from the memory pools specified by the | 155 | * allocate bio and iovecs from the memory pools specified by the |
| 156 | * bio_set structure. | 156 | * bio_set structure. |
| 157 | **/ | 157 | **/ |
| 158 | struct bio *bio_alloc_bioset(unsigned int __nocast gfp_mask, int nr_iovecs, struct bio_set *bs) | 158 | struct bio *bio_alloc_bioset(gfp_t gfp_mask, int nr_iovecs, struct bio_set *bs) |
| 159 | { | 159 | { |
| 160 | struct bio *bio = mempool_alloc(bs->bio_pool, gfp_mask); | 160 | struct bio *bio = mempool_alloc(bs->bio_pool, gfp_mask); |
| 161 | 161 | ||
| @@ -181,7 +181,7 @@ out: | |||
| 181 | return bio; | 181 | return bio; |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | struct bio *bio_alloc(unsigned int __nocast gfp_mask, int nr_iovecs) | 184 | struct bio *bio_alloc(gfp_t gfp_mask, int nr_iovecs) |
| 185 | { | 185 | { |
| 186 | struct bio *bio = bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set); | 186 | struct bio *bio = bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set); |
| 187 | 187 | ||
| @@ -277,7 +277,7 @@ inline void __bio_clone(struct bio *bio, struct bio *bio_src) | |||
| 277 | * | 277 | * |
| 278 | * Like __bio_clone, only also allocates the returned bio | 278 | * Like __bio_clone, only also allocates the returned bio |
| 279 | */ | 279 | */ |
| 280 | struct bio *bio_clone(struct bio *bio, unsigned int __nocast gfp_mask) | 280 | struct bio *bio_clone(struct bio *bio, gfp_t gfp_mask) |
| 281 | { | 281 | { |
| 282 | struct bio *b = bio_alloc_bioset(gfp_mask, bio->bi_max_vecs, fs_bio_set); | 282 | struct bio *b = bio_alloc_bioset(gfp_mask, bio->bi_max_vecs, fs_bio_set); |
| 283 | 283 | ||
| @@ -1078,7 +1078,7 @@ struct bio_pair *bio_split(struct bio *bi, mempool_t *pool, int first_sectors) | |||
| 1078 | return bp; | 1078 | return bp; |
| 1079 | } | 1079 | } |
| 1080 | 1080 | ||
| 1081 | static void *bio_pair_alloc(unsigned int __nocast gfp_flags, void *data) | 1081 | static void *bio_pair_alloc(gfp_t gfp_flags, void *data) |
| 1082 | { | 1082 | { |
| 1083 | return kmalloc(sizeof(struct bio_pair), gfp_flags); | 1083 | return kmalloc(sizeof(struct bio_pair), gfp_flags); |
| 1084 | } | 1084 | } |
diff --git a/fs/buffer.c b/fs/buffer.c index 6cbfceabd95d..1216c0d3c8ce 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
| @@ -3045,7 +3045,7 @@ static void recalc_bh_state(void) | |||
| 3045 | buffer_heads_over_limit = (tot > max_buffer_heads); | 3045 | buffer_heads_over_limit = (tot > max_buffer_heads); |
| 3046 | } | 3046 | } |
| 3047 | 3047 | ||
| 3048 | struct buffer_head *alloc_buffer_head(unsigned int __nocast gfp_flags) | 3048 | struct buffer_head *alloc_buffer_head(gfp_t gfp_flags) |
| 3049 | { | 3049 | { |
| 3050 | struct buffer_head *ret = kmem_cache_alloc(bh_cachep, gfp_flags); | 3050 | struct buffer_head *ret = kmem_cache_alloc(bh_cachep, gfp_flags); |
| 3051 | if (ret) { | 3051 | if (ret) { |
diff --git a/fs/mpage.c b/fs/mpage.c index bb9aebe93862..c5adcdddf3cc 100644 --- a/fs/mpage.c +++ b/fs/mpage.c | |||
| @@ -102,7 +102,7 @@ static struct bio *mpage_bio_submit(int rw, struct bio *bio) | |||
| 102 | static struct bio * | 102 | static struct bio * |
| 103 | mpage_alloc(struct block_device *bdev, | 103 | mpage_alloc(struct block_device *bdev, |
| 104 | sector_t first_sector, int nr_vecs, | 104 | sector_t first_sector, int nr_vecs, |
| 105 | unsigned int __nocast gfp_flags) | 105 | gfp_t gfp_flags) |
| 106 | { | 106 | { |
| 107 | struct bio *bio; | 107 | struct bio *bio; |
| 108 | 108 | ||
diff --git a/fs/ntfs/malloc.h b/fs/ntfs/malloc.h index 006946efca8c..590887b943f5 100644 --- a/fs/ntfs/malloc.h +++ b/fs/ntfs/malloc.h | |||
| @@ -40,7 +40,7 @@ | |||
| 40 | * Depending on @gfp_mask the allocation may be guaranteed to succeed. | 40 | * Depending on @gfp_mask the allocation may be guaranteed to succeed. |
| 41 | */ | 41 | */ |
| 42 | static inline void *__ntfs_malloc(unsigned long size, | 42 | static inline void *__ntfs_malloc(unsigned long size, |
| 43 | unsigned int __nocast gfp_mask) | 43 | gfp_t gfp_mask) |
| 44 | { | 44 | { |
| 45 | if (likely(size <= PAGE_SIZE)) { | 45 | if (likely(size <= PAGE_SIZE)) { |
| 46 | BUG_ON(!size); | 46 | BUG_ON(!size); |
diff --git a/fs/posix_acl.c b/fs/posix_acl.c index 296480e96dd5..6c8dcf7613fd 100644 --- a/fs/posix_acl.c +++ b/fs/posix_acl.c | |||
| @@ -35,7 +35,7 @@ EXPORT_SYMBOL(posix_acl_permission); | |||
| 35 | * Allocate a new ACL with the specified number of entries. | 35 | * Allocate a new ACL with the specified number of entries. |
| 36 | */ | 36 | */ |
| 37 | struct posix_acl * | 37 | struct posix_acl * |
| 38 | posix_acl_alloc(int count, unsigned int __nocast flags) | 38 | posix_acl_alloc(int count, gfp_t flags) |
| 39 | { | 39 | { |
| 40 | const size_t size = sizeof(struct posix_acl) + | 40 | const size_t size = sizeof(struct posix_acl) + |
| 41 | count * sizeof(struct posix_acl_entry); | 41 | count * sizeof(struct posix_acl_entry); |
| @@ -51,7 +51,7 @@ posix_acl_alloc(int count, unsigned int __nocast flags) | |||
| 51 | * Clone an ACL. | 51 | * Clone an ACL. |
| 52 | */ | 52 | */ |
| 53 | struct posix_acl * | 53 | struct posix_acl * |
| 54 | posix_acl_clone(const struct posix_acl *acl, unsigned int __nocast flags) | 54 | posix_acl_clone(const struct posix_acl *acl, gfp_t flags) |
| 55 | { | 55 | { |
| 56 | struct posix_acl *clone = NULL; | 56 | struct posix_acl *clone = NULL; |
| 57 | 57 | ||
| @@ -185,7 +185,7 @@ posix_acl_equiv_mode(const struct posix_acl *acl, mode_t *mode_p) | |||
| 185 | * Create an ACL representing the file mode permission bits of an inode. | 185 | * Create an ACL representing the file mode permission bits of an inode. |
| 186 | */ | 186 | */ |
| 187 | struct posix_acl * | 187 | struct posix_acl * |
| 188 | posix_acl_from_mode(mode_t mode, unsigned int __nocast flags) | 188 | posix_acl_from_mode(mode_t mode, gfp_t flags) |
| 189 | { | 189 | { |
| 190 | struct posix_acl *acl = posix_acl_alloc(3, flags); | 190 | struct posix_acl *acl = posix_acl_alloc(3, flags); |
| 191 | if (!acl) | 191 | if (!acl) |
diff --git a/fs/xfs/linux-2.6/kmem.c b/fs/xfs/linux-2.6/kmem.c index 4b184559f231..d2653b589b1c 100644 --- a/fs/xfs/linux-2.6/kmem.c +++ b/fs/xfs/linux-2.6/kmem.c | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | 45 | ||
| 46 | 46 | ||
| 47 | void * | 47 | void * |
| 48 | kmem_alloc(size_t size, unsigned int __nocast flags) | 48 | kmem_alloc(size_t size, gfp_t flags) |
| 49 | { | 49 | { |
| 50 | int retries = 0; | 50 | int retries = 0; |
| 51 | unsigned int lflags = kmem_flags_convert(flags); | 51 | unsigned int lflags = kmem_flags_convert(flags); |
| @@ -67,7 +67,7 @@ kmem_alloc(size_t size, unsigned int __nocast flags) | |||
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | void * | 69 | void * |
| 70 | kmem_zalloc(size_t size, unsigned int __nocast flags) | 70 | kmem_zalloc(size_t size, gfp_t flags) |
| 71 | { | 71 | { |
| 72 | void *ptr; | 72 | void *ptr; |
| 73 | 73 | ||
| @@ -90,7 +90,7 @@ kmem_free(void *ptr, size_t size) | |||
| 90 | 90 | ||
| 91 | void * | 91 | void * |
| 92 | kmem_realloc(void *ptr, size_t newsize, size_t oldsize, | 92 | kmem_realloc(void *ptr, size_t newsize, size_t oldsize, |
| 93 | unsigned int __nocast flags) | 93 | gfp_t flags) |
| 94 | { | 94 | { |
| 95 | void *new; | 95 | void *new; |
| 96 | 96 | ||
| @@ -105,7 +105,7 @@ kmem_realloc(void *ptr, size_t newsize, size_t oldsize, | |||
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | void * | 107 | void * |
| 108 | kmem_zone_alloc(kmem_zone_t *zone, unsigned int __nocast flags) | 108 | kmem_zone_alloc(kmem_zone_t *zone, gfp_t flags) |
| 109 | { | 109 | { |
| 110 | int retries = 0; | 110 | int retries = 0; |
| 111 | unsigned int lflags = kmem_flags_convert(flags); | 111 | unsigned int lflags = kmem_flags_convert(flags); |
| @@ -124,7 +124,7 @@ kmem_zone_alloc(kmem_zone_t *zone, unsigned int __nocast flags) | |||
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | void * | 126 | void * |
| 127 | kmem_zone_zalloc(kmem_zone_t *zone, unsigned int __nocast flags) | 127 | kmem_zone_zalloc(kmem_zone_t *zone, gfp_t flags) |
| 128 | { | 128 | { |
| 129 | void *ptr; | 129 | void *ptr; |
| 130 | 130 | ||
diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h index 109fcf27e256..ee7010f085bc 100644 --- a/fs/xfs/linux-2.6/kmem.h +++ b/fs/xfs/linux-2.6/kmem.h | |||
| @@ -81,7 +81,7 @@ typedef unsigned long xfs_pflags_t; | |||
| 81 | *(NSTATEP) = *(OSTATEP); \ | 81 | *(NSTATEP) = *(OSTATEP); \ |
| 82 | } while (0) | 82 | } while (0) |
| 83 | 83 | ||
| 84 | static __inline unsigned int kmem_flags_convert(unsigned int __nocast flags) | 84 | static __inline unsigned int kmem_flags_convert(gfp_t flags) |
| 85 | { | 85 | { |
| 86 | unsigned int lflags = __GFP_NOWARN; /* we'll report problems, if need be */ | 86 | unsigned int lflags = __GFP_NOWARN; /* we'll report problems, if need be */ |
| 87 | 87 | ||
| @@ -125,13 +125,12 @@ kmem_zone_destroy(kmem_zone_t *zone) | |||
| 125 | BUG(); | 125 | BUG(); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | extern void *kmem_zone_zalloc(kmem_zone_t *, unsigned int __nocast); | 128 | extern void *kmem_zone_zalloc(kmem_zone_t *, gfp_t); |
| 129 | extern void *kmem_zone_alloc(kmem_zone_t *, unsigned int __nocast); | 129 | extern void *kmem_zone_alloc(kmem_zone_t *, gfp_t); |
| 130 | 130 | ||
| 131 | extern void *kmem_alloc(size_t, unsigned int __nocast); | 131 | extern void *kmem_alloc(size_t, gfp_t); |
| 132 | extern void *kmem_realloc(void *, size_t, size_t, | 132 | extern void *kmem_realloc(void *, size_t, size_t, gfp_t); |
| 133 | unsigned int __nocast); | 133 | extern void *kmem_zalloc(size_t, gfp_t); |
| 134 | extern void *kmem_zalloc(size_t, unsigned int __nocast); | ||
| 135 | extern void kmem_free(void *, size_t); | 134 | extern void kmem_free(void *, size_t); |
| 136 | 135 | ||
| 137 | typedef struct shrinker *kmem_shaker_t; | 136 | typedef struct shrinker *kmem_shaker_t; |
diff --git a/include/asm-generic/dma-mapping.h b/include/asm-generic/dma-mapping.h index 8cef663c5cd9..747d790295f3 100644 --- a/include/asm-generic/dma-mapping.h +++ b/include/asm-generic/dma-mapping.h | |||
| @@ -35,7 +35,7 @@ dma_set_mask(struct device *dev, u64 dma_mask) | |||
| 35 | 35 | ||
| 36 | static inline void * | 36 | static inline void * |
| 37 | dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, | 37 | dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, |
| 38 | unsigned int __nocast flag) | 38 | gfp_t flag) |
| 39 | { | 39 | { |
| 40 | BUG_ON(dev->bus != &pci_bus_type); | 40 | BUG_ON(dev->bus != &pci_bus_type); |
| 41 | 41 | ||
| @@ -168,7 +168,7 @@ dma_set_mask(struct device *dev, u64 dma_mask) | |||
| 168 | 168 | ||
| 169 | static inline void * | 169 | static inline void * |
| 170 | dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, | 170 | dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, |
| 171 | unsigned int __nocast flag) | 171 | gfp_t flag) |
| 172 | { | 172 | { |
| 173 | BUG(); | 173 | BUG(); |
| 174 | return NULL; | 174 | return NULL; |
diff --git a/include/asm-i386/dma-mapping.h b/include/asm-i386/dma-mapping.h index 563964b2995b..e56c335f8ef9 100644 --- a/include/asm-i386/dma-mapping.h +++ b/include/asm-i386/dma-mapping.h | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) | 11 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) |
| 12 | 12 | ||
| 13 | void *dma_alloc_coherent(struct device *dev, size_t size, | 13 | void *dma_alloc_coherent(struct device *dev, size_t size, |
| 14 | dma_addr_t *dma_handle, unsigned int __nocast flag); | 14 | dma_addr_t *dma_handle, gfp_t flag); |
| 15 | 15 | ||
| 16 | void dma_free_coherent(struct device *dev, size_t size, | 16 | void dma_free_coherent(struct device *dev, size_t size, |
| 17 | void *vaddr, dma_addr_t dma_handle); | 17 | void *vaddr, dma_addr_t dma_handle); |
diff --git a/include/asm-ppc/dma-mapping.h b/include/asm-ppc/dma-mapping.h index 92b8ee78dcc2..061bfcac1bf1 100644 --- a/include/asm-ppc/dma-mapping.h +++ b/include/asm-ppc/dma-mapping.h | |||
| @@ -61,7 +61,7 @@ static inline int dma_set_mask(struct device *dev, u64 dma_mask) | |||
| 61 | 61 | ||
| 62 | static inline void *dma_alloc_coherent(struct device *dev, size_t size, | 62 | static inline void *dma_alloc_coherent(struct device *dev, size_t size, |
| 63 | dma_addr_t * dma_handle, | 63 | dma_addr_t * dma_handle, |
| 64 | unsigned int __nocast gfp) | 64 | gfp_t gfp) |
| 65 | { | 65 | { |
| 66 | #ifdef CONFIG_NOT_COHERENT_CACHE | 66 | #ifdef CONFIG_NOT_COHERENT_CACHE |
| 67 | return __dma_alloc_coherent(size, dma_handle, gfp); | 67 | return __dma_alloc_coherent(size, dma_handle, gfp); |
diff --git a/include/asm-ppc64/dma-mapping.h b/include/asm-ppc64/dma-mapping.h index 9ad8adee0067..fb68fa23bea8 100644 --- a/include/asm-ppc64/dma-mapping.h +++ b/include/asm-ppc64/dma-mapping.h | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | extern int dma_supported(struct device *dev, u64 mask); | 19 | extern int dma_supported(struct device *dev, u64 mask); |
| 20 | extern int dma_set_mask(struct device *dev, u64 dma_mask); | 20 | extern int dma_set_mask(struct device *dev, u64 dma_mask); |
| 21 | extern void *dma_alloc_coherent(struct device *dev, size_t size, | 21 | extern void *dma_alloc_coherent(struct device *dev, size_t size, |
| 22 | dma_addr_t *dma_handle, unsigned int __nocast flag); | 22 | dma_addr_t *dma_handle, gfp_t flag); |
| 23 | extern void dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, | 23 | extern void dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, |
| 24 | dma_addr_t dma_handle); | 24 | dma_addr_t dma_handle); |
| 25 | extern dma_addr_t dma_map_single(struct device *dev, void *cpu_addr, | 25 | extern dma_addr_t dma_map_single(struct device *dev, void *cpu_addr, |
| @@ -118,7 +118,7 @@ dma_cache_sync(void *vaddr, size_t size, | |||
| 118 | */ | 118 | */ |
| 119 | struct dma_mapping_ops { | 119 | struct dma_mapping_ops { |
| 120 | void * (*alloc_coherent)(struct device *dev, size_t size, | 120 | void * (*alloc_coherent)(struct device *dev, size_t size, |
| 121 | dma_addr_t *dma_handle, unsigned int __nocast flag); | 121 | dma_addr_t *dma_handle, gfp_t flag); |
| 122 | void (*free_coherent)(struct device *dev, size_t size, | 122 | void (*free_coherent)(struct device *dev, size_t size, |
| 123 | void *vaddr, dma_addr_t dma_handle); | 123 | void *vaddr, dma_addr_t dma_handle); |
| 124 | dma_addr_t (*map_single)(struct device *dev, void *ptr, | 124 | dma_addr_t (*map_single)(struct device *dev, void *ptr, |
diff --git a/include/asm-ppc64/iommu.h b/include/asm-ppc64/iommu.h index 72dcf8116b04..c2f3b6e8a42f 100644 --- a/include/asm-ppc64/iommu.h +++ b/include/asm-ppc64/iommu.h | |||
| @@ -122,7 +122,7 @@ extern void iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, | |||
| 122 | int nelems, enum dma_data_direction direction); | 122 | int nelems, enum dma_data_direction direction); |
| 123 | 123 | ||
| 124 | extern void *iommu_alloc_coherent(struct iommu_table *tbl, size_t size, | 124 | extern void *iommu_alloc_coherent(struct iommu_table *tbl, size_t size, |
| 125 | dma_addr_t *dma_handle, unsigned int __nocast flag); | 125 | dma_addr_t *dma_handle, gfp_t flag); |
| 126 | extern void iommu_free_coherent(struct iommu_table *tbl, size_t size, | 126 | extern void iommu_free_coherent(struct iommu_table *tbl, size_t size, |
| 127 | void *vaddr, dma_addr_t dma_handle); | 127 | void *vaddr, dma_addr_t dma_handle); |
| 128 | extern dma_addr_t iommu_map_single(struct iommu_table *tbl, void *vaddr, | 128 | extern dma_addr_t iommu_map_single(struct iommu_table *tbl, void *vaddr, |
diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h index aca9b344bd35..e7d0593bb576 100644 --- a/include/linux/atmdev.h +++ b/include/linux/atmdev.h | |||
| @@ -467,7 +467,7 @@ static inline void atm_dev_put(struct atm_dev *dev) | |||
| 467 | 467 | ||
| 468 | int atm_charge(struct atm_vcc *vcc,int truesize); | 468 | int atm_charge(struct atm_vcc *vcc,int truesize); |
| 469 | struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size, | 469 | struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size, |
| 470 | unsigned int __nocast gfp_flags); | 470 | gfp_t gfp_flags); |
| 471 | int atm_pcr_goal(struct atm_trafprm *tp); | 471 | int atm_pcr_goal(struct atm_trafprm *tp); |
| 472 | 472 | ||
| 473 | void vcc_release_async(struct atm_vcc *vcc, int reply); | 473 | void vcc_release_async(struct atm_vcc *vcc, int reply); |
diff --git a/include/linux/bio.h b/include/linux/bio.h index 6e1c79c8b6bf..3344b4e8e43a 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
| @@ -276,8 +276,8 @@ extern void bio_pair_release(struct bio_pair *dbio); | |||
| 276 | extern struct bio_set *bioset_create(int, int, int); | 276 | extern struct bio_set *bioset_create(int, int, int); |
| 277 | extern void bioset_free(struct bio_set *); | 277 | extern void bioset_free(struct bio_set *); |
| 278 | 278 | ||
| 279 | extern struct bio *bio_alloc(unsigned int __nocast, int); | 279 | extern struct bio *bio_alloc(gfp_t, int); |
| 280 | extern struct bio *bio_alloc_bioset(unsigned int __nocast, int, struct bio_set *); | 280 | extern struct bio *bio_alloc_bioset(gfp_t, int, struct bio_set *); |
| 281 | extern void bio_put(struct bio *); | 281 | extern void bio_put(struct bio *); |
| 282 | extern void bio_free(struct bio *, struct bio_set *); | 282 | extern void bio_free(struct bio *, struct bio_set *); |
| 283 | 283 | ||
| @@ -287,7 +287,7 @@ extern int bio_phys_segments(struct request_queue *, struct bio *); | |||
| 287 | extern int bio_hw_segments(struct request_queue *, struct bio *); | 287 | extern int bio_hw_segments(struct request_queue *, struct bio *); |
| 288 | 288 | ||
| 289 | extern void __bio_clone(struct bio *, struct bio *); | 289 | extern void __bio_clone(struct bio *, struct bio *); |
| 290 | extern struct bio *bio_clone(struct bio *, unsigned int __nocast); | 290 | extern struct bio *bio_clone(struct bio *, gfp_t); |
| 291 | 291 | ||
| 292 | extern void bio_init(struct bio *); | 292 | extern void bio_init(struct bio *); |
| 293 | 293 | ||
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 90828493791f..6a1d154c0825 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
| @@ -172,7 +172,7 @@ void __brelse(struct buffer_head *); | |||
| 172 | void __bforget(struct buffer_head *); | 172 | void __bforget(struct buffer_head *); |
| 173 | void __breadahead(struct block_device *, sector_t block, int size); | 173 | void __breadahead(struct block_device *, sector_t block, int size); |
| 174 | struct buffer_head *__bread(struct block_device *, sector_t block, int size); | 174 | struct buffer_head *__bread(struct block_device *, sector_t block, int size); |
| 175 | struct buffer_head *alloc_buffer_head(unsigned int __nocast gfp_flags); | 175 | struct buffer_head *alloc_buffer_head(gfp_t gfp_flags); |
| 176 | void free_buffer_head(struct buffer_head * bh); | 176 | void free_buffer_head(struct buffer_head * bh); |
| 177 | void FASTCALL(unlock_buffer(struct buffer_head *bh)); | 177 | void FASTCALL(unlock_buffer(struct buffer_head *bh)); |
| 178 | void FASTCALL(__lock_buffer(struct buffer_head *bh)); | 178 | void FASTCALL(__lock_buffer(struct buffer_head *bh)); |
diff --git a/include/linux/connector.h b/include/linux/connector.h index 96582c9911ac..95952cc1f525 100644 --- a/include/linux/connector.h +++ b/include/linux/connector.h | |||
| @@ -149,7 +149,7 @@ struct cn_dev { | |||
| 149 | 149 | ||
| 150 | int cn_add_callback(struct cb_id *, char *, void (*callback) (void *)); | 150 | int cn_add_callback(struct cb_id *, char *, void (*callback) (void *)); |
| 151 | void cn_del_callback(struct cb_id *); | 151 | void cn_del_callback(struct cb_id *); |
| 152 | int cn_netlink_send(struct cn_msg *, u32, unsigned int __nocast); | 152 | int cn_netlink_send(struct cn_msg *, u32, gfp_t); |
| 153 | 153 | ||
| 154 | int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id, void (*callback)(void *)); | 154 | int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id, void (*callback)(void *)); |
| 155 | void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id); | 155 | void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id); |
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 24062a1dbf61..6e2deef96b34 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
| @@ -23,7 +23,7 @@ void cpuset_init_current_mems_allowed(void); | |||
| 23 | void cpuset_update_current_mems_allowed(void); | 23 | void cpuset_update_current_mems_allowed(void); |
| 24 | void cpuset_restrict_to_mems_allowed(unsigned long *nodes); | 24 | void cpuset_restrict_to_mems_allowed(unsigned long *nodes); |
| 25 | int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl); | 25 | int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl); |
| 26 | extern int cpuset_zone_allowed(struct zone *z, unsigned int __nocast gfp_mask); | 26 | extern int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask); |
| 27 | extern int cpuset_excl_nodes_overlap(const struct task_struct *p); | 27 | extern int cpuset_excl_nodes_overlap(const struct task_struct *p); |
| 28 | extern struct file_operations proc_cpuset_operations; | 28 | extern struct file_operations proc_cpuset_operations; |
| 29 | extern char *cpuset_task_status_allowed(struct task_struct *task, char *buffer); | 29 | extern char *cpuset_task_status_allowed(struct task_struct *task, char *buffer); |
| @@ -49,8 +49,7 @@ static inline int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl) | |||
| 49 | return 1; | 49 | return 1; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | static inline int cpuset_zone_allowed(struct zone *z, | 52 | static inline int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask) |
| 53 | unsigned int __nocast gfp_mask) | ||
| 54 | { | 53 | { |
| 55 | return 1; | 54 | return 1; |
| 56 | } | 55 | } |
diff --git a/include/linux/dmapool.h b/include/linux/dmapool.h index 4932ee5c77f0..76f12f46db7f 100644 --- a/include/linux/dmapool.h +++ b/include/linux/dmapool.h | |||
| @@ -19,7 +19,7 @@ struct dma_pool *dma_pool_create(const char *name, struct device *dev, | |||
| 19 | 19 | ||
| 20 | void dma_pool_destroy(struct dma_pool *pool); | 20 | void dma_pool_destroy(struct dma_pool *pool); |
| 21 | 21 | ||
| 22 | void *dma_pool_alloc(struct dma_pool *pool, unsigned int __nocast mem_flags, | 22 | void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, |
| 23 | dma_addr_t *handle); | 23 | dma_addr_t *handle); |
| 24 | 24 | ||
| 25 | void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t addr); | 25 | void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t addr); |
diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 4dc990f3b5cc..3010e172394d 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h | |||
| @@ -85,9 +85,9 @@ static inline void arch_free_page(struct page *page, int order) { } | |||
| 85 | #endif | 85 | #endif |
| 86 | 86 | ||
| 87 | extern struct page * | 87 | extern struct page * |
| 88 | FASTCALL(__alloc_pages(unsigned int, unsigned int, struct zonelist *)); | 88 | FASTCALL(__alloc_pages(gfp_t, unsigned int, struct zonelist *)); |
| 89 | 89 | ||
| 90 | static inline struct page *alloc_pages_node(int nid, unsigned int __nocast gfp_mask, | 90 | static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask, |
| 91 | unsigned int order) | 91 | unsigned int order) |
| 92 | { | 92 | { |
| 93 | if (unlikely(order >= MAX_ORDER)) | 93 | if (unlikely(order >= MAX_ORDER)) |
| @@ -98,17 +98,17 @@ static inline struct page *alloc_pages_node(int nid, unsigned int __nocast gfp_m | |||
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | #ifdef CONFIG_NUMA | 100 | #ifdef CONFIG_NUMA |
| 101 | extern struct page *alloc_pages_current(unsigned int __nocast gfp_mask, unsigned order); | 101 | extern struct page *alloc_pages_current(gfp_t gfp_mask, unsigned order); |
| 102 | 102 | ||
| 103 | static inline struct page * | 103 | static inline struct page * |
| 104 | alloc_pages(unsigned int __nocast gfp_mask, unsigned int order) | 104 | alloc_pages(gfp_t gfp_mask, unsigned int order) |
| 105 | { | 105 | { |
| 106 | if (unlikely(order >= MAX_ORDER)) | 106 | if (unlikely(order >= MAX_ORDER)) |
| 107 | return NULL; | 107 | return NULL; |
| 108 | 108 | ||
| 109 | return alloc_pages_current(gfp_mask, order); | 109 | return alloc_pages_current(gfp_mask, order); |
| 110 | } | 110 | } |
| 111 | extern struct page *alloc_page_vma(unsigned __nocast gfp_mask, | 111 | extern struct page *alloc_page_vma(gfp_t gfp_mask, |
| 112 | struct vm_area_struct *vma, unsigned long addr); | 112 | struct vm_area_struct *vma, unsigned long addr); |
| 113 | #else | 113 | #else |
| 114 | #define alloc_pages(gfp_mask, order) \ | 114 | #define alloc_pages(gfp_mask, order) \ |
| @@ -117,8 +117,8 @@ extern struct page *alloc_page_vma(unsigned __nocast gfp_mask, | |||
| 117 | #endif | 117 | #endif |
| 118 | #define alloc_page(gfp_mask) alloc_pages(gfp_mask, 0) | 118 | #define alloc_page(gfp_mask) alloc_pages(gfp_mask, 0) |
| 119 | 119 | ||
| 120 | extern unsigned long FASTCALL(__get_free_pages(unsigned int __nocast gfp_mask, unsigned int order)); | 120 | extern unsigned long FASTCALL(__get_free_pages(gfp_t gfp_mask, unsigned int order)); |
| 121 | extern unsigned long FASTCALL(get_zeroed_page(unsigned int __nocast gfp_mask)); | 121 | extern unsigned long FASTCALL(get_zeroed_page(gfp_t gfp_mask)); |
| 122 | 122 | ||
| 123 | #define __get_free_page(gfp_mask) \ | 123 | #define __get_free_page(gfp_mask) \ |
| 124 | __get_free_pages((gfp_mask),0) | 124 | __get_free_pages((gfp_mask),0) |
diff --git a/include/linux/jbd.h b/include/linux/jbd.h index de097269bd7f..ff853b3173c6 100644 --- a/include/linux/jbd.h +++ b/include/linux/jbd.h | |||
| @@ -935,7 +935,7 @@ void journal_put_journal_head(struct journal_head *jh); | |||
| 935 | */ | 935 | */ |
| 936 | extern kmem_cache_t *jbd_handle_cache; | 936 | extern kmem_cache_t *jbd_handle_cache; |
| 937 | 937 | ||
| 938 | static inline handle_t *jbd_alloc_handle(unsigned int __nocast gfp_flags) | 938 | static inline handle_t *jbd_alloc_handle(gfp_t gfp_flags) |
| 939 | { | 939 | { |
| 940 | return kmem_cache_alloc(jbd_handle_cache, gfp_flags); | 940 | return kmem_cache_alloc(jbd_handle_cache, gfp_flags); |
| 941 | } | 941 | } |
diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h index c27cd428d269..48eccd865bd8 100644 --- a/include/linux/kfifo.h +++ b/include/linux/kfifo.h | |||
| @@ -35,8 +35,8 @@ struct kfifo { | |||
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | extern struct kfifo *kfifo_init(unsigned char *buffer, unsigned int size, | 37 | extern struct kfifo *kfifo_init(unsigned char *buffer, unsigned int size, |
| 38 | unsigned int __nocast gfp_mask, spinlock_t *lock); | 38 | gfp_t gfp_mask, spinlock_t *lock); |
| 39 | extern struct kfifo *kfifo_alloc(unsigned int size, unsigned int __nocast gfp_mask, | 39 | extern struct kfifo *kfifo_alloc(unsigned int size, gfp_t gfp_mask, |
| 40 | spinlock_t *lock); | 40 | spinlock_t *lock); |
| 41 | extern void kfifo_free(struct kfifo *fifo); | 41 | extern void kfifo_free(struct kfifo *fifo); |
| 42 | extern unsigned int __kfifo_put(struct kfifo *fifo, | 42 | extern unsigned int __kfifo_put(struct kfifo *fifo, |
diff --git a/include/linux/mempool.h b/include/linux/mempool.h index 796220ce47cc..f2427d7394b0 100644 --- a/include/linux/mempool.h +++ b/include/linux/mempool.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include <linux/wait.h> | 7 | #include <linux/wait.h> |
| 8 | 8 | ||
| 9 | typedef void * (mempool_alloc_t)(unsigned int __nocast gfp_mask, void *pool_data); | 9 | typedef void * (mempool_alloc_t)(gfp_t gfp_mask, void *pool_data); |
| 10 | typedef void (mempool_free_t)(void *element, void *pool_data); | 10 | typedef void (mempool_free_t)(void *element, void *pool_data); |
| 11 | 11 | ||
| 12 | typedef struct mempool_s { | 12 | typedef struct mempool_s { |
| @@ -26,17 +26,16 @@ extern mempool_t *mempool_create(int min_nr, mempool_alloc_t *alloc_fn, | |||
| 26 | extern mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, | 26 | extern mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, |
| 27 | mempool_free_t *free_fn, void *pool_data, int nid); | 27 | mempool_free_t *free_fn, void *pool_data, int nid); |
| 28 | 28 | ||
| 29 | extern int mempool_resize(mempool_t *pool, int new_min_nr, | 29 | extern int mempool_resize(mempool_t *pool, int new_min_nr, gfp_t gfp_mask); |
| 30 | unsigned int __nocast gfp_mask); | ||
| 31 | extern void mempool_destroy(mempool_t *pool); | 30 | extern void mempool_destroy(mempool_t *pool); |
| 32 | extern void * mempool_alloc(mempool_t *pool, unsigned int __nocast gfp_mask); | 31 | extern void * mempool_alloc(mempool_t *pool, gfp_t gfp_mask); |
| 33 | extern void mempool_free(void *element, mempool_t *pool); | 32 | extern void mempool_free(void *element, mempool_t *pool); |
| 34 | 33 | ||
| 35 | /* | 34 | /* |
| 36 | * A mempool_alloc_t and mempool_free_t that get the memory from | 35 | * A mempool_alloc_t and mempool_free_t that get the memory from |
| 37 | * a slab that is passed in through pool_data. | 36 | * a slab that is passed in through pool_data. |
| 38 | */ | 37 | */ |
| 39 | void *mempool_alloc_slab(unsigned int __nocast gfp_mask, void *pool_data); | 38 | void *mempool_alloc_slab(gfp_t gfp_mask, void *pool_data); |
| 40 | void mempool_free_slab(void *element, void *pool_data); | 39 | void mempool_free_slab(void *element, void *pool_data); |
| 41 | 40 | ||
| 42 | #endif /* _LINUX_MEMPOOL_H */ | 41 | #endif /* _LINUX_MEMPOOL_H */ |
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index bdebdc564506..ba25ca874c20 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h | |||
| @@ -131,7 +131,7 @@ extern struct sock *netlink_kernel_create(int unit, unsigned int groups, void (* | |||
| 131 | extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err); | 131 | extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err); |
| 132 | extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 pid, int nonblock); | 132 | extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 pid, int nonblock); |
| 133 | extern int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 pid, | 133 | extern int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 pid, |
| 134 | __u32 group, unsigned int __nocast allocation); | 134 | __u32 group, gfp_t allocation); |
| 135 | extern void netlink_set_err(struct sock *ssk, __u32 pid, __u32 group, int code); | 135 | extern void netlink_set_err(struct sock *ssk, __u32 pid, __u32 group, int code); |
| 136 | extern int netlink_register_notifier(struct notifier_block *nb); | 136 | extern int netlink_register_notifier(struct notifier_block *nb); |
| 137 | extern int netlink_unregister_notifier(struct notifier_block *nb); | 137 | extern int netlink_unregister_notifier(struct notifier_block *nb); |
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index d9a25647a295..acbf31c154f8 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | #define AS_EIO (__GFP_BITS_SHIFT + 0) /* IO error on async write */ | 19 | #define AS_EIO (__GFP_BITS_SHIFT + 0) /* IO error on async write */ |
| 20 | #define AS_ENOSPC (__GFP_BITS_SHIFT + 1) /* ENOSPC on async write */ | 20 | #define AS_ENOSPC (__GFP_BITS_SHIFT + 1) /* ENOSPC on async write */ |
| 21 | 21 | ||
| 22 | static inline unsigned int __nocast mapping_gfp_mask(struct address_space * mapping) | 22 | static inline gfp_t mapping_gfp_mask(struct address_space * mapping) |
| 23 | { | 23 | { |
| 24 | return mapping->flags & __GFP_BITS_MASK; | 24 | return mapping->flags & __GFP_BITS_MASK; |
| 25 | } | 25 | } |
diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h index 4caedddaa033..4bc241290c24 100644 --- a/include/linux/posix_acl.h +++ b/include/linux/posix_acl.h | |||
| @@ -71,11 +71,11 @@ posix_acl_release(struct posix_acl *acl) | |||
| 71 | 71 | ||
| 72 | /* posix_acl.c */ | 72 | /* posix_acl.c */ |
| 73 | 73 | ||
| 74 | extern struct posix_acl *posix_acl_alloc(int, unsigned int __nocast); | 74 | extern struct posix_acl *posix_acl_alloc(int, gfp_t); |
| 75 | extern struct posix_acl *posix_acl_clone(const struct posix_acl *, unsigned int __nocast); | 75 | extern struct posix_acl *posix_acl_clone(const struct posix_acl *, gfp_t); |
| 76 | extern int posix_acl_valid(const struct posix_acl *); | 76 | extern int posix_acl_valid(const struct posix_acl *); |
| 77 | extern int posix_acl_permission(struct inode *, const struct posix_acl *, int); | 77 | extern int posix_acl_permission(struct inode *, const struct posix_acl *, int); |
| 78 | extern struct posix_acl *posix_acl_from_mode(mode_t, unsigned int __nocast); | 78 | extern struct posix_acl *posix_acl_from_mode(mode_t, gfp_t); |
| 79 | extern int posix_acl_equiv_mode(const struct posix_acl *, mode_t *); | 79 | extern int posix_acl_equiv_mode(const struct posix_acl *, mode_t *); |
| 80 | extern int posix_acl_create_masq(struct posix_acl *, mode_t *); | 80 | extern int posix_acl_create_masq(struct posix_acl *, mode_t *); |
| 81 | extern int posix_acl_chmod_masq(struct posix_acl *, mode_t); | 81 | extern int posix_acl_chmod_masq(struct posix_acl *, mode_t); |
diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h index 9c51917b1cce..045d4761febc 100644 --- a/include/linux/radix-tree.h +++ b/include/linux/radix-tree.h | |||
| @@ -50,7 +50,7 @@ void *radix_tree_delete(struct radix_tree_root *, unsigned long); | |||
| 50 | unsigned int | 50 | unsigned int |
| 51 | radix_tree_gang_lookup(struct radix_tree_root *root, void **results, | 51 | radix_tree_gang_lookup(struct radix_tree_root *root, void **results, |
| 52 | unsigned long first_index, unsigned int max_items); | 52 | unsigned long first_index, unsigned int max_items); |
| 53 | int radix_tree_preload(unsigned int __nocast gfp_mask); | 53 | int radix_tree_preload(gfp_t gfp_mask); |
| 54 | void radix_tree_init(void); | 54 | void radix_tree_init(void); |
| 55 | void *radix_tree_tag_set(struct radix_tree_root *root, | 55 | void *radix_tree_tag_set(struct radix_tree_root *root, |
| 56 | unsigned long index, int tag); | 56 | unsigned long index, int tag); |
diff --git a/include/linux/security.h b/include/linux/security.h index 0e43460d374e..627382e74057 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
| @@ -2634,8 +2634,7 @@ static inline int security_socket_getpeersec(struct socket *sock, char __user *o | |||
| 2634 | return security_ops->socket_getpeersec(sock, optval, optlen, len); | 2634 | return security_ops->socket_getpeersec(sock, optval, optlen, len); |
| 2635 | } | 2635 | } |
| 2636 | 2636 | ||
| 2637 | static inline int security_sk_alloc(struct sock *sk, int family, | 2637 | static inline int security_sk_alloc(struct sock *sk, int family, gfp_t priority) |
| 2638 | unsigned int __nocast priority) | ||
| 2639 | { | 2638 | { |
| 2640 | return security_ops->sk_alloc_security(sk, family, priority); | 2639 | return security_ops->sk_alloc_security(sk, family, priority); |
| 2641 | } | 2640 | } |
| @@ -2752,8 +2751,7 @@ static inline int security_socket_getpeersec(struct socket *sock, char __user *o | |||
| 2752 | return -ENOPROTOOPT; | 2751 | return -ENOPROTOOPT; |
| 2753 | } | 2752 | } |
| 2754 | 2753 | ||
| 2755 | static inline int security_sk_alloc(struct sock *sk, int family, | 2754 | static inline int security_sk_alloc(struct sock *sk, int family, gfp_t priority) |
| 2756 | unsigned int __nocast priority) | ||
| 2757 | { | 2755 | { |
| 2758 | return 0; | 2756 | return 0; |
| 2759 | } | 2757 | } |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 466c879f82b8..8f5d9e7f8734 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -302,37 +302,37 @@ struct sk_buff { | |||
| 302 | 302 | ||
| 303 | extern void __kfree_skb(struct sk_buff *skb); | 303 | extern void __kfree_skb(struct sk_buff *skb); |
| 304 | extern struct sk_buff *__alloc_skb(unsigned int size, | 304 | extern struct sk_buff *__alloc_skb(unsigned int size, |
| 305 | unsigned int __nocast priority, int fclone); | 305 | gfp_t priority, int fclone); |
| 306 | static inline struct sk_buff *alloc_skb(unsigned int size, | 306 | static inline struct sk_buff *alloc_skb(unsigned int size, |
| 307 | unsigned int __nocast priority) | 307 | gfp_t priority) |
| 308 | { | 308 | { |
| 309 | return __alloc_skb(size, priority, 0); | 309 | return __alloc_skb(size, priority, 0); |
| 310 | } | 310 | } |
| 311 | 311 | ||
| 312 | static inline struct sk_buff *alloc_skb_fclone(unsigned int size, | 312 | static inline struct sk_buff *alloc_skb_fclone(unsigned int size, |
| 313 | unsigned int __nocast priority) | 313 | gfp_t priority) |
| 314 | { | 314 | { |
| 315 | return __alloc_skb(size, priority, 1); | 315 | return __alloc_skb(size, priority, 1); |
| 316 | } | 316 | } |
| 317 | 317 | ||
| 318 | extern struct sk_buff *alloc_skb_from_cache(kmem_cache_t *cp, | 318 | extern struct sk_buff *alloc_skb_from_cache(kmem_cache_t *cp, |
| 319 | unsigned int size, | 319 | unsigned int size, |
| 320 | unsigned int __nocast priority); | 320 | gfp_t priority); |
| 321 | extern void kfree_skbmem(struct sk_buff *skb); | 321 | extern void kfree_skbmem(struct sk_buff *skb); |
| 322 | extern struct sk_buff *skb_clone(struct sk_buff *skb, | 322 | extern struct sk_buff *skb_clone(struct sk_buff *skb, |
| 323 | unsigned int __nocast priority); | 323 | gfp_t priority); |
| 324 | extern struct sk_buff *skb_copy(const struct sk_buff *skb, | 324 | extern struct sk_buff *skb_copy(const struct sk_buff *skb, |
| 325 | unsigned int __nocast priority); | 325 | gfp_t priority); |
| 326 | extern struct sk_buff *pskb_copy(struct sk_buff *skb, | 326 | extern struct sk_buff *pskb_copy(struct sk_buff *skb, |
| 327 | unsigned int __nocast gfp_mask); | 327 | gfp_t gfp_mask); |
| 328 | extern int pskb_expand_head(struct sk_buff *skb, | 328 | extern int pskb_expand_head(struct sk_buff *skb, |
| 329 | int nhead, int ntail, | 329 | int nhead, int ntail, |
| 330 | unsigned int __nocast gfp_mask); | 330 | gfp_t gfp_mask); |
| 331 | extern struct sk_buff *skb_realloc_headroom(struct sk_buff *skb, | 331 | extern struct sk_buff *skb_realloc_headroom(struct sk_buff *skb, |
| 332 | unsigned int headroom); | 332 | unsigned int headroom); |
| 333 | extern struct sk_buff *skb_copy_expand(const struct sk_buff *skb, | 333 | extern struct sk_buff *skb_copy_expand(const struct sk_buff *skb, |
| 334 | int newheadroom, int newtailroom, | 334 | int newheadroom, int newtailroom, |
| 335 | unsigned int __nocast priority); | 335 | gfp_t priority); |
| 336 | extern struct sk_buff * skb_pad(struct sk_buff *skb, int pad); | 336 | extern struct sk_buff * skb_pad(struct sk_buff *skb, int pad); |
| 337 | #define dev_kfree_skb(a) kfree_skb(a) | 337 | #define dev_kfree_skb(a) kfree_skb(a) |
| 338 | extern void skb_over_panic(struct sk_buff *skb, int len, | 338 | extern void skb_over_panic(struct sk_buff *skb, int len, |
| @@ -484,7 +484,7 @@ static inline int skb_shared(const struct sk_buff *skb) | |||
| 484 | * NULL is returned on a memory allocation failure. | 484 | * NULL is returned on a memory allocation failure. |
| 485 | */ | 485 | */ |
| 486 | static inline struct sk_buff *skb_share_check(struct sk_buff *skb, | 486 | static inline struct sk_buff *skb_share_check(struct sk_buff *skb, |
| 487 | unsigned int __nocast pri) | 487 | gfp_t pri) |
| 488 | { | 488 | { |
| 489 | might_sleep_if(pri & __GFP_WAIT); | 489 | might_sleep_if(pri & __GFP_WAIT); |
| 490 | if (skb_shared(skb)) { | 490 | if (skb_shared(skb)) { |
| @@ -516,7 +516,7 @@ static inline struct sk_buff *skb_share_check(struct sk_buff *skb, | |||
| 516 | * %NULL is returned on a memory allocation failure. | 516 | * %NULL is returned on a memory allocation failure. |
| 517 | */ | 517 | */ |
| 518 | static inline struct sk_buff *skb_unshare(struct sk_buff *skb, | 518 | static inline struct sk_buff *skb_unshare(struct sk_buff *skb, |
| 519 | unsigned int __nocast pri) | 519 | gfp_t pri) |
| 520 | { | 520 | { |
| 521 | might_sleep_if(pri & __GFP_WAIT); | 521 | might_sleep_if(pri & __GFP_WAIT); |
| 522 | if (skb_cloned(skb)) { | 522 | if (skb_cloned(skb)) { |
| @@ -1017,7 +1017,7 @@ static inline void __skb_queue_purge(struct sk_buff_head *list) | |||
| 1017 | * %NULL is returned in there is no free memory. | 1017 | * %NULL is returned in there is no free memory. |
| 1018 | */ | 1018 | */ |
| 1019 | static inline struct sk_buff *__dev_alloc_skb(unsigned int length, | 1019 | static inline struct sk_buff *__dev_alloc_skb(unsigned int length, |
| 1020 | unsigned int __nocast gfp_mask) | 1020 | gfp_t gfp_mask) |
| 1021 | { | 1021 | { |
| 1022 | struct sk_buff *skb = alloc_skb(length + 16, gfp_mask); | 1022 | struct sk_buff *skb = alloc_skb(length + 16, gfp_mask); |
| 1023 | if (likely(skb)) | 1023 | if (likely(skb)) |
| @@ -1130,8 +1130,8 @@ static inline int skb_can_coalesce(struct sk_buff *skb, int i, | |||
| 1130 | * If there is no free memory -ENOMEM is returned, otherwise zero | 1130 | * If there is no free memory -ENOMEM is returned, otherwise zero |
| 1131 | * is returned and the old skb data released. | 1131 | * is returned and the old skb data released. |
| 1132 | */ | 1132 | */ |
| 1133 | extern int __skb_linearize(struct sk_buff *skb, unsigned int __nocast gfp); | 1133 | extern int __skb_linearize(struct sk_buff *skb, gfp_t gfp); |
| 1134 | static inline int skb_linearize(struct sk_buff *skb, unsigned int __nocast gfp) | 1134 | static inline int skb_linearize(struct sk_buff *skb, gfp_t gfp) |
| 1135 | { | 1135 | { |
| 1136 | return __skb_linearize(skb, gfp); | 1136 | return __skb_linearize(skb, gfp); |
| 1137 | } | 1137 | } |
diff --git a/include/linux/slab.h b/include/linux/slab.h index 1f356f3bbc64..5fc04a16ecb0 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
| @@ -61,11 +61,11 @@ extern kmem_cache_t *kmem_cache_create(const char *, size_t, size_t, unsigned lo | |||
| 61 | void (*)(void *, kmem_cache_t *, unsigned long)); | 61 | void (*)(void *, kmem_cache_t *, unsigned long)); |
| 62 | extern int kmem_cache_destroy(kmem_cache_t *); | 62 | extern int kmem_cache_destroy(kmem_cache_t *); |
| 63 | extern int kmem_cache_shrink(kmem_cache_t *); | 63 | extern int kmem_cache_shrink(kmem_cache_t *); |
| 64 | extern void *kmem_cache_alloc(kmem_cache_t *, unsigned int __nocast); | 64 | extern void *kmem_cache_alloc(kmem_cache_t *, gfp_t); |
| 65 | extern void kmem_cache_free(kmem_cache_t *, void *); | 65 | extern void kmem_cache_free(kmem_cache_t *, void *); |
| 66 | extern unsigned int kmem_cache_size(kmem_cache_t *); | 66 | extern unsigned int kmem_cache_size(kmem_cache_t *); |
| 67 | extern const char *kmem_cache_name(kmem_cache_t *); | 67 | extern const char *kmem_cache_name(kmem_cache_t *); |
| 68 | extern kmem_cache_t *kmem_find_general_cachep(size_t size, unsigned int __nocast gfpflags); | 68 | extern kmem_cache_t *kmem_find_general_cachep(size_t size, gfp_t gfpflags); |
| 69 | 69 | ||
| 70 | /* Size description struct for general caches. */ | 70 | /* Size description struct for general caches. */ |
| 71 | struct cache_sizes { | 71 | struct cache_sizes { |
| @@ -74,9 +74,9 @@ struct cache_sizes { | |||
| 74 | kmem_cache_t *cs_dmacachep; | 74 | kmem_cache_t *cs_dmacachep; |
| 75 | }; | 75 | }; |
| 76 | extern struct cache_sizes malloc_sizes[]; | 76 | extern struct cache_sizes malloc_sizes[]; |
| 77 | extern void *__kmalloc(size_t, unsigned int __nocast); | 77 | extern void *__kmalloc(size_t, gfp_t); |
| 78 | 78 | ||
| 79 | static inline void *kmalloc(size_t size, unsigned int __nocast flags) | 79 | static inline void *kmalloc(size_t size, gfp_t flags) |
| 80 | { | 80 | { |
| 81 | if (__builtin_constant_p(size)) { | 81 | if (__builtin_constant_p(size)) { |
| 82 | int i = 0; | 82 | int i = 0; |
| @@ -99,7 +99,7 @@ found: | |||
| 99 | return __kmalloc(size, flags); | 99 | return __kmalloc(size, flags); |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | extern void *kzalloc(size_t, unsigned int __nocast); | 102 | extern void *kzalloc(size_t, gfp_t); |
| 103 | 103 | ||
| 104 | /** | 104 | /** |
| 105 | * kcalloc - allocate memory for an array. The memory is set to zero. | 105 | * kcalloc - allocate memory for an array. The memory is set to zero. |
| @@ -107,7 +107,7 @@ extern void *kzalloc(size_t, unsigned int __nocast); | |||
| 107 | * @size: element size. | 107 | * @size: element size. |
| 108 | * @flags: the type of memory to allocate. | 108 | * @flags: the type of memory to allocate. |
| 109 | */ | 109 | */ |
| 110 | static inline void *kcalloc(size_t n, size_t size, unsigned int __nocast flags) | 110 | static inline void *kcalloc(size_t n, size_t size, gfp_t flags) |
| 111 | { | 111 | { |
| 112 | if (n != 0 && size > INT_MAX / n) | 112 | if (n != 0 && size > INT_MAX / n) |
| 113 | return NULL; | 113 | return NULL; |
| @@ -118,15 +118,14 @@ extern void kfree(const void *); | |||
| 118 | extern unsigned int ksize(const void *); | 118 | extern unsigned int ksize(const void *); |
| 119 | 119 | ||
| 120 | #ifdef CONFIG_NUMA | 120 | #ifdef CONFIG_NUMA |
| 121 | extern void *kmem_cache_alloc_node(kmem_cache_t *, | 121 | extern void *kmem_cache_alloc_node(kmem_cache_t *, gfp_t flags, int node); |
| 122 | unsigned int __nocast flags, int node); | 122 | extern void *kmalloc_node(size_t size, gfp_t flags, int node); |
| 123 | extern void *kmalloc_node(size_t size, unsigned int __nocast flags, int node); | ||
| 124 | #else | 123 | #else |
| 125 | static inline void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int node) | 124 | static inline void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int node) |
| 126 | { | 125 | { |
| 127 | return kmem_cache_alloc(cachep, flags); | 126 | return kmem_cache_alloc(cachep, flags); |
| 128 | } | 127 | } |
| 129 | static inline void *kmalloc_node(size_t size, unsigned int __nocast flags, int node) | 128 | static inline void *kmalloc_node(size_t size, gfp_t flags, int node) |
| 130 | { | 129 | { |
| 131 | return kmalloc(size, flags); | 130 | return kmalloc(size, flags); |
| 132 | } | 131 | } |
diff --git a/include/linux/string.h b/include/linux/string.h index dab2652acbd8..369be3264a55 100644 --- a/include/linux/string.h +++ b/include/linux/string.h | |||
| @@ -88,7 +88,7 @@ extern int memcmp(const void *,const void *,__kernel_size_t); | |||
| 88 | extern void * memchr(const void *,int,__kernel_size_t); | 88 | extern void * memchr(const void *,int,__kernel_size_t); |
| 89 | #endif | 89 | #endif |
| 90 | 90 | ||
| 91 | extern char *kstrdup(const char *s, unsigned int __nocast gfp); | 91 | extern char *kstrdup(const char *s, gfp_t gfp); |
| 92 | 92 | ||
| 93 | #ifdef __cplusplus | 93 | #ifdef __cplusplus |
| 94 | } | 94 | } |
diff --git a/include/linux/swap.h b/include/linux/swap.h index 3c9ff0048153..a7bf1a3b1496 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
| @@ -147,7 +147,7 @@ struct swap_list_t { | |||
| 147 | #define vm_swap_full() (nr_swap_pages*2 < total_swap_pages) | 147 | #define vm_swap_full() (nr_swap_pages*2 < total_swap_pages) |
| 148 | 148 | ||
| 149 | /* linux/mm/oom_kill.c */ | 149 | /* linux/mm/oom_kill.c */ |
| 150 | extern void out_of_memory(unsigned int __nocast gfp_mask, int order); | 150 | extern void out_of_memory(gfp_t gfp_mask, int order); |
| 151 | 151 | ||
| 152 | /* linux/mm/memory.c */ | 152 | /* linux/mm/memory.c */ |
| 153 | extern void swapin_readahead(swp_entry_t, unsigned long, struct vm_area_struct *); | 153 | extern void swapin_readahead(swp_entry_t, unsigned long, struct vm_area_struct *); |
diff --git a/include/linux/textsearch.h b/include/linux/textsearch.h index 1a4990e448e9..515046d1b2f4 100644 --- a/include/linux/textsearch.h +++ b/include/linux/textsearch.h | |||
| @@ -159,7 +159,7 @@ extern unsigned int textsearch_find_continuous(struct ts_config *, | |||
| 159 | #define TS_PRIV_ALIGN(len) (((len) + TS_PRIV_ALIGNTO-1) & ~(TS_PRIV_ALIGNTO-1)) | 159 | #define TS_PRIV_ALIGN(len) (((len) + TS_PRIV_ALIGNTO-1) & ~(TS_PRIV_ALIGNTO-1)) |
| 160 | 160 | ||
| 161 | static inline struct ts_config *alloc_ts_config(size_t payload, | 161 | static inline struct ts_config *alloc_ts_config(size_t payload, |
| 162 | unsigned int __nocast gfp_mask) | 162 | gfp_t gfp_mask) |
| 163 | { | 163 | { |
| 164 | struct ts_config *conf; | 164 | struct ts_config *conf; |
| 165 | 165 | ||
diff --git a/include/linux/types.h b/include/linux/types.h index 2b678c22ca4a..0aee34f9da9f 100644 --- a/include/linux/types.h +++ b/include/linux/types.h | |||
| @@ -165,6 +165,10 @@ typedef __u64 __bitwise __le64; | |||
| 165 | typedef __u64 __bitwise __be64; | 165 | typedef __u64 __bitwise __be64; |
| 166 | #endif | 166 | #endif |
| 167 | 167 | ||
| 168 | #ifdef __KERNEL__ | ||
| 169 | typedef unsigned __nocast gfp_t; | ||
| 170 | #endif | ||
| 171 | |||
| 168 | struct ustat { | 172 | struct ustat { |
| 169 | __kernel_daddr_t f_tfree; | 173 | __kernel_daddr_t f_tfree; |
| 170 | __kernel_ino_t f_tinode; | 174 | __kernel_ino_t f_tinode; |
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index b244f69ef682..3701a0673d2c 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h | |||
| @@ -34,8 +34,8 @@ struct vm_struct { | |||
| 34 | extern void *vmalloc(unsigned long size); | 34 | extern void *vmalloc(unsigned long size); |
| 35 | extern void *vmalloc_exec(unsigned long size); | 35 | extern void *vmalloc_exec(unsigned long size); |
| 36 | extern void *vmalloc_32(unsigned long size); | 36 | extern void *vmalloc_32(unsigned long size); |
| 37 | extern void *__vmalloc(unsigned long size, unsigned int __nocast gfp_mask, pgprot_t prot); | 37 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot); |
| 38 | extern void *__vmalloc_area(struct vm_struct *area, unsigned int __nocast gfp_mask, pgprot_t prot); | 38 | extern void *__vmalloc_area(struct vm_struct *area, gfp_t gfp_mask, pgprot_t prot); |
| 39 | extern void vfree(void *addr); | 39 | extern void vfree(void *addr); |
| 40 | 40 | ||
| 41 | extern void *vmap(struct page **pages, unsigned int count, | 41 | extern void *vmap(struct page **pages, unsigned int count, |
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 6dfa4a61ffd0..210458624840 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
| @@ -136,7 +136,7 @@ struct bt_skb_cb { | |||
| 136 | }; | 136 | }; |
| 137 | #define bt_cb(skb) ((struct bt_skb_cb *)(skb->cb)) | 137 | #define bt_cb(skb) ((struct bt_skb_cb *)(skb->cb)) |
| 138 | 138 | ||
| 139 | static inline struct sk_buff *bt_skb_alloc(unsigned int len, unsigned int __nocast how) | 139 | static inline struct sk_buff *bt_skb_alloc(unsigned int len, gfp_t how) |
| 140 | { | 140 | { |
| 141 | struct sk_buff *skb; | 141 | struct sk_buff *skb; |
| 142 | 142 | ||
diff --git a/include/net/bluetooth/rfcomm.h b/include/net/bluetooth/rfcomm.h index ffea9d54071f..fbe557f7ea1d 100644 --- a/include/net/bluetooth/rfcomm.h +++ b/include/net/bluetooth/rfcomm.h | |||
| @@ -230,7 +230,7 @@ int rfcomm_send_rpn(struct rfcomm_session *s, int cr, u8 dlci, | |||
| 230 | u8 xon_char, u8 xoff_char, u16 param_mask); | 230 | u8 xon_char, u8 xoff_char, u16 param_mask); |
| 231 | 231 | ||
| 232 | /* ---- RFCOMM DLCs (channels) ---- */ | 232 | /* ---- RFCOMM DLCs (channels) ---- */ |
| 233 | struct rfcomm_dlc *rfcomm_dlc_alloc(unsigned int __nocast prio); | 233 | struct rfcomm_dlc *rfcomm_dlc_alloc(gfp_t prio); |
| 234 | void rfcomm_dlc_free(struct rfcomm_dlc *d); | 234 | void rfcomm_dlc_free(struct rfcomm_dlc *d); |
| 235 | int rfcomm_dlc_open(struct rfcomm_dlc *d, bdaddr_t *src, bdaddr_t *dst, u8 channel); | 235 | int rfcomm_dlc_open(struct rfcomm_dlc *d, bdaddr_t *src, bdaddr_t *dst, u8 channel); |
| 236 | int rfcomm_dlc_close(struct rfcomm_dlc *d, int reason); | 236 | int rfcomm_dlc_close(struct rfcomm_dlc *d, int reason); |
diff --git a/include/net/dn_nsp.h b/include/net/dn_nsp.h index 8a0891e2e888..1ba03be0af3a 100644 --- a/include/net/dn_nsp.h +++ b/include/net/dn_nsp.h | |||
| @@ -19,9 +19,9 @@ extern void dn_nsp_send_data_ack(struct sock *sk); | |||
| 19 | extern void dn_nsp_send_oth_ack(struct sock *sk); | 19 | extern void dn_nsp_send_oth_ack(struct sock *sk); |
| 20 | extern void dn_nsp_delayed_ack(struct sock *sk); | 20 | extern void dn_nsp_delayed_ack(struct sock *sk); |
| 21 | extern void dn_send_conn_ack(struct sock *sk); | 21 | extern void dn_send_conn_ack(struct sock *sk); |
| 22 | extern void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp); | 22 | extern void dn_send_conn_conf(struct sock *sk, gfp_t gfp); |
| 23 | extern void dn_nsp_send_disc(struct sock *sk, unsigned char type, | 23 | extern void dn_nsp_send_disc(struct sock *sk, unsigned char type, |
| 24 | unsigned short reason, unsigned int __nocast gfp); | 24 | unsigned short reason, gfp_t gfp); |
| 25 | extern void dn_nsp_return_disc(struct sk_buff *skb, unsigned char type, | 25 | extern void dn_nsp_return_disc(struct sk_buff *skb, unsigned char type, |
| 26 | unsigned short reason); | 26 | unsigned short reason); |
| 27 | extern void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval); | 27 | extern void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval); |
| @@ -29,14 +29,14 @@ extern void dn_nsp_send_conninit(struct sock *sk, unsigned char flags); | |||
| 29 | 29 | ||
| 30 | extern void dn_nsp_output(struct sock *sk); | 30 | extern void dn_nsp_output(struct sock *sk); |
| 31 | extern int dn_nsp_check_xmit_queue(struct sock *sk, struct sk_buff *skb, struct sk_buff_head *q, unsigned short acknum); | 31 | extern int dn_nsp_check_xmit_queue(struct sock *sk, struct sk_buff *skb, struct sk_buff_head *q, unsigned short acknum); |
| 32 | extern void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, unsigned int __nocast gfp, int oob); | 32 | extern void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, gfp_t gfp, int oob); |
| 33 | extern unsigned long dn_nsp_persist(struct sock *sk); | 33 | extern unsigned long dn_nsp_persist(struct sock *sk); |
| 34 | extern int dn_nsp_xmit_timeout(struct sock *sk); | 34 | extern int dn_nsp_xmit_timeout(struct sock *sk); |
| 35 | 35 | ||
| 36 | extern int dn_nsp_rx(struct sk_buff *); | 36 | extern int dn_nsp_rx(struct sk_buff *); |
| 37 | extern int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb); | 37 | extern int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb); |
| 38 | 38 | ||
| 39 | extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, unsigned int __nocast pri); | 39 | extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri); |
| 40 | extern struct sk_buff *dn_alloc_send_skb(struct sock *sk, size_t *size, int noblock, long timeo, int *err); | 40 | extern struct sk_buff *dn_alloc_send_skb(struct sock *sk, size_t *size, int noblock, long timeo, int *err); |
| 41 | 41 | ||
| 42 | #define NSP_REASON_OK 0 /* No error */ | 42 | #define NSP_REASON_OK 0 /* No error */ |
diff --git a/include/net/dn_route.h b/include/net/dn_route.h index 11fe973cf383..5122da3f2eb3 100644 --- a/include/net/dn_route.h +++ b/include/net/dn_route.h | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. |
| 16 | *******************************************************************************/ | 16 | *******************************************************************************/ |
| 17 | 17 | ||
| 18 | extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, unsigned int __nocast pri); | 18 | extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri); |
| 19 | extern int dn_route_output_sock(struct dst_entry **pprt, struct flowi *, struct sock *sk, int flags); | 19 | extern int dn_route_output_sock(struct dst_entry **pprt, struct flowi *, struct sock *sk, int flags); |
| 20 | extern int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb); | 20 | extern int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb); |
| 21 | extern int dn_cache_getroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg); | 21 | extern int dn_cache_getroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg); |
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h index 651f824c1008..b0c99060b78d 100644 --- a/include/net/inet_connection_sock.h +++ b/include/net/inet_connection_sock.h | |||
| @@ -94,7 +94,7 @@ static inline void *inet_csk_ca(const struct sock *sk) | |||
| 94 | 94 | ||
| 95 | extern struct sock *inet_csk_clone(struct sock *sk, | 95 | extern struct sock *inet_csk_clone(struct sock *sk, |
| 96 | const struct request_sock *req, | 96 | const struct request_sock *req, |
| 97 | const unsigned int __nocast priority); | 97 | const gfp_t priority); |
| 98 | 98 | ||
| 99 | enum inet_csk_ack_state_t { | 99 | enum inet_csk_ack_state_t { |
| 100 | ICSK_ACK_SCHED = 1, | 100 | ICSK_ACK_SCHED = 1, |
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index ecb2b061f597..3b5559a023a4 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
| @@ -832,7 +832,7 @@ extern void ip_vs_app_inc_put(struct ip_vs_app *inc); | |||
| 832 | 832 | ||
| 833 | extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff **pskb); | 833 | extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff **pskb); |
| 834 | extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff **pskb); | 834 | extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff **pskb); |
| 835 | extern int ip_vs_skb_replace(struct sk_buff *skb, unsigned int __nocast pri, | 835 | extern int ip_vs_skb_replace(struct sk_buff *skb, gfp_t pri, |
| 836 | char *o_buf, int o_len, char *n_buf, int n_len); | 836 | char *o_buf, int o_len, char *n_buf, int n_len); |
| 837 | extern int ip_vs_app_init(void); | 837 | extern int ip_vs_app_init(void); |
| 838 | extern void ip_vs_app_cleanup(void); | 838 | extern void ip_vs_app_cleanup(void); |
diff --git a/include/net/llc_conn.h b/include/net/llc_conn.h index 54852ff6033b..00730d21b522 100644 --- a/include/net/llc_conn.h +++ b/include/net/llc_conn.h | |||
| @@ -93,7 +93,7 @@ static __inline__ char llc_backlog_type(struct sk_buff *skb) | |||
| 93 | return skb->cb[sizeof(skb->cb) - 1]; | 93 | return skb->cb[sizeof(skb->cb) - 1]; |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | extern struct sock *llc_sk_alloc(int family, unsigned int __nocast priority, | 96 | extern struct sock *llc_sk_alloc(int family, gfp_t priority, |
| 97 | struct proto *prot); | 97 | struct proto *prot); |
| 98 | extern void llc_sk_free(struct sock *sk); | 98 | extern void llc_sk_free(struct sock *sk); |
| 99 | 99 | ||
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index e1d5ec1c23c0..8f241216f46b 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
| @@ -125,7 +125,7 @@ | |||
| 125 | */ | 125 | */ |
| 126 | extern struct sock *sctp_get_ctl_sock(void); | 126 | extern struct sock *sctp_get_ctl_sock(void); |
| 127 | extern int sctp_copy_local_addr_list(struct sctp_bind_addr *, | 127 | extern int sctp_copy_local_addr_list(struct sctp_bind_addr *, |
| 128 | sctp_scope_t, unsigned int __nocast gfp, | 128 | sctp_scope_t, gfp_t gfp, |
| 129 | int flags); | 129 | int flags); |
| 130 | extern struct sctp_pf *sctp_get_pf_specific(sa_family_t family); | 130 | extern struct sctp_pf *sctp_get_pf_specific(sa_family_t family); |
| 131 | extern int sctp_register_pf(struct sctp_pf *, sa_family_t); | 131 | extern int sctp_register_pf(struct sctp_pf *, sa_family_t); |
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index 58462164d960..1eac3d0eb7a9 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h | |||
| @@ -181,17 +181,17 @@ const sctp_sm_table_entry_t *sctp_sm_lookup_event(sctp_event_t, | |||
| 181 | int sctp_chunk_iif(const struct sctp_chunk *); | 181 | int sctp_chunk_iif(const struct sctp_chunk *); |
| 182 | struct sctp_association *sctp_make_temp_asoc(const struct sctp_endpoint *, | 182 | struct sctp_association *sctp_make_temp_asoc(const struct sctp_endpoint *, |
| 183 | struct sctp_chunk *, | 183 | struct sctp_chunk *, |
| 184 | unsigned int __nocast gfp); | 184 | gfp_t gfp); |
| 185 | __u32 sctp_generate_verification_tag(void); | 185 | __u32 sctp_generate_verification_tag(void); |
| 186 | void sctp_populate_tie_tags(__u8 *cookie, __u32 curTag, __u32 hisTag); | 186 | void sctp_populate_tie_tags(__u8 *cookie, __u32 curTag, __u32 hisTag); |
| 187 | 187 | ||
| 188 | /* Prototypes for chunk-building functions. */ | 188 | /* Prototypes for chunk-building functions. */ |
| 189 | struct sctp_chunk *sctp_make_init(const struct sctp_association *, | 189 | struct sctp_chunk *sctp_make_init(const struct sctp_association *, |
| 190 | const struct sctp_bind_addr *, | 190 | const struct sctp_bind_addr *, |
| 191 | unsigned int __nocast gfp, int vparam_len); | 191 | gfp_t gfp, int vparam_len); |
| 192 | struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *, | 192 | struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *, |
| 193 | const struct sctp_chunk *, | 193 | const struct sctp_chunk *, |
| 194 | const unsigned int __nocast gfp, | 194 | const gfp_t gfp, |
| 195 | const int unkparam_len); | 195 | const int unkparam_len); |
| 196 | struct sctp_chunk *sctp_make_cookie_echo(const struct sctp_association *, | 196 | struct sctp_chunk *sctp_make_cookie_echo(const struct sctp_association *, |
| 197 | const struct sctp_chunk *); | 197 | const struct sctp_chunk *); |
| @@ -265,7 +265,7 @@ int sctp_do_sm(sctp_event_t event_type, sctp_subtype_t subtype, | |||
| 265 | struct sctp_endpoint *, | 265 | struct sctp_endpoint *, |
| 266 | struct sctp_association *asoc, | 266 | struct sctp_association *asoc, |
| 267 | void *event_arg, | 267 | void *event_arg, |
| 268 | unsigned int __nocast gfp); | 268 | gfp_t gfp); |
| 269 | 269 | ||
| 270 | /* 2nd level prototypes */ | 270 | /* 2nd level prototypes */ |
| 271 | void sctp_generate_t3_rtx_event(unsigned long peer); | 271 | void sctp_generate_t3_rtx_event(unsigned long peer); |
| @@ -276,7 +276,7 @@ void sctp_ootb_pkt_free(struct sctp_packet *); | |||
| 276 | struct sctp_association *sctp_unpack_cookie(const struct sctp_endpoint *, | 276 | struct sctp_association *sctp_unpack_cookie(const struct sctp_endpoint *, |
| 277 | const struct sctp_association *, | 277 | const struct sctp_association *, |
| 278 | struct sctp_chunk *, | 278 | struct sctp_chunk *, |
| 279 | unsigned int __nocast gfp, int *err, | 279 | gfp_t gfp, int *err, |
| 280 | struct sctp_chunk **err_chk_p); | 280 | struct sctp_chunk **err_chk_p); |
| 281 | int sctp_addip_addr_config(struct sctp_association *, sctp_param_t, | 281 | int sctp_addip_addr_config(struct sctp_association *, sctp_param_t, |
| 282 | struct sockaddr_storage*, int); | 282 | struct sockaddr_storage*, int); |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 994009bbe3b4..9c385b6417c7 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
| @@ -446,7 +446,7 @@ struct sctp_ssnmap { | |||
| 446 | }; | 446 | }; |
| 447 | 447 | ||
| 448 | struct sctp_ssnmap *sctp_ssnmap_new(__u16 in, __u16 out, | 448 | struct sctp_ssnmap *sctp_ssnmap_new(__u16 in, __u16 out, |
| 449 | unsigned int __nocast gfp); | 449 | gfp_t gfp); |
| 450 | void sctp_ssnmap_free(struct sctp_ssnmap *map); | 450 | void sctp_ssnmap_free(struct sctp_ssnmap *map); |
| 451 | void sctp_ssnmap_clear(struct sctp_ssnmap *map); | 451 | void sctp_ssnmap_clear(struct sctp_ssnmap *map); |
| 452 | 452 | ||
| @@ -947,7 +947,7 @@ struct sctp_transport { | |||
| 947 | }; | 947 | }; |
| 948 | 948 | ||
| 949 | struct sctp_transport *sctp_transport_new(const union sctp_addr *, | 949 | struct sctp_transport *sctp_transport_new(const union sctp_addr *, |
| 950 | unsigned int __nocast); | 950 | gfp_t); |
| 951 | void sctp_transport_set_owner(struct sctp_transport *, | 951 | void sctp_transport_set_owner(struct sctp_transport *, |
| 952 | struct sctp_association *); | 952 | struct sctp_association *); |
| 953 | void sctp_transport_route(struct sctp_transport *, union sctp_addr *, | 953 | void sctp_transport_route(struct sctp_transport *, union sctp_addr *, |
| @@ -1095,10 +1095,10 @@ void sctp_bind_addr_init(struct sctp_bind_addr *, __u16 port); | |||
| 1095 | void sctp_bind_addr_free(struct sctp_bind_addr *); | 1095 | void sctp_bind_addr_free(struct sctp_bind_addr *); |
| 1096 | int sctp_bind_addr_copy(struct sctp_bind_addr *dest, | 1096 | int sctp_bind_addr_copy(struct sctp_bind_addr *dest, |
| 1097 | const struct sctp_bind_addr *src, | 1097 | const struct sctp_bind_addr *src, |
| 1098 | sctp_scope_t scope, unsigned int __nocast gfp, | 1098 | sctp_scope_t scope, gfp_t gfp, |
| 1099 | int flags); | 1099 | int flags); |
| 1100 | int sctp_add_bind_addr(struct sctp_bind_addr *, union sctp_addr *, | 1100 | int sctp_add_bind_addr(struct sctp_bind_addr *, union sctp_addr *, |
| 1101 | unsigned int __nocast gfp); | 1101 | gfp_t gfp); |
| 1102 | int sctp_del_bind_addr(struct sctp_bind_addr *, union sctp_addr *); | 1102 | int sctp_del_bind_addr(struct sctp_bind_addr *, union sctp_addr *); |
| 1103 | int sctp_bind_addr_match(struct sctp_bind_addr *, const union sctp_addr *, | 1103 | int sctp_bind_addr_match(struct sctp_bind_addr *, const union sctp_addr *, |
| 1104 | struct sctp_sock *); | 1104 | struct sctp_sock *); |
| @@ -1108,9 +1108,9 @@ union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp, | |||
| 1108 | struct sctp_sock *opt); | 1108 | struct sctp_sock *opt); |
| 1109 | union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, | 1109 | union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, |
| 1110 | int *addrs_len, | 1110 | int *addrs_len, |
| 1111 | unsigned int __nocast gfp); | 1111 | gfp_t gfp); |
| 1112 | int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw, int len, | 1112 | int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw, int len, |
| 1113 | __u16 port, unsigned int __nocast gfp); | 1113 | __u16 port, gfp_t gfp); |
| 1114 | 1114 | ||
| 1115 | sctp_scope_t sctp_scope(const union sctp_addr *); | 1115 | sctp_scope_t sctp_scope(const union sctp_addr *); |
| 1116 | int sctp_in_scope(const union sctp_addr *addr, const sctp_scope_t scope); | 1116 | int sctp_in_scope(const union sctp_addr *addr, const sctp_scope_t scope); |
| @@ -1239,7 +1239,7 @@ static inline struct sctp_endpoint *sctp_ep(struct sctp_ep_common *base) | |||
| 1239 | } | 1239 | } |
| 1240 | 1240 | ||
| 1241 | /* These are function signatures for manipulating endpoints. */ | 1241 | /* These are function signatures for manipulating endpoints. */ |
| 1242 | struct sctp_endpoint *sctp_endpoint_new(struct sock *, unsigned int __nocast); | 1242 | struct sctp_endpoint *sctp_endpoint_new(struct sock *, gfp_t); |
| 1243 | void sctp_endpoint_free(struct sctp_endpoint *); | 1243 | void sctp_endpoint_free(struct sctp_endpoint *); |
| 1244 | void sctp_endpoint_put(struct sctp_endpoint *); | 1244 | void sctp_endpoint_put(struct sctp_endpoint *); |
| 1245 | void sctp_endpoint_hold(struct sctp_endpoint *); | 1245 | void sctp_endpoint_hold(struct sctp_endpoint *); |
| @@ -1260,7 +1260,7 @@ int sctp_verify_init(const struct sctp_association *asoc, sctp_cid_t, | |||
| 1260 | struct sctp_chunk **err_chunk); | 1260 | struct sctp_chunk **err_chunk); |
| 1261 | int sctp_process_init(struct sctp_association *, sctp_cid_t cid, | 1261 | int sctp_process_init(struct sctp_association *, sctp_cid_t cid, |
| 1262 | const union sctp_addr *peer, | 1262 | const union sctp_addr *peer, |
| 1263 | sctp_init_chunk_t *init, unsigned int __nocast gfp); | 1263 | sctp_init_chunk_t *init, gfp_t gfp); |
| 1264 | __u32 sctp_generate_tag(const struct sctp_endpoint *); | 1264 | __u32 sctp_generate_tag(const struct sctp_endpoint *); |
| 1265 | __u32 sctp_generate_tsn(const struct sctp_endpoint *); | 1265 | __u32 sctp_generate_tsn(const struct sctp_endpoint *); |
| 1266 | 1266 | ||
| @@ -1723,7 +1723,7 @@ static inline struct sctp_association *sctp_assoc(struct sctp_ep_common *base) | |||
| 1723 | 1723 | ||
| 1724 | struct sctp_association * | 1724 | struct sctp_association * |
| 1725 | sctp_association_new(const struct sctp_endpoint *, const struct sock *, | 1725 | sctp_association_new(const struct sctp_endpoint *, const struct sock *, |
| 1726 | sctp_scope_t scope, unsigned int __nocast gfp); | 1726 | sctp_scope_t scope, gfp_t gfp); |
| 1727 | void sctp_association_free(struct sctp_association *); | 1727 | void sctp_association_free(struct sctp_association *); |
| 1728 | void sctp_association_put(struct sctp_association *); | 1728 | void sctp_association_put(struct sctp_association *); |
| 1729 | void sctp_association_hold(struct sctp_association *); | 1729 | void sctp_association_hold(struct sctp_association *); |
| @@ -1739,7 +1739,7 @@ int sctp_assoc_lookup_laddr(struct sctp_association *asoc, | |||
| 1739 | const union sctp_addr *laddr); | 1739 | const union sctp_addr *laddr); |
| 1740 | struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *, | 1740 | struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *, |
| 1741 | const union sctp_addr *address, | 1741 | const union sctp_addr *address, |
| 1742 | const unsigned int __nocast gfp, | 1742 | const gfp_t gfp, |
| 1743 | const int peer_state); | 1743 | const int peer_state); |
| 1744 | void sctp_assoc_del_peer(struct sctp_association *asoc, | 1744 | void sctp_assoc_del_peer(struct sctp_association *asoc, |
| 1745 | const union sctp_addr *addr); | 1745 | const union sctp_addr *addr); |
| @@ -1764,10 +1764,10 @@ void sctp_assoc_rwnd_decrease(struct sctp_association *, unsigned); | |||
| 1764 | void sctp_assoc_set_primary(struct sctp_association *, | 1764 | void sctp_assoc_set_primary(struct sctp_association *, |
| 1765 | struct sctp_transport *); | 1765 | struct sctp_transport *); |
| 1766 | int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *, | 1766 | int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *, |
| 1767 | unsigned int __nocast); | 1767 | gfp_t); |
| 1768 | int sctp_assoc_set_bind_addr_from_cookie(struct sctp_association *, | 1768 | int sctp_assoc_set_bind_addr_from_cookie(struct sctp_association *, |
| 1769 | struct sctp_cookie*, | 1769 | struct sctp_cookie*, |
| 1770 | unsigned int __nocast gfp); | 1770 | gfp_t gfp); |
| 1771 | 1771 | ||
| 1772 | int sctp_cmp_addr_exact(const union sctp_addr *ss1, | 1772 | int sctp_cmp_addr_exact(const union sctp_addr *ss1, |
| 1773 | const union sctp_addr *ss2); | 1773 | const union sctp_addr *ss2); |
diff --git a/include/net/sctp/ulpevent.h b/include/net/sctp/ulpevent.h index 90fe4bf6754f..6c40cfc4832d 100644 --- a/include/net/sctp/ulpevent.h +++ b/include/net/sctp/ulpevent.h | |||
| @@ -88,7 +88,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_assoc_change( | |||
| 88 | __u16 error, | 88 | __u16 error, |
| 89 | __u16 outbound, | 89 | __u16 outbound, |
| 90 | __u16 inbound, | 90 | __u16 inbound, |
| 91 | unsigned int __nocast gfp); | 91 | gfp_t gfp); |
| 92 | 92 | ||
| 93 | struct sctp_ulpevent *sctp_ulpevent_make_peer_addr_change( | 93 | struct sctp_ulpevent *sctp_ulpevent_make_peer_addr_change( |
| 94 | const struct sctp_association *asoc, | 94 | const struct sctp_association *asoc, |
| @@ -96,35 +96,35 @@ struct sctp_ulpevent *sctp_ulpevent_make_peer_addr_change( | |||
| 96 | int flags, | 96 | int flags, |
| 97 | int state, | 97 | int state, |
| 98 | int error, | 98 | int error, |
| 99 | unsigned int __nocast gfp); | 99 | gfp_t gfp); |
| 100 | 100 | ||
| 101 | struct sctp_ulpevent *sctp_ulpevent_make_remote_error( | 101 | struct sctp_ulpevent *sctp_ulpevent_make_remote_error( |
| 102 | const struct sctp_association *asoc, | 102 | const struct sctp_association *asoc, |
| 103 | struct sctp_chunk *chunk, | 103 | struct sctp_chunk *chunk, |
| 104 | __u16 flags, | 104 | __u16 flags, |
| 105 | unsigned int __nocast gfp); | 105 | gfp_t gfp); |
| 106 | struct sctp_ulpevent *sctp_ulpevent_make_send_failed( | 106 | struct sctp_ulpevent *sctp_ulpevent_make_send_failed( |
| 107 | const struct sctp_association *asoc, | 107 | const struct sctp_association *asoc, |
| 108 | struct sctp_chunk *chunk, | 108 | struct sctp_chunk *chunk, |
| 109 | __u16 flags, | 109 | __u16 flags, |
| 110 | __u32 error, | 110 | __u32 error, |
| 111 | unsigned int __nocast gfp); | 111 | gfp_t gfp); |
| 112 | 112 | ||
| 113 | struct sctp_ulpevent *sctp_ulpevent_make_shutdown_event( | 113 | struct sctp_ulpevent *sctp_ulpevent_make_shutdown_event( |
| 114 | const struct sctp_association *asoc, | 114 | const struct sctp_association *asoc, |
| 115 | __u16 flags, | 115 | __u16 flags, |
| 116 | unsigned int __nocast gfp); | 116 | gfp_t gfp); |
| 117 | 117 | ||
| 118 | struct sctp_ulpevent *sctp_ulpevent_make_pdapi( | 118 | struct sctp_ulpevent *sctp_ulpevent_make_pdapi( |
| 119 | const struct sctp_association *asoc, | 119 | const struct sctp_association *asoc, |
| 120 | __u32 indication, unsigned int __nocast gfp); | 120 | __u32 indication, gfp_t gfp); |
| 121 | 121 | ||
| 122 | struct sctp_ulpevent *sctp_ulpevent_make_adaption_indication( | 122 | struct sctp_ulpevent *sctp_ulpevent_make_adaption_indication( |
| 123 | const struct sctp_association *asoc, unsigned int __nocast gfp); | 123 | const struct sctp_association *asoc, gfp_t gfp); |
| 124 | 124 | ||
| 125 | struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc, | 125 | struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc, |
| 126 | struct sctp_chunk *chunk, | 126 | struct sctp_chunk *chunk, |
| 127 | unsigned int __nocast gfp); | 127 | gfp_t gfp); |
| 128 | 128 | ||
| 129 | void sctp_ulpevent_read_sndrcvinfo(const struct sctp_ulpevent *event, | 129 | void sctp_ulpevent_read_sndrcvinfo(const struct sctp_ulpevent *event, |
| 130 | struct msghdr *); | 130 | struct msghdr *); |
diff --git a/include/net/sctp/ulpqueue.h b/include/net/sctp/ulpqueue.h index 1a60c6d943c1..a43c8788b650 100644 --- a/include/net/sctp/ulpqueue.h +++ b/include/net/sctp/ulpqueue.h | |||
| @@ -62,22 +62,19 @@ struct sctp_ulpq *sctp_ulpq_init(struct sctp_ulpq *, | |||
| 62 | void sctp_ulpq_free(struct sctp_ulpq *); | 62 | void sctp_ulpq_free(struct sctp_ulpq *); |
| 63 | 63 | ||
| 64 | /* Add a new DATA chunk for processing. */ | 64 | /* Add a new DATA chunk for processing. */ |
| 65 | int sctp_ulpq_tail_data(struct sctp_ulpq *, struct sctp_chunk *, | 65 | int sctp_ulpq_tail_data(struct sctp_ulpq *, struct sctp_chunk *, gfp_t); |
| 66 | unsigned int __nocast); | ||
| 67 | 66 | ||
| 68 | /* Add a new event for propagation to the ULP. */ | 67 | /* Add a new event for propagation to the ULP. */ |
| 69 | int sctp_ulpq_tail_event(struct sctp_ulpq *, struct sctp_ulpevent *ev); | 68 | int sctp_ulpq_tail_event(struct sctp_ulpq *, struct sctp_ulpevent *ev); |
| 70 | 69 | ||
| 71 | /* Renege previously received chunks. */ | 70 | /* Renege previously received chunks. */ |
| 72 | void sctp_ulpq_renege(struct sctp_ulpq *, struct sctp_chunk *, | 71 | void sctp_ulpq_renege(struct sctp_ulpq *, struct sctp_chunk *, gfp_t); |
| 73 | unsigned int __nocast); | ||
| 74 | 72 | ||
| 75 | /* Perform partial delivery. */ | 73 | /* Perform partial delivery. */ |
| 76 | void sctp_ulpq_partial_delivery(struct sctp_ulpq *, struct sctp_chunk *, | 74 | void sctp_ulpq_partial_delivery(struct sctp_ulpq *, struct sctp_chunk *, gfp_t); |
| 77 | unsigned int __nocast); | ||
| 78 | 75 | ||
| 79 | /* Abort the partial delivery. */ | 76 | /* Abort the partial delivery. */ |
| 80 | void sctp_ulpq_abort_pd(struct sctp_ulpq *, unsigned int __nocast); | 77 | void sctp_ulpq_abort_pd(struct sctp_ulpq *, gfp_t); |
| 81 | 78 | ||
| 82 | /* Clear the partial data delivery condition on this socket. */ | 79 | /* Clear the partial data delivery condition on this socket. */ |
| 83 | int sctp_clear_pd(struct sock *sk); | 80 | int sctp_clear_pd(struct sock *sk); |
diff --git a/include/net/sock.h b/include/net/sock.h index b6440805c420..ecb75526cba0 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
| @@ -739,18 +739,18 @@ extern void FASTCALL(release_sock(struct sock *sk)); | |||
| 739 | #define bh_unlock_sock(__sk) spin_unlock(&((__sk)->sk_lock.slock)) | 739 | #define bh_unlock_sock(__sk) spin_unlock(&((__sk)->sk_lock.slock)) |
| 740 | 740 | ||
| 741 | extern struct sock *sk_alloc(int family, | 741 | extern struct sock *sk_alloc(int family, |
| 742 | unsigned int __nocast priority, | 742 | gfp_t priority, |
| 743 | struct proto *prot, int zero_it); | 743 | struct proto *prot, int zero_it); |
| 744 | extern void sk_free(struct sock *sk); | 744 | extern void sk_free(struct sock *sk); |
| 745 | extern struct sock *sk_clone(const struct sock *sk, | 745 | extern struct sock *sk_clone(const struct sock *sk, |
| 746 | const unsigned int __nocast priority); | 746 | const gfp_t priority); |
| 747 | 747 | ||
| 748 | extern struct sk_buff *sock_wmalloc(struct sock *sk, | 748 | extern struct sk_buff *sock_wmalloc(struct sock *sk, |
| 749 | unsigned long size, int force, | 749 | unsigned long size, int force, |
| 750 | unsigned int __nocast priority); | 750 | gfp_t priority); |
| 751 | extern struct sk_buff *sock_rmalloc(struct sock *sk, | 751 | extern struct sk_buff *sock_rmalloc(struct sock *sk, |
| 752 | unsigned long size, int force, | 752 | unsigned long size, int force, |
| 753 | unsigned int __nocast priority); | 753 | gfp_t priority); |
| 754 | extern void sock_wfree(struct sk_buff *skb); | 754 | extern void sock_wfree(struct sk_buff *skb); |
| 755 | extern void sock_rfree(struct sk_buff *skb); | 755 | extern void sock_rfree(struct sk_buff *skb); |
| 756 | 756 | ||
| @@ -766,7 +766,7 @@ extern struct sk_buff *sock_alloc_send_skb(struct sock *sk, | |||
| 766 | int noblock, | 766 | int noblock, |
| 767 | int *errcode); | 767 | int *errcode); |
| 768 | extern void *sock_kmalloc(struct sock *sk, int size, | 768 | extern void *sock_kmalloc(struct sock *sk, int size, |
| 769 | unsigned int __nocast priority); | 769 | gfp_t priority); |
| 770 | extern void sock_kfree_s(struct sock *sk, void *mem, int size); | 770 | extern void sock_kfree_s(struct sock *sk, void *mem, int size); |
| 771 | extern void sk_send_sigurg(struct sock *sk); | 771 | extern void sk_send_sigurg(struct sock *sk); |
| 772 | 772 | ||
| @@ -1201,7 +1201,7 @@ static inline void sk_stream_moderate_sndbuf(struct sock *sk) | |||
| 1201 | 1201 | ||
| 1202 | static inline struct sk_buff *sk_stream_alloc_pskb(struct sock *sk, | 1202 | static inline struct sk_buff *sk_stream_alloc_pskb(struct sock *sk, |
| 1203 | int size, int mem, | 1203 | int size, int mem, |
| 1204 | unsigned int __nocast gfp) | 1204 | gfp_t gfp) |
| 1205 | { | 1205 | { |
| 1206 | struct sk_buff *skb; | 1206 | struct sk_buff *skb; |
| 1207 | int hdr_len; | 1207 | int hdr_len; |
| @@ -1224,7 +1224,7 @@ static inline struct sk_buff *sk_stream_alloc_pskb(struct sock *sk, | |||
| 1224 | 1224 | ||
| 1225 | static inline struct sk_buff *sk_stream_alloc_skb(struct sock *sk, | 1225 | static inline struct sk_buff *sk_stream_alloc_skb(struct sock *sk, |
| 1226 | int size, | 1226 | int size, |
| 1227 | unsigned int __nocast gfp) | 1227 | gfp_t gfp) |
| 1228 | { | 1228 | { |
| 1229 | return sk_stream_alloc_pskb(sk, size, 0, gfp); | 1229 | return sk_stream_alloc_pskb(sk, size, 0, gfp); |
| 1230 | } | 1230 | } |
| @@ -1255,7 +1255,7 @@ static inline int sock_writeable(const struct sock *sk) | |||
| 1255 | return atomic_read(&sk->sk_wmem_alloc) < (sk->sk_sndbuf / 2); | 1255 | return atomic_read(&sk->sk_wmem_alloc) < (sk->sk_sndbuf / 2); |
| 1256 | } | 1256 | } |
| 1257 | 1257 | ||
| 1258 | static inline unsigned int __nocast gfp_any(void) | 1258 | static inline gfp_t gfp_any(void) |
| 1259 | { | 1259 | { |
| 1260 | return in_softirq() ? GFP_ATOMIC : GFP_KERNEL; | 1260 | return in_softirq() ? GFP_ATOMIC : GFP_KERNEL; |
| 1261 | } | 1261 | } |
diff --git a/include/net/tcp.h b/include/net/tcp.h index 97af77c4d096..c24339c4e310 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
| @@ -460,8 +460,7 @@ extern void tcp_send_probe0(struct sock *); | |||
| 460 | extern void tcp_send_partial(struct sock *); | 460 | extern void tcp_send_partial(struct sock *); |
| 461 | extern int tcp_write_wakeup(struct sock *); | 461 | extern int tcp_write_wakeup(struct sock *); |
| 462 | extern void tcp_send_fin(struct sock *sk); | 462 | extern void tcp_send_fin(struct sock *sk); |
| 463 | extern void tcp_send_active_reset(struct sock *sk, | 463 | extern void tcp_send_active_reset(struct sock *sk, gfp_t priority); |
| 464 | unsigned int __nocast priority); | ||
| 465 | extern int tcp_send_synack(struct sock *); | 464 | extern int tcp_send_synack(struct sock *); |
| 466 | extern void tcp_push_one(struct sock *, unsigned int mss_now); | 465 | extern void tcp_push_one(struct sock *, unsigned int mss_now); |
| 467 | extern void tcp_send_ack(struct sock *sk); | 466 | extern void tcp_send_ack(struct sock *sk); |
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index b6e72f890c6c..5beae1ccd574 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
| @@ -875,7 +875,7 @@ static inline int xfrm_dst_lookup(struct xfrm_dst **dst, struct flowi *fl, unsig | |||
| 875 | } | 875 | } |
| 876 | #endif | 876 | #endif |
| 877 | 877 | ||
| 878 | struct xfrm_policy *xfrm_policy_alloc(unsigned int __nocast gfp); | 878 | struct xfrm_policy *xfrm_policy_alloc(gfp_t gfp); |
| 879 | extern int xfrm_policy_walk(int (*func)(struct xfrm_policy *, int, int, void*), void *); | 879 | extern int xfrm_policy_walk(int (*func)(struct xfrm_policy *, int, int, void*), void *); |
| 880 | int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl); | 880 | int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl); |
| 881 | struct xfrm_policy *xfrm_policy_bysel(int dir, struct xfrm_selector *sel, | 881 | struct xfrm_policy *xfrm_policy_bysel(int dir, struct xfrm_selector *sel, |
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index 0e293fe733b0..4172e6841e3d 100644 --- a/include/rdma/ib_mad.h +++ b/include/rdma/ib_mad.h | |||
| @@ -596,7 +596,7 @@ struct ib_mad_send_buf * ib_create_send_mad(struct ib_mad_agent *mad_agent, | |||
| 596 | u32 remote_qpn, u16 pkey_index, | 596 | u32 remote_qpn, u16 pkey_index, |
| 597 | struct ib_ah *ah, int rmpp_active, | 597 | struct ib_ah *ah, int rmpp_active, |
| 598 | int hdr_len, int data_len, | 598 | int hdr_len, int data_len, |
| 599 | unsigned int __nocast gfp_mask); | 599 | gfp_t gfp_mask); |
| 600 | 600 | ||
| 601 | /** | 601 | /** |
| 602 | * ib_free_send_mad - Returns data buffers used to send a MAD. | 602 | * ib_free_send_mad - Returns data buffers used to send a MAD. |
diff --git a/include/rdma/ib_sa.h b/include/rdma/ib_sa.h index a7555c800ecf..f404fe21cc21 100644 --- a/include/rdma/ib_sa.h +++ b/include/rdma/ib_sa.h | |||
| @@ -285,7 +285,7 @@ void ib_sa_cancel_query(int id, struct ib_sa_query *query); | |||
| 285 | int ib_sa_path_rec_get(struct ib_device *device, u8 port_num, | 285 | int ib_sa_path_rec_get(struct ib_device *device, u8 port_num, |
| 286 | struct ib_sa_path_rec *rec, | 286 | struct ib_sa_path_rec *rec, |
| 287 | ib_sa_comp_mask comp_mask, | 287 | ib_sa_comp_mask comp_mask, |
| 288 | int timeout_ms, unsigned int __nocast gfp_mask, | 288 | int timeout_ms, gfp_t gfp_mask, |
| 289 | void (*callback)(int status, | 289 | void (*callback)(int status, |
| 290 | struct ib_sa_path_rec *resp, | 290 | struct ib_sa_path_rec *resp, |
| 291 | void *context), | 291 | void *context), |
| @@ -296,7 +296,7 @@ int ib_sa_mcmember_rec_query(struct ib_device *device, u8 port_num, | |||
| 296 | u8 method, | 296 | u8 method, |
| 297 | struct ib_sa_mcmember_rec *rec, | 297 | struct ib_sa_mcmember_rec *rec, |
| 298 | ib_sa_comp_mask comp_mask, | 298 | ib_sa_comp_mask comp_mask, |
| 299 | int timeout_ms, unsigned int __nocast gfp_mask, | 299 | int timeout_ms, gfp_t gfp_mask, |
| 300 | void (*callback)(int status, | 300 | void (*callback)(int status, |
| 301 | struct ib_sa_mcmember_rec *resp, | 301 | struct ib_sa_mcmember_rec *resp, |
| 302 | void *context), | 302 | void *context), |
| @@ -307,7 +307,7 @@ int ib_sa_service_rec_query(struct ib_device *device, u8 port_num, | |||
| 307 | u8 method, | 307 | u8 method, |
| 308 | struct ib_sa_service_rec *rec, | 308 | struct ib_sa_service_rec *rec, |
| 309 | ib_sa_comp_mask comp_mask, | 309 | ib_sa_comp_mask comp_mask, |
| 310 | int timeout_ms, unsigned int __nocast gfp_mask, | 310 | int timeout_ms, gfp_t gfp_mask, |
| 311 | void (*callback)(int status, | 311 | void (*callback)(int status, |
| 312 | struct ib_sa_service_rec *resp, | 312 | struct ib_sa_service_rec *resp, |
| 313 | void *context), | 313 | void *context), |
| @@ -342,7 +342,7 @@ static inline int | |||
| 342 | ib_sa_mcmember_rec_set(struct ib_device *device, u8 port_num, | 342 | ib_sa_mcmember_rec_set(struct ib_device *device, u8 port_num, |
| 343 | struct ib_sa_mcmember_rec *rec, | 343 | struct ib_sa_mcmember_rec *rec, |
| 344 | ib_sa_comp_mask comp_mask, | 344 | ib_sa_comp_mask comp_mask, |
| 345 | int timeout_ms, unsigned int __nocast gfp_mask, | 345 | int timeout_ms, gfp_t gfp_mask, |
| 346 | void (*callback)(int status, | 346 | void (*callback)(int status, |
| 347 | struct ib_sa_mcmember_rec *resp, | 347 | struct ib_sa_mcmember_rec *resp, |
| 348 | void *context), | 348 | void *context), |
| @@ -384,7 +384,7 @@ static inline int | |||
| 384 | ib_sa_mcmember_rec_delete(struct ib_device *device, u8 port_num, | 384 | ib_sa_mcmember_rec_delete(struct ib_device *device, u8 port_num, |
| 385 | struct ib_sa_mcmember_rec *rec, | 385 | struct ib_sa_mcmember_rec *rec, |
| 386 | ib_sa_comp_mask comp_mask, | 386 | ib_sa_comp_mask comp_mask, |
| 387 | int timeout_ms, unsigned int __nocast gfp_mask, | 387 | int timeout_ms, gfp_t gfp_mask, |
| 388 | void (*callback)(int status, | 388 | void (*callback)(int status, |
| 389 | struct ib_sa_mcmember_rec *resp, | 389 | struct ib_sa_mcmember_rec *resp, |
| 390 | void *context), | 390 | void *context), |
diff --git a/include/rxrpc/call.h b/include/rxrpc/call.h index 8118731e7d96..b86f83743510 100644 --- a/include/rxrpc/call.h +++ b/include/rxrpc/call.h | |||
| @@ -203,7 +203,7 @@ extern int rxrpc_call_write_data(struct rxrpc_call *call, | |||
| 203 | size_t sioc, | 203 | size_t sioc, |
| 204 | struct kvec *siov, | 204 | struct kvec *siov, |
| 205 | uint8_t rxhdr_flags, | 205 | uint8_t rxhdr_flags, |
| 206 | unsigned int __nocast alloc_flags, | 206 | gfp_t alloc_flags, |
| 207 | int dup_data, | 207 | int dup_data, |
| 208 | size_t *size_sent); | 208 | size_t *size_sent); |
| 209 | 209 | ||
diff --git a/include/rxrpc/message.h b/include/rxrpc/message.h index 983d9f9eee1a..b318f273d4f2 100644 --- a/include/rxrpc/message.h +++ b/include/rxrpc/message.h | |||
| @@ -63,7 +63,7 @@ extern int rxrpc_conn_newmsg(struct rxrpc_connection *conn, | |||
| 63 | uint8_t type, | 63 | uint8_t type, |
| 64 | int count, | 64 | int count, |
| 65 | struct kvec *diov, | 65 | struct kvec *diov, |
| 66 | unsigned int __nocast alloc_flags, | 66 | gfp_t alloc_flags, |
| 67 | struct rxrpc_message **_msg); | 67 | struct rxrpc_message **_msg); |
| 68 | 68 | ||
| 69 | extern int rxrpc_conn_sendmsg(struct rxrpc_connection *conn, struct rxrpc_message *msg); | 69 | extern int rxrpc_conn_sendmsg(struct rxrpc_connection *conn, struct rxrpc_message *msg); |
diff --git a/include/sound/core.h b/include/sound/core.h index 26160adcdffc..6d971a4c4ca0 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
| @@ -290,13 +290,13 @@ void snd_memory_init(void); | |||
| 290 | void snd_memory_done(void); | 290 | void snd_memory_done(void); |
| 291 | int snd_memory_info_init(void); | 291 | int snd_memory_info_init(void); |
| 292 | int snd_memory_info_done(void); | 292 | int snd_memory_info_done(void); |
| 293 | void *snd_hidden_kmalloc(size_t size, unsigned int __nocast flags); | 293 | void *snd_hidden_kmalloc(size_t size, gfp_t flags); |
| 294 | void *snd_hidden_kzalloc(size_t size, unsigned int __nocast flags); | 294 | void *snd_hidden_kzalloc(size_t size, gfp_t flags); |
| 295 | void *snd_hidden_kcalloc(size_t n, size_t size, unsigned int __nocast flags); | 295 | void *snd_hidden_kcalloc(size_t n, size_t size, gfp_t flags); |
| 296 | void snd_hidden_kfree(const void *obj); | 296 | void snd_hidden_kfree(const void *obj); |
| 297 | void *snd_hidden_vmalloc(unsigned long size); | 297 | void *snd_hidden_vmalloc(unsigned long size); |
| 298 | void snd_hidden_vfree(void *obj); | 298 | void snd_hidden_vfree(void *obj); |
| 299 | char *snd_hidden_kstrdup(const char *s, unsigned int __nocast flags); | 299 | char *snd_hidden_kstrdup(const char *s, gfp_t flags); |
| 300 | #define kmalloc(size, flags) snd_hidden_kmalloc(size, flags) | 300 | #define kmalloc(size, flags) snd_hidden_kmalloc(size, flags) |
| 301 | #define kzalloc(size, flags) snd_hidden_kzalloc(size, flags) | 301 | #define kzalloc(size, flags) snd_hidden_kzalloc(size, flags) |
| 302 | #define kcalloc(n, size, flags) snd_hidden_kcalloc(n, size, flags) | 302 | #define kcalloc(n, size, flags) snd_hidden_kcalloc(n, size, flags) |
diff --git a/include/sound/driver.h b/include/sound/driver.h index 0d12456ec3ae..1ec2fae050a6 100644 --- a/include/sound/driver.h +++ b/include/sound/driver.h | |||
| @@ -51,7 +51,7 @@ | |||
| 51 | #ifdef CONFIG_SND_DEBUG_MEMORY | 51 | #ifdef CONFIG_SND_DEBUG_MEMORY |
| 52 | #include <linux/slab.h> | 52 | #include <linux/slab.h> |
| 53 | #include <linux/vmalloc.h> | 53 | #include <linux/vmalloc.h> |
| 54 | void *snd_wrapper_kmalloc(size_t, unsigned int __nocast); | 54 | void *snd_wrapper_kmalloc(size_t, gfp_t); |
| 55 | #undef kmalloc | 55 | #undef kmalloc |
| 56 | void snd_wrapper_kfree(const void *); | 56 | void snd_wrapper_kfree(const void *); |
| 57 | #undef kfree | 57 | #undef kfree |
diff --git a/kernel/audit.c b/kernel/audit.c index 83096b67510a..aefa73a8a586 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
| @@ -560,7 +560,7 @@ static void audit_buffer_free(struct audit_buffer *ab) | |||
| 560 | } | 560 | } |
| 561 | 561 | ||
| 562 | static struct audit_buffer * audit_buffer_alloc(struct audit_context *ctx, | 562 | static struct audit_buffer * audit_buffer_alloc(struct audit_context *ctx, |
| 563 | unsigned int __nocast gfp_mask, int type) | 563 | gfp_t gfp_mask, int type) |
| 564 | { | 564 | { |
| 565 | unsigned long flags; | 565 | unsigned long flags; |
| 566 | struct audit_buffer *ab = NULL; | 566 | struct audit_buffer *ab = NULL; |
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 45a5719a0104..28176d083f7b 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
| @@ -1670,7 +1670,7 @@ static const struct cpuset *nearest_exclusive_ancestor(const struct cpuset *cs) | |||
| 1670 | * GFP_USER - only nodes in current tasks mems allowed ok. | 1670 | * GFP_USER - only nodes in current tasks mems allowed ok. |
| 1671 | **/ | 1671 | **/ |
| 1672 | 1672 | ||
| 1673 | int cpuset_zone_allowed(struct zone *z, unsigned int __nocast gfp_mask) | 1673 | int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask) |
| 1674 | { | 1674 | { |
| 1675 | int node; /* node that zone z is on */ | 1675 | int node; /* node that zone z is on */ |
| 1676 | const struct cpuset *cs; /* current cpuset ancestors */ | 1676 | const struct cpuset *cs; /* current cpuset ancestors */ |
diff --git a/kernel/kfifo.c b/kernel/kfifo.c index 179baafcdd96..64ab045c3d9d 100644 --- a/kernel/kfifo.c +++ b/kernel/kfifo.c | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | * struct kfifo with kfree(). | 36 | * struct kfifo with kfree(). |
| 37 | */ | 37 | */ |
| 38 | struct kfifo *kfifo_init(unsigned char *buffer, unsigned int size, | 38 | struct kfifo *kfifo_init(unsigned char *buffer, unsigned int size, |
| 39 | unsigned int __nocast gfp_mask, spinlock_t *lock) | 39 | gfp_t gfp_mask, spinlock_t *lock) |
| 40 | { | 40 | { |
| 41 | struct kfifo *fifo; | 41 | struct kfifo *fifo; |
| 42 | 42 | ||
| @@ -64,7 +64,7 @@ EXPORT_SYMBOL(kfifo_init); | |||
| 64 | * | 64 | * |
| 65 | * The size will be rounded-up to a power of 2. | 65 | * The size will be rounded-up to a power of 2. |
| 66 | */ | 66 | */ |
| 67 | struct kfifo *kfifo_alloc(unsigned int size, unsigned int __nocast gfp_mask, spinlock_t *lock) | 67 | struct kfifo *kfifo_alloc(unsigned int size, gfp_t gfp_mask, spinlock_t *lock) |
| 68 | { | 68 | { |
| 69 | unsigned char *buffer; | 69 | unsigned char *buffer; |
| 70 | struct kfifo *ret; | 70 | struct kfifo *ret; |
diff --git a/kernel/signal.c b/kernel/signal.c index c135f5aa2c2d..cba193ceda0d 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
| @@ -262,7 +262,7 @@ next_signal(struct sigpending *pending, sigset_t *mask) | |||
| 262 | return sig; | 262 | return sig; |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | static struct sigqueue *__sigqueue_alloc(struct task_struct *t, unsigned int __nocast flags, | 265 | static struct sigqueue *__sigqueue_alloc(struct task_struct *t, gfp_t flags, |
| 266 | int override_rlimit) | 266 | int override_rlimit) |
| 267 | { | 267 | { |
| 268 | struct sigqueue *q = NULL; | 268 | struct sigqueue *q = NULL; |
diff --git a/lib/radix-tree.c b/lib/radix-tree.c index 6a8bc6e06431..d1c057e71b68 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c | |||
| @@ -110,7 +110,7 @@ radix_tree_node_free(struct radix_tree_node *node) | |||
| 110 | * success, return zero, with preemption disabled. On error, return -ENOMEM | 110 | * success, return zero, with preemption disabled. On error, return -ENOMEM |
| 111 | * with preemption not disabled. | 111 | * with preemption not disabled. |
| 112 | */ | 112 | */ |
| 113 | int radix_tree_preload(unsigned int __nocast gfp_mask) | 113 | int radix_tree_preload(gfp_t gfp_mask) |
| 114 | { | 114 | { |
| 115 | struct radix_tree_preload *rtp; | 115 | struct radix_tree_preload *rtp; |
| 116 | struct radix_tree_node *node; | 116 | struct radix_tree_node *node; |
diff --git a/lib/ts_bm.c b/lib/ts_bm.c index 1b61fceef777..8a8b3a16133e 100644 --- a/lib/ts_bm.c +++ b/lib/ts_bm.c | |||
| @@ -127,7 +127,7 @@ static void compute_prefix_tbl(struct ts_bm *bm, const u8 *pattern, | |||
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | static struct ts_config *bm_init(const void *pattern, unsigned int len, | 129 | static struct ts_config *bm_init(const void *pattern, unsigned int len, |
| 130 | unsigned int __nocast gfp_mask) | 130 | gfp_t gfp_mask) |
| 131 | { | 131 | { |
| 132 | struct ts_config *conf; | 132 | struct ts_config *conf; |
| 133 | struct ts_bm *bm; | 133 | struct ts_bm *bm; |
diff --git a/lib/ts_fsm.c b/lib/ts_fsm.c index ef9779e00506..ca3211206eef 100644 --- a/lib/ts_fsm.c +++ b/lib/ts_fsm.c | |||
| @@ -258,7 +258,7 @@ found_match: | |||
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | static struct ts_config *fsm_init(const void *pattern, unsigned int len, | 260 | static struct ts_config *fsm_init(const void *pattern, unsigned int len, |
| 261 | unsigned int __nocast gfp_mask) | 261 | gfp_t gfp_mask) |
| 262 | { | 262 | { |
| 263 | int i, err = -EINVAL; | 263 | int i, err = -EINVAL; |
| 264 | struct ts_config *conf; | 264 | struct ts_config *conf; |
diff --git a/lib/ts_kmp.c b/lib/ts_kmp.c index e45f0f0c2379..7fd45451b44a 100644 --- a/lib/ts_kmp.c +++ b/lib/ts_kmp.c | |||
| @@ -87,7 +87,7 @@ static inline void compute_prefix_tbl(const u8 *pattern, unsigned int len, | |||
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | static struct ts_config *kmp_init(const void *pattern, unsigned int len, | 89 | static struct ts_config *kmp_init(const void *pattern, unsigned int len, |
| 90 | unsigned int __nocast gfp_mask) | 90 | gfp_t gfp_mask) |
| 91 | { | 91 | { |
| 92 | struct ts_config *conf; | 92 | struct ts_config *conf; |
| 93 | struct ts_kmp *kmp; | 93 | struct ts_kmp *kmp; |
diff --git a/mm/highmem.c b/mm/highmem.c index 400911599468..90e1861e2da0 100644 --- a/mm/highmem.c +++ b/mm/highmem.c | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | 30 | ||
| 31 | static mempool_t *page_pool, *isa_page_pool; | 31 | static mempool_t *page_pool, *isa_page_pool; |
| 32 | 32 | ||
| 33 | static void *page_pool_alloc(unsigned int __nocast gfp_mask, void *data) | 33 | static void *page_pool_alloc(gfp_t gfp_mask, void *data) |
| 34 | { | 34 | { |
| 35 | unsigned int gfp = gfp_mask | (unsigned int) (long) data; | 35 | unsigned int gfp = gfp_mask | (unsigned int) (long) data; |
| 36 | 36 | ||
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 9033f0859aa8..37af443eb094 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
| @@ -687,7 +687,7 @@ get_vma_policy(struct task_struct *task, struct vm_area_struct *vma, unsigned lo | |||
| 687 | } | 687 | } |
| 688 | 688 | ||
| 689 | /* Return a zonelist representing a mempolicy */ | 689 | /* Return a zonelist representing a mempolicy */ |
| 690 | static struct zonelist *zonelist_policy(unsigned int __nocast gfp, struct mempolicy *policy) | 690 | static struct zonelist *zonelist_policy(gfp_t gfp, struct mempolicy *policy) |
| 691 | { | 691 | { |
| 692 | int nd; | 692 | int nd; |
| 693 | 693 | ||
| @@ -751,7 +751,7 @@ static unsigned offset_il_node(struct mempolicy *pol, | |||
| 751 | 751 | ||
| 752 | /* Allocate a page in interleaved policy. | 752 | /* Allocate a page in interleaved policy. |
| 753 | Own path because it needs to do special accounting. */ | 753 | Own path because it needs to do special accounting. */ |
| 754 | static struct page *alloc_page_interleave(unsigned int __nocast gfp, unsigned order, unsigned nid) | 754 | static struct page *alloc_page_interleave(gfp_t gfp, unsigned order, unsigned nid) |
| 755 | { | 755 | { |
| 756 | struct zonelist *zl; | 756 | struct zonelist *zl; |
| 757 | struct page *page; | 757 | struct page *page; |
| @@ -789,7 +789,7 @@ static struct page *alloc_page_interleave(unsigned int __nocast gfp, unsigned or | |||
| 789 | * Should be called with the mm_sem of the vma hold. | 789 | * Should be called with the mm_sem of the vma hold. |
| 790 | */ | 790 | */ |
| 791 | struct page * | 791 | struct page * |
| 792 | alloc_page_vma(unsigned int __nocast gfp, struct vm_area_struct *vma, unsigned long addr) | 792 | alloc_page_vma(gfp_t gfp, struct vm_area_struct *vma, unsigned long addr) |
| 793 | { | 793 | { |
| 794 | struct mempolicy *pol = get_vma_policy(current, vma, addr); | 794 | struct mempolicy *pol = get_vma_policy(current, vma, addr); |
| 795 | 795 | ||
| @@ -832,7 +832,7 @@ alloc_page_vma(unsigned int __nocast gfp, struct vm_area_struct *vma, unsigned l | |||
| 832 | * 1) it's ok to take cpuset_sem (can WAIT), and | 832 | * 1) it's ok to take cpuset_sem (can WAIT), and |
| 833 | * 2) allocating for current task (not interrupt). | 833 | * 2) allocating for current task (not interrupt). |
| 834 | */ | 834 | */ |
| 835 | struct page *alloc_pages_current(unsigned int __nocast gfp, unsigned order) | 835 | struct page *alloc_pages_current(gfp_t gfp, unsigned order) |
| 836 | { | 836 | { |
| 837 | struct mempolicy *pol = current->mempolicy; | 837 | struct mempolicy *pol = current->mempolicy; |
| 838 | 838 | ||
diff --git a/mm/mempool.c b/mm/mempool.c index 65f2957b8d51..9e377ea700b2 100644 --- a/mm/mempool.c +++ b/mm/mempool.c | |||
| @@ -112,7 +112,7 @@ EXPORT_SYMBOL(mempool_create_node); | |||
| 112 | * while this function is running. mempool_alloc() & mempool_free() | 112 | * while this function is running. mempool_alloc() & mempool_free() |
| 113 | * might be called (eg. from IRQ contexts) while this function executes. | 113 | * might be called (eg. from IRQ contexts) while this function executes. |
| 114 | */ | 114 | */ |
| 115 | int mempool_resize(mempool_t *pool, int new_min_nr, unsigned int __nocast gfp_mask) | 115 | int mempool_resize(mempool_t *pool, int new_min_nr, gfp_t gfp_mask) |
| 116 | { | 116 | { |
| 117 | void *element; | 117 | void *element; |
| 118 | void **new_elements; | 118 | void **new_elements; |
| @@ -200,7 +200,7 @@ EXPORT_SYMBOL(mempool_destroy); | |||
| 200 | * *never* fails when called from process contexts. (it might | 200 | * *never* fails when called from process contexts. (it might |
| 201 | * fail if called from an IRQ context.) | 201 | * fail if called from an IRQ context.) |
| 202 | */ | 202 | */ |
| 203 | void * mempool_alloc(mempool_t *pool, unsigned int __nocast gfp_mask) | 203 | void * mempool_alloc(mempool_t *pool, gfp_t gfp_mask) |
| 204 | { | 204 | { |
| 205 | void *element; | 205 | void *element; |
| 206 | unsigned long flags; | 206 | unsigned long flags; |
| @@ -276,7 +276,7 @@ EXPORT_SYMBOL(mempool_free); | |||
| 276 | /* | 276 | /* |
| 277 | * A commonly used alloc and free fn. | 277 | * A commonly used alloc and free fn. |
| 278 | */ | 278 | */ |
| 279 | void *mempool_alloc_slab(unsigned int __nocast gfp_mask, void *pool_data) | 279 | void *mempool_alloc_slab(gfp_t gfp_mask, void *pool_data) |
| 280 | { | 280 | { |
| 281 | kmem_cache_t *mem = (kmem_cache_t *) pool_data; | 281 | kmem_cache_t *mem = (kmem_cache_t *) pool_data; |
| 282 | return kmem_cache_alloc(mem, gfp_mask); | 282 | return kmem_cache_alloc(mem, gfp_mask); |
diff --git a/mm/nommu.c b/mm/nommu.c index 064d70442895..0ef241ae3763 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
| @@ -157,8 +157,7 @@ void vfree(void *addr) | |||
| 157 | kfree(addr); | 157 | kfree(addr); |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | void *__vmalloc(unsigned long size, unsigned int __nocast gfp_mask, | 160 | void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot) |
| 161 | pgprot_t prot) | ||
| 162 | { | 161 | { |
| 163 | /* | 162 | /* |
| 164 | * kmalloc doesn't like __GFP_HIGHMEM for some reason | 163 | * kmalloc doesn't like __GFP_HIGHMEM for some reason |
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index ac3bf33e5370..d348b9035955 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
| @@ -263,7 +263,7 @@ static struct mm_struct *oom_kill_process(struct task_struct *p) | |||
| 263 | * OR try to be smart about which process to kill. Note that we | 263 | * OR try to be smart about which process to kill. Note that we |
| 264 | * don't have to be perfect here, we just have to be good. | 264 | * don't have to be perfect here, we just have to be good. |
| 265 | */ | 265 | */ |
| 266 | void out_of_memory(unsigned int __nocast gfp_mask, int order) | 266 | void out_of_memory(gfp_t gfp_mask, int order) |
| 267 | { | 267 | { |
| 268 | struct mm_struct *mm = NULL; | 268 | struct mm_struct *mm = NULL; |
| 269 | task_t * p; | 269 | task_t * p; |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ae2903339e71..cc1fe2672a31 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
| @@ -671,7 +671,7 @@ void fastcall free_cold_page(struct page *page) | |||
| 671 | free_hot_cold_page(page, 1); | 671 | free_hot_cold_page(page, 1); |
| 672 | } | 672 | } |
| 673 | 673 | ||
| 674 | static inline void prep_zero_page(struct page *page, int order, unsigned int __nocast gfp_flags) | 674 | static inline void prep_zero_page(struct page *page, int order, gfp_t gfp_flags) |
| 675 | { | 675 | { |
| 676 | int i; | 676 | int i; |
| 677 | 677 | ||
| @@ -686,7 +686,7 @@ static inline void prep_zero_page(struct page *page, int order, unsigned int __n | |||
| 686 | * or two. | 686 | * or two. |
| 687 | */ | 687 | */ |
| 688 | static struct page * | 688 | static struct page * |
| 689 | buffered_rmqueue(struct zone *zone, int order, unsigned int __nocast gfp_flags) | 689 | buffered_rmqueue(struct zone *zone, int order, gfp_t gfp_flags) |
| 690 | { | 690 | { |
| 691 | unsigned long flags; | 691 | unsigned long flags; |
| 692 | struct page *page = NULL; | 692 | struct page *page = NULL; |
| @@ -761,7 +761,7 @@ int zone_watermark_ok(struct zone *z, int order, unsigned long mark, | |||
| 761 | } | 761 | } |
| 762 | 762 | ||
| 763 | static inline int | 763 | static inline int |
| 764 | should_reclaim_zone(struct zone *z, unsigned int gfp_mask) | 764 | should_reclaim_zone(struct zone *z, gfp_t gfp_mask) |
| 765 | { | 765 | { |
| 766 | if (!z->reclaim_pages) | 766 | if (!z->reclaim_pages) |
| 767 | return 0; | 767 | return 0; |
| @@ -774,7 +774,7 @@ should_reclaim_zone(struct zone *z, unsigned int gfp_mask) | |||
| 774 | * This is the 'heart' of the zoned buddy allocator. | 774 | * This is the 'heart' of the zoned buddy allocator. |
| 775 | */ | 775 | */ |
| 776 | struct page * fastcall | 776 | struct page * fastcall |
| 777 | __alloc_pages(unsigned int __nocast gfp_mask, unsigned int order, | 777 | __alloc_pages(gfp_t gfp_mask, unsigned int order, |
| 778 | struct zonelist *zonelist) | 778 | struct zonelist *zonelist) |
| 779 | { | 779 | { |
| 780 | const int wait = gfp_mask & __GFP_WAIT; | 780 | const int wait = gfp_mask & __GFP_WAIT; |
| @@ -977,7 +977,7 @@ EXPORT_SYMBOL(__alloc_pages); | |||
| 977 | /* | 977 | /* |
| 978 | * Common helper functions. | 978 | * Common helper functions. |
| 979 | */ | 979 | */ |
| 980 | fastcall unsigned long __get_free_pages(unsigned int __nocast gfp_mask, unsigned int order) | 980 | fastcall unsigned long __get_free_pages(gfp_t gfp_mask, unsigned int order) |
| 981 | { | 981 | { |
| 982 | struct page * page; | 982 | struct page * page; |
| 983 | page = alloc_pages(gfp_mask, order); | 983 | page = alloc_pages(gfp_mask, order); |
| @@ -988,7 +988,7 @@ fastcall unsigned long __get_free_pages(unsigned int __nocast gfp_mask, unsigned | |||
| 988 | 988 | ||
| 989 | EXPORT_SYMBOL(__get_free_pages); | 989 | EXPORT_SYMBOL(__get_free_pages); |
| 990 | 990 | ||
| 991 | fastcall unsigned long get_zeroed_page(unsigned int __nocast gfp_mask) | 991 | fastcall unsigned long get_zeroed_page(gfp_t gfp_mask) |
| 992 | { | 992 | { |
| 993 | struct page * page; | 993 | struct page * page; |
| 994 | 994 | ||
diff --git a/mm/page_io.c b/mm/page_io.c index 2e605a19ce57..330e00d6db00 100644 --- a/mm/page_io.c +++ b/mm/page_io.c | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | #include <linux/writeback.h> | 19 | #include <linux/writeback.h> |
| 20 | #include <asm/pgtable.h> | 20 | #include <asm/pgtable.h> |
| 21 | 21 | ||
| 22 | static struct bio *get_swap_bio(unsigned int __nocast gfp_flags, pgoff_t index, | 22 | static struct bio *get_swap_bio(gfp_t gfp_flags, pgoff_t index, |
| 23 | struct page *page, bio_end_io_t end_io) | 23 | struct page *page, bio_end_io_t end_io) |
| 24 | { | 24 | { |
| 25 | struct bio *bio; | 25 | struct bio *bio; |
diff --git a/mm/shmem.c b/mm/shmem.c index 1f7aeb210c7b..ea064d89cda9 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
| @@ -921,8 +921,7 @@ shmem_swapin(struct shmem_inode_info *info,swp_entry_t entry,unsigned long idx) | |||
| 921 | } | 921 | } |
| 922 | 922 | ||
| 923 | static inline struct page * | 923 | static inline struct page * |
| 924 | shmem_alloc_page(unsigned int __nocast gfp,struct shmem_inode_info *info, | 924 | shmem_alloc_page(gfp_t gfp,struct shmem_inode_info *info, unsigned long idx) |
| 925 | unsigned long idx) | ||
| 926 | { | 925 | { |
| 927 | return alloc_page(gfp | __GFP_ZERO); | 926 | return alloc_page(gfp | __GFP_ZERO); |
| 928 | } | 927 | } |
| @@ -650,8 +650,7 @@ static inline struct array_cache *ac_data(kmem_cache_t *cachep) | |||
| 650 | return cachep->array[smp_processor_id()]; | 650 | return cachep->array[smp_processor_id()]; |
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | static inline kmem_cache_t *__find_general_cachep(size_t size, | 653 | static inline kmem_cache_t *__find_general_cachep(size_t size, gfp_t gfpflags) |
| 654 | unsigned int __nocast gfpflags) | ||
| 655 | { | 654 | { |
| 656 | struct cache_sizes *csizep = malloc_sizes; | 655 | struct cache_sizes *csizep = malloc_sizes; |
| 657 | 656 | ||
| @@ -675,8 +674,7 @@ static inline kmem_cache_t *__find_general_cachep(size_t size, | |||
| 675 | return csizep->cs_cachep; | 674 | return csizep->cs_cachep; |
| 676 | } | 675 | } |
| 677 | 676 | ||
| 678 | kmem_cache_t *kmem_find_general_cachep(size_t size, | 677 | kmem_cache_t *kmem_find_general_cachep(size_t size, gfp_t gfpflags) |
| 679 | unsigned int __nocast gfpflags) | ||
| 680 | { | 678 | { |
| 681 | return __find_general_cachep(size, gfpflags); | 679 | return __find_general_cachep(size, gfpflags); |
| 682 | } | 680 | } |
| @@ -1185,7 +1183,7 @@ __initcall(cpucache_init); | |||
| 1185 | * did not request dmaable memory, we might get it, but that | 1183 | * did not request dmaable memory, we might get it, but that |
| 1186 | * would be relatively rare and ignorable. | 1184 | * would be relatively rare and ignorable. |
| 1187 | */ | 1185 | */ |
| 1188 | static void *kmem_getpages(kmem_cache_t *cachep, unsigned int __nocast flags, int nodeid) | 1186 | static void *kmem_getpages(kmem_cache_t *cachep, gfp_t flags, int nodeid) |
| 1189 | { | 1187 | { |
| 1190 | struct page *page; | 1188 | struct page *page; |
| 1191 | void *addr; | 1189 | void *addr; |
| @@ -2048,7 +2046,7 @@ EXPORT_SYMBOL(kmem_cache_destroy); | |||
| 2048 | 2046 | ||
| 2049 | /* Get the memory for a slab management obj. */ | 2047 | /* Get the memory for a slab management obj. */ |
| 2050 | static struct slab* alloc_slabmgmt(kmem_cache_t *cachep, void *objp, | 2048 | static struct slab* alloc_slabmgmt(kmem_cache_t *cachep, void *objp, |
| 2051 | int colour_off, unsigned int __nocast local_flags) | 2049 | int colour_off, gfp_t local_flags) |
| 2052 | { | 2050 | { |
| 2053 | struct slab *slabp; | 2051 | struct slab *slabp; |
| 2054 | 2052 | ||
| @@ -2149,7 +2147,7 @@ static void set_slab_attr(kmem_cache_t *cachep, struct slab *slabp, void *objp) | |||
| 2149 | * Grow (by 1) the number of slabs within a cache. This is called by | 2147 | * Grow (by 1) the number of slabs within a cache. This is called by |
| 2150 | * kmem_cache_alloc() when there are no active objs left in a cache. | 2148 | * kmem_cache_alloc() when there are no active objs left in a cache. |
| 2151 | */ | 2149 | */ |
| 2152 | static int cache_grow(kmem_cache_t *cachep, unsigned int __nocast flags, int nodeid) | 2150 | static int cache_grow(kmem_cache_t *cachep, gfp_t flags, int nodeid) |
| 2153 | { | 2151 | { |
| 2154 | struct slab *slabp; | 2152 | struct slab *slabp; |
| 2155 | void *objp; | 2153 | void *objp; |
| @@ -2356,7 +2354,7 @@ bad: | |||
| 2356 | #define check_slabp(x,y) do { } while(0) | 2354 | #define check_slabp(x,y) do { } while(0) |
| 2357 | #endif | 2355 | #endif |
| 2358 | 2356 | ||
| 2359 | static void *cache_alloc_refill(kmem_cache_t *cachep, unsigned int __nocast flags) | 2357 | static void *cache_alloc_refill(kmem_cache_t *cachep, gfp_t flags) |
| 2360 | { | 2358 | { |
| 2361 | int batchcount; | 2359 | int batchcount; |
| 2362 | struct kmem_list3 *l3; | 2360 | struct kmem_list3 *l3; |
| @@ -2456,7 +2454,7 @@ alloc_done: | |||
| 2456 | } | 2454 | } |
| 2457 | 2455 | ||
| 2458 | static inline void | 2456 | static inline void |
| 2459 | cache_alloc_debugcheck_before(kmem_cache_t *cachep, unsigned int __nocast flags) | 2457 | cache_alloc_debugcheck_before(kmem_cache_t *cachep, gfp_t flags) |
| 2460 | { | 2458 | { |
| 2461 | might_sleep_if(flags & __GFP_WAIT); | 2459 | might_sleep_if(flags & __GFP_WAIT); |
| 2462 | #if DEBUG | 2460 | #if DEBUG |
| @@ -2467,7 +2465,7 @@ cache_alloc_debugcheck_before(kmem_cache_t *cachep, unsigned int __nocast flags) | |||
| 2467 | #if DEBUG | 2465 | #if DEBUG |
| 2468 | static void * | 2466 | static void * |
| 2469 | cache_alloc_debugcheck_after(kmem_cache_t *cachep, | 2467 | cache_alloc_debugcheck_after(kmem_cache_t *cachep, |
| 2470 | unsigned int __nocast flags, void *objp, void *caller) | 2468 | gfp_t flags, void *objp, void *caller) |
| 2471 | { | 2469 | { |
| 2472 | if (!objp) | 2470 | if (!objp) |
| 2473 | return objp; | 2471 | return objp; |
| @@ -2510,7 +2508,7 @@ cache_alloc_debugcheck_after(kmem_cache_t *cachep, | |||
| 2510 | #define cache_alloc_debugcheck_after(a,b,objp,d) (objp) | 2508 | #define cache_alloc_debugcheck_after(a,b,objp,d) (objp) |
| 2511 | #endif | 2509 | #endif |
| 2512 | 2510 | ||
| 2513 | static inline void *____cache_alloc(kmem_cache_t *cachep, unsigned int __nocast flags) | 2511 | static inline void *____cache_alloc(kmem_cache_t *cachep, gfp_t flags) |
| 2514 | { | 2512 | { |
| 2515 | void* objp; | 2513 | void* objp; |
| 2516 | struct array_cache *ac; | 2514 | struct array_cache *ac; |
| @@ -2528,7 +2526,7 @@ static inline void *____cache_alloc(kmem_cache_t *cachep, unsigned int __nocast | |||
| 2528 | return objp; | 2526 | return objp; |
| 2529 | } | 2527 | } |
| 2530 | 2528 | ||
| 2531 | static inline void *__cache_alloc(kmem_cache_t *cachep, unsigned int __nocast flags) | 2529 | static inline void *__cache_alloc(kmem_cache_t *cachep, gfp_t flags) |
| 2532 | { | 2530 | { |
| 2533 | unsigned long save_flags; | 2531 | unsigned long save_flags; |
| 2534 | void* objp; | 2532 | void* objp; |
| @@ -2787,7 +2785,7 @@ static inline void __cache_free(kmem_cache_t *cachep, void *objp) | |||
| 2787 | * Allocate an object from this cache. The flags are only relevant | 2785 | * Allocate an object from this cache. The flags are only relevant |
| 2788 | * if the cache has no available objects. | 2786 | * if the cache has no available objects. |
| 2789 | */ | 2787 | */ |
| 2790 | void *kmem_cache_alloc(kmem_cache_t *cachep, unsigned int __nocast flags) | 2788 | void *kmem_cache_alloc(kmem_cache_t *cachep, gfp_t flags) |
| 2791 | { | 2789 | { |
| 2792 | return __cache_alloc(cachep, flags); | 2790 | return __cache_alloc(cachep, flags); |
| 2793 | } | 2791 | } |
| @@ -2848,7 +2846,7 @@ out: | |||
| 2848 | * New and improved: it will now make sure that the object gets | 2846 | * New and improved: it will now make sure that the object gets |
| 2849 | * put on the correct node list so that there is no false sharing. | 2847 | * put on the correct node list so that there is no false sharing. |
| 2850 | */ | 2848 | */ |
| 2851 | void *kmem_cache_alloc_node(kmem_cache_t *cachep, unsigned int __nocast flags, int nodeid) | 2849 | void *kmem_cache_alloc_node(kmem_cache_t *cachep, gfp_t flags, int nodeid) |
| 2852 | { | 2850 | { |
| 2853 | unsigned long save_flags; | 2851 | unsigned long save_flags; |
| 2854 | void *ptr; | 2852 | void *ptr; |
| @@ -2875,7 +2873,7 @@ void *kmem_cache_alloc_node(kmem_cache_t *cachep, unsigned int __nocast flags, i | |||
| 2875 | } | 2873 | } |
| 2876 | EXPORT_SYMBOL(kmem_cache_alloc_node); | 2874 | EXPORT_SYMBOL(kmem_cache_alloc_node); |
| 2877 | 2875 | ||
| 2878 | void *kmalloc_node(size_t size, unsigned int __nocast flags, int node) | 2876 | void *kmalloc_node(size_t size, gfp_t flags, int node) |
| 2879 | { | 2877 | { |
| 2880 | kmem_cache_t *cachep; | 2878 | kmem_cache_t *cachep; |
| 2881 | 2879 | ||
| @@ -2908,7 +2906,7 @@ EXPORT_SYMBOL(kmalloc_node); | |||
| 2908 | * platforms. For example, on i386, it means that the memory must come | 2906 | * platforms. For example, on i386, it means that the memory must come |
| 2909 | * from the first 16MB. | 2907 | * from the first 16MB. |
| 2910 | */ | 2908 | */ |
| 2911 | void *__kmalloc(size_t size, unsigned int __nocast flags) | 2909 | void *__kmalloc(size_t size, gfp_t flags) |
| 2912 | { | 2910 | { |
| 2913 | kmem_cache_t *cachep; | 2911 | kmem_cache_t *cachep; |
| 2914 | 2912 | ||
| @@ -2997,7 +2995,7 @@ EXPORT_SYMBOL(kmem_cache_free); | |||
| 2997 | * @size: how many bytes of memory are required. | 2995 | * @size: how many bytes of memory are required. |
| 2998 | * @flags: the type of memory to allocate. | 2996 | * @flags: the type of memory to allocate. |
| 2999 | */ | 2997 | */ |
| 3000 | void *kzalloc(size_t size, unsigned int __nocast flags) | 2998 | void *kzalloc(size_t size, gfp_t flags) |
| 3001 | { | 2999 | { |
| 3002 | void *ret = kmalloc(size, flags); | 3000 | void *ret = kmalloc(size, flags); |
| 3003 | if (ret) | 3001 | if (ret) |
| @@ -3603,7 +3601,7 @@ unsigned int ksize(const void *objp) | |||
| 3603 | * @s: the string to duplicate | 3601 | * @s: the string to duplicate |
| 3604 | * @gfp: the GFP mask used in the kmalloc() call when allocating memory | 3602 | * @gfp: the GFP mask used in the kmalloc() call when allocating memory |
| 3605 | */ | 3603 | */ |
| 3606 | char *kstrdup(const char *s, unsigned int __nocast gfp) | 3604 | char *kstrdup(const char *s, gfp_t gfp) |
| 3607 | { | 3605 | { |
| 3608 | size_t len; | 3606 | size_t len; |
| 3609 | char *buf; | 3607 | char *buf; |
diff --git a/mm/swap_state.c b/mm/swap_state.c index adbc2b426c2f..132164f7d0a7 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c | |||
| @@ -68,7 +68,7 @@ void show_swap_cache_info(void) | |||
| 68 | * but sets SwapCache flag and private instead of mapping and index. | 68 | * but sets SwapCache flag and private instead of mapping and index. |
| 69 | */ | 69 | */ |
| 70 | static int __add_to_swap_cache(struct page *page, swp_entry_t entry, | 70 | static int __add_to_swap_cache(struct page *page, swp_entry_t entry, |
| 71 | unsigned int __nocast gfp_mask) | 71 | gfp_t gfp_mask) |
| 72 | { | 72 | { |
| 73 | int error; | 73 | int error; |
| 74 | 74 | ||
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 13c3d82968ae..1150229b6366 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
| @@ -395,7 +395,7 @@ void *vmap(struct page **pages, unsigned int count, | |||
| 395 | 395 | ||
| 396 | EXPORT_SYMBOL(vmap); | 396 | EXPORT_SYMBOL(vmap); |
| 397 | 397 | ||
| 398 | void *__vmalloc_area(struct vm_struct *area, unsigned int __nocast gfp_mask, pgprot_t prot) | 398 | void *__vmalloc_area(struct vm_struct *area, gfp_t gfp_mask, pgprot_t prot) |
| 399 | { | 399 | { |
| 400 | struct page **pages; | 400 | struct page **pages; |
| 401 | unsigned int nr_pages, array_size, i; | 401 | unsigned int nr_pages, array_size, i; |
| @@ -446,7 +446,7 @@ fail: | |||
| 446 | * allocator with @gfp_mask flags. Map them into contiguous | 446 | * allocator with @gfp_mask flags. Map them into contiguous |
| 447 | * kernel virtual space, using a pagetable protection of @prot. | 447 | * kernel virtual space, using a pagetable protection of @prot. |
| 448 | */ | 448 | */ |
| 449 | void *__vmalloc(unsigned long size, unsigned int __nocast gfp_mask, pgprot_t prot) | 449 | void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot) |
| 450 | { | 450 | { |
| 451 | struct vm_struct *area; | 451 | struct vm_struct *area; |
| 452 | 452 | ||
diff --git a/net/atm/atm_misc.c b/net/atm/atm_misc.c index 71abc99ec815..223c7ad5bd0f 100644 --- a/net/atm/atm_misc.c +++ b/net/atm/atm_misc.c | |||
| @@ -25,7 +25,7 @@ int atm_charge(struct atm_vcc *vcc,int truesize) | |||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size, | 27 | struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size, |
| 28 | unsigned int __nocast gfp_flags) | 28 | gfp_t gfp_flags) |
| 29 | { | 29 | { |
| 30 | struct sock *sk = sk_atm(vcc); | 30 | struct sock *sk = sk_atm(vcc); |
| 31 | int guess = atm_guess_pdu2truesize(pdu_size); | 31 | int guess = atm_guess_pdu2truesize(pdu_size); |
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index d3d6bc547212..59b2dd36baa7 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
| @@ -372,7 +372,7 @@ static struct proto l2cap_proto = { | |||
| 372 | .obj_size = sizeof(struct l2cap_pinfo) | 372 | .obj_size = sizeof(struct l2cap_pinfo) |
| 373 | }; | 373 | }; |
| 374 | 374 | ||
| 375 | static struct sock *l2cap_sock_alloc(struct socket *sock, int proto, unsigned int __nocast prio) | 375 | static struct sock *l2cap_sock_alloc(struct socket *sock, int proto, gfp_t prio) |
| 376 | { | 376 | { |
| 377 | struct sock *sk; | 377 | struct sock *sk; |
| 378 | 378 | ||
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index 173f46e8cdae..35adce6482b6 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c | |||
| @@ -229,7 +229,7 @@ static void rfcomm_dlc_clear_state(struct rfcomm_dlc *d) | |||
| 229 | d->rx_credits = RFCOMM_DEFAULT_CREDITS; | 229 | d->rx_credits = RFCOMM_DEFAULT_CREDITS; |
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | struct rfcomm_dlc *rfcomm_dlc_alloc(unsigned int __nocast prio) | 232 | struct rfcomm_dlc *rfcomm_dlc_alloc(gfp_t prio) |
| 233 | { | 233 | { |
| 234 | struct rfcomm_dlc *d = kmalloc(sizeof(*d), prio); | 234 | struct rfcomm_dlc *d = kmalloc(sizeof(*d), prio); |
| 235 | if (!d) | 235 | if (!d) |
diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c index f49e7e938bfb..a2b30f0aedb7 100644 --- a/net/bluetooth/rfcomm/sock.c +++ b/net/bluetooth/rfcomm/sock.c | |||
| @@ -284,7 +284,7 @@ static struct proto rfcomm_proto = { | |||
| 284 | .obj_size = sizeof(struct rfcomm_pinfo) | 284 | .obj_size = sizeof(struct rfcomm_pinfo) |
| 285 | }; | 285 | }; |
| 286 | 286 | ||
| 287 | static struct sock *rfcomm_sock_alloc(struct socket *sock, int proto, unsigned int __nocast prio) | 287 | static struct sock *rfcomm_sock_alloc(struct socket *sock, int proto, gfp_t prio) |
| 288 | { | 288 | { |
| 289 | struct rfcomm_dlc *d; | 289 | struct rfcomm_dlc *d; |
| 290 | struct sock *sk; | 290 | struct sock *sk; |
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index 1bca860a6109..158a9c46d863 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c | |||
| @@ -286,7 +286,7 @@ static inline void rfcomm_set_owner_w(struct sk_buff *skb, struct rfcomm_dev *de | |||
| 286 | skb->destructor = rfcomm_wfree; | 286 | skb->destructor = rfcomm_wfree; |
| 287 | } | 287 | } |
| 288 | 288 | ||
| 289 | static struct sk_buff *rfcomm_wmalloc(struct rfcomm_dev *dev, unsigned long size, unsigned int __nocast priority) | 289 | static struct sk_buff *rfcomm_wmalloc(struct rfcomm_dev *dev, unsigned long size, gfp_t priority) |
| 290 | { | 290 | { |
| 291 | if (atomic_read(&dev->wmem_alloc) < rfcomm_room(dev->dlc)) { | 291 | if (atomic_read(&dev->wmem_alloc) < rfcomm_room(dev->dlc)) { |
| 292 | struct sk_buff *skb = alloc_skb(size, priority); | 292 | struct sk_buff *skb = alloc_skb(size, priority); |
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index ce7ab7dfa0b2..997e42df115c 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c | |||
| @@ -418,7 +418,7 @@ static struct proto sco_proto = { | |||
| 418 | .obj_size = sizeof(struct sco_pinfo) | 418 | .obj_size = sizeof(struct sco_pinfo) |
| 419 | }; | 419 | }; |
| 420 | 420 | ||
| 421 | static struct sock *sco_sock_alloc(struct socket *sock, int proto, unsigned int __nocast prio) | 421 | static struct sock *sco_sock_alloc(struct socket *sock, int proto, gfp_t prio) |
| 422 | { | 422 | { |
| 423 | struct sock *sk; | 423 | struct sock *sk; |
| 424 | 424 | ||
diff --git a/net/core/dev.c b/net/core/dev.c index 9066c874e273..a44eeef24edf 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -1132,7 +1132,7 @@ static inline int illegal_highdma(struct net_device *dev, struct sk_buff *skb) | |||
| 1132 | #endif | 1132 | #endif |
| 1133 | 1133 | ||
| 1134 | /* Keep head the same: replace data */ | 1134 | /* Keep head the same: replace data */ |
| 1135 | int __skb_linearize(struct sk_buff *skb, unsigned int __nocast gfp_mask) | 1135 | int __skb_linearize(struct sk_buff *skb, gfp_t gfp_mask) |
| 1136 | { | 1136 | { |
| 1137 | unsigned int size; | 1137 | unsigned int size; |
| 1138 | u8 *data; | 1138 | u8 *data; |
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 0e9431b59fb2..af9b1516e21f 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
| @@ -130,7 +130,7 @@ void skb_under_panic(struct sk_buff *skb, int sz, void *here) | |||
| 130 | * Buffers may only be allocated from interrupts using a @gfp_mask of | 130 | * Buffers may only be allocated from interrupts using a @gfp_mask of |
| 131 | * %GFP_ATOMIC. | 131 | * %GFP_ATOMIC. |
| 132 | */ | 132 | */ |
| 133 | struct sk_buff *__alloc_skb(unsigned int size, unsigned int __nocast gfp_mask, | 133 | struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask, |
| 134 | int fclone) | 134 | int fclone) |
| 135 | { | 135 | { |
| 136 | struct sk_buff *skb; | 136 | struct sk_buff *skb; |
| @@ -198,7 +198,7 @@ nodata: | |||
| 198 | */ | 198 | */ |
| 199 | struct sk_buff *alloc_skb_from_cache(kmem_cache_t *cp, | 199 | struct sk_buff *alloc_skb_from_cache(kmem_cache_t *cp, |
| 200 | unsigned int size, | 200 | unsigned int size, |
| 201 | unsigned int __nocast gfp_mask) | 201 | gfp_t gfp_mask) |
| 202 | { | 202 | { |
| 203 | struct sk_buff *skb; | 203 | struct sk_buff *skb; |
| 204 | u8 *data; | 204 | u8 *data; |
| @@ -361,7 +361,7 @@ void __kfree_skb(struct sk_buff *skb) | |||
| 361 | * %GFP_ATOMIC. | 361 | * %GFP_ATOMIC. |
| 362 | */ | 362 | */ |
| 363 | 363 | ||
| 364 | struct sk_buff *skb_clone(struct sk_buff *skb, unsigned int __nocast gfp_mask) | 364 | struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t gfp_mask) |
| 365 | { | 365 | { |
| 366 | struct sk_buff *n; | 366 | struct sk_buff *n; |
| 367 | 367 | ||
| @@ -500,7 +500,7 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old) | |||
| 500 | * header is going to be modified. Use pskb_copy() instead. | 500 | * header is going to be modified. Use pskb_copy() instead. |
| 501 | */ | 501 | */ |
| 502 | 502 | ||
| 503 | struct sk_buff *skb_copy(const struct sk_buff *skb, unsigned int __nocast gfp_mask) | 503 | struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t gfp_mask) |
| 504 | { | 504 | { |
| 505 | int headerlen = skb->data - skb->head; | 505 | int headerlen = skb->data - skb->head; |
| 506 | /* | 506 | /* |
| @@ -539,7 +539,7 @@ struct sk_buff *skb_copy(const struct sk_buff *skb, unsigned int __nocast gfp_ma | |||
| 539 | * The returned buffer has a reference count of 1. | 539 | * The returned buffer has a reference count of 1. |
| 540 | */ | 540 | */ |
| 541 | 541 | ||
| 542 | struct sk_buff *pskb_copy(struct sk_buff *skb, unsigned int __nocast gfp_mask) | 542 | struct sk_buff *pskb_copy(struct sk_buff *skb, gfp_t gfp_mask) |
| 543 | { | 543 | { |
| 544 | /* | 544 | /* |
| 545 | * Allocate the copy buffer | 545 | * Allocate the copy buffer |
| @@ -598,7 +598,7 @@ out: | |||
| 598 | */ | 598 | */ |
| 599 | 599 | ||
| 600 | int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, | 600 | int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, |
| 601 | unsigned int __nocast gfp_mask) | 601 | gfp_t gfp_mask) |
| 602 | { | 602 | { |
| 603 | int i; | 603 | int i; |
| 604 | u8 *data; | 604 | u8 *data; |
| @@ -689,7 +689,7 @@ struct sk_buff *skb_realloc_headroom(struct sk_buff *skb, unsigned int headroom) | |||
| 689 | */ | 689 | */ |
| 690 | struct sk_buff *skb_copy_expand(const struct sk_buff *skb, | 690 | struct sk_buff *skb_copy_expand(const struct sk_buff *skb, |
| 691 | int newheadroom, int newtailroom, | 691 | int newheadroom, int newtailroom, |
| 692 | unsigned int __nocast gfp_mask) | 692 | gfp_t gfp_mask) |
| 693 | { | 693 | { |
| 694 | /* | 694 | /* |
| 695 | * Allocate the copy buffer | 695 | * Allocate the copy buffer |
diff --git a/net/core/sock.c b/net/core/sock.c index 928d2a1d6d8e..1c52fe809eda 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
| @@ -637,7 +637,7 @@ lenout: | |||
| 637 | * @prot: struct proto associated with this new sock instance | 637 | * @prot: struct proto associated with this new sock instance |
| 638 | * @zero_it: if we should zero the newly allocated sock | 638 | * @zero_it: if we should zero the newly allocated sock |
| 639 | */ | 639 | */ |
| 640 | struct sock *sk_alloc(int family, unsigned int __nocast priority, | 640 | struct sock *sk_alloc(int family, gfp_t priority, |
| 641 | struct proto *prot, int zero_it) | 641 | struct proto *prot, int zero_it) |
| 642 | { | 642 | { |
| 643 | struct sock *sk = NULL; | 643 | struct sock *sk = NULL; |
| @@ -704,7 +704,7 @@ void sk_free(struct sock *sk) | |||
| 704 | module_put(owner); | 704 | module_put(owner); |
| 705 | } | 705 | } |
| 706 | 706 | ||
| 707 | struct sock *sk_clone(const struct sock *sk, const unsigned int __nocast priority) | 707 | struct sock *sk_clone(const struct sock *sk, const gfp_t priority) |
| 708 | { | 708 | { |
| 709 | struct sock *newsk = sk_alloc(sk->sk_family, priority, sk->sk_prot, 0); | 709 | struct sock *newsk = sk_alloc(sk->sk_family, priority, sk->sk_prot, 0); |
| 710 | 710 | ||
| @@ -845,7 +845,7 @@ unsigned long sock_i_ino(struct sock *sk) | |||
| 845 | * Allocate a skb from the socket's send buffer. | 845 | * Allocate a skb from the socket's send buffer. |
| 846 | */ | 846 | */ |
| 847 | struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, | 847 | struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, |
| 848 | unsigned int __nocast priority) | 848 | gfp_t priority) |
| 849 | { | 849 | { |
| 850 | if (force || atomic_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf) { | 850 | if (force || atomic_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf) { |
| 851 | struct sk_buff * skb = alloc_skb(size, priority); | 851 | struct sk_buff * skb = alloc_skb(size, priority); |
| @@ -861,7 +861,7 @@ struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, | |||
| 861 | * Allocate a skb from the socket's receive buffer. | 861 | * Allocate a skb from the socket's receive buffer. |
| 862 | */ | 862 | */ |
| 863 | struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, | 863 | struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, |
| 864 | unsigned int __nocast priority) | 864 | gfp_t priority) |
| 865 | { | 865 | { |
| 866 | if (force || atomic_read(&sk->sk_rmem_alloc) < sk->sk_rcvbuf) { | 866 | if (force || atomic_read(&sk->sk_rmem_alloc) < sk->sk_rcvbuf) { |
| 867 | struct sk_buff *skb = alloc_skb(size, priority); | 867 | struct sk_buff *skb = alloc_skb(size, priority); |
| @@ -876,7 +876,7 @@ struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, | |||
| 876 | /* | 876 | /* |
| 877 | * Allocate a memory block from the socket's option memory buffer. | 877 | * Allocate a memory block from the socket's option memory buffer. |
| 878 | */ | 878 | */ |
| 879 | void *sock_kmalloc(struct sock *sk, int size, unsigned int __nocast priority) | 879 | void *sock_kmalloc(struct sock *sk, int size, gfp_t priority) |
| 880 | { | 880 | { |
| 881 | if ((unsigned)size <= sysctl_optmem_max && | 881 | if ((unsigned)size <= sysctl_optmem_max && |
| 882 | atomic_read(&sk->sk_omem_alloc) + size < sysctl_optmem_max) { | 882 | atomic_read(&sk->sk_omem_alloc) + size < sysctl_optmem_max) { |
diff --git a/net/dccp/ackvec.c b/net/dccp/ackvec.c index 6530283eafca..c9a62cca22fc 100644 --- a/net/dccp/ackvec.c +++ b/net/dccp/ackvec.c | |||
| @@ -91,7 +91,7 @@ int dccp_insert_option_ackvec(struct sock *sk, struct sk_buff *skb) | |||
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | struct dccp_ackvec *dccp_ackvec_alloc(const unsigned int len, | 93 | struct dccp_ackvec *dccp_ackvec_alloc(const unsigned int len, |
| 94 | const unsigned int __nocast priority) | 94 | const gfp_t priority) |
| 95 | { | 95 | { |
| 96 | struct dccp_ackvec *av = kmalloc(sizeof(*av) + len, priority); | 96 | struct dccp_ackvec *av = kmalloc(sizeof(*av) + len, priority); |
| 97 | 97 | ||
diff --git a/net/dccp/ackvec.h b/net/dccp/ackvec.h index 8ca51c9191f7..d0fd6c60c574 100644 --- a/net/dccp/ackvec.h +++ b/net/dccp/ackvec.h | |||
| @@ -74,7 +74,7 @@ struct sk_buff; | |||
| 74 | 74 | ||
| 75 | #ifdef CONFIG_IP_DCCP_ACKVEC | 75 | #ifdef CONFIG_IP_DCCP_ACKVEC |
| 76 | extern struct dccp_ackvec *dccp_ackvec_alloc(unsigned int len, | 76 | extern struct dccp_ackvec *dccp_ackvec_alloc(unsigned int len, |
| 77 | const unsigned int __nocast priority); | 77 | const gfp_t priority); |
| 78 | extern void dccp_ackvec_free(struct dccp_ackvec *av); | 78 | extern void dccp_ackvec_free(struct dccp_ackvec *av); |
| 79 | 79 | ||
| 80 | extern int dccp_ackvec_add(struct dccp_ackvec *av, const struct sock *sk, | 80 | extern int dccp_ackvec_add(struct dccp_ackvec *av, const struct sock *sk, |
| @@ -93,7 +93,7 @@ static inline int dccp_ackvec_pending(const struct dccp_ackvec *av) | |||
| 93 | } | 93 | } |
| 94 | #else /* CONFIG_IP_DCCP_ACKVEC */ | 94 | #else /* CONFIG_IP_DCCP_ACKVEC */ |
| 95 | static inline struct dccp_ackvec *dccp_ackvec_alloc(unsigned int len, | 95 | static inline struct dccp_ackvec *dccp_ackvec_alloc(unsigned int len, |
| 96 | const unsigned int __nocast priority) | 96 | const gfp_t priority) |
| 97 | { | 97 | { |
| 98 | return NULL; | 98 | return NULL; |
| 99 | } | 99 | } |
diff --git a/net/dccp/ccids/lib/loss_interval.h b/net/dccp/ccids/lib/loss_interval.h index 13ad47ba1420..417d9d82df3e 100644 --- a/net/dccp/ccids/lib/loss_interval.h +++ b/net/dccp/ccids/lib/loss_interval.h | |||
| @@ -36,7 +36,7 @@ struct dccp_li_hist_entry { | |||
| 36 | 36 | ||
| 37 | static inline struct dccp_li_hist_entry * | 37 | static inline struct dccp_li_hist_entry * |
| 38 | dccp_li_hist_entry_new(struct dccp_li_hist *hist, | 38 | dccp_li_hist_entry_new(struct dccp_li_hist *hist, |
| 39 | const unsigned int __nocast prio) | 39 | const gfp_t prio) |
| 40 | { | 40 | { |
| 41 | return kmem_cache_alloc(hist->dccplih_slab, prio); | 41 | return kmem_cache_alloc(hist->dccplih_slab, prio); |
| 42 | } | 42 | } |
diff --git a/net/dccp/ccids/lib/packet_history.h b/net/dccp/ccids/lib/packet_history.h index b375ebdb7dcf..122e96737ff6 100644 --- a/net/dccp/ccids/lib/packet_history.h +++ b/net/dccp/ccids/lib/packet_history.h | |||
| @@ -86,7 +86,7 @@ extern struct dccp_rx_hist_entry * | |||
| 86 | 86 | ||
| 87 | static inline struct dccp_tx_hist_entry * | 87 | static inline struct dccp_tx_hist_entry * |
| 88 | dccp_tx_hist_entry_new(struct dccp_tx_hist *hist, | 88 | dccp_tx_hist_entry_new(struct dccp_tx_hist *hist, |
| 89 | const unsigned int __nocast prio) | 89 | const gfp_t prio) |
| 90 | { | 90 | { |
| 91 | struct dccp_tx_hist_entry *entry = kmem_cache_alloc(hist->dccptxh_slab, | 91 | struct dccp_tx_hist_entry *entry = kmem_cache_alloc(hist->dccptxh_slab, |
| 92 | prio); | 92 | prio); |
| @@ -137,7 +137,7 @@ static inline struct dccp_rx_hist_entry * | |||
| 137 | const struct sock *sk, | 137 | const struct sock *sk, |
| 138 | const u32 ndp, | 138 | const u32 ndp, |
| 139 | const struct sk_buff *skb, | 139 | const struct sk_buff *skb, |
| 140 | const unsigned int __nocast prio) | 140 | const gfp_t prio) |
| 141 | { | 141 | { |
| 142 | struct dccp_rx_hist_entry *entry = kmem_cache_alloc(hist->dccprxh_slab, | 142 | struct dccp_rx_hist_entry *entry = kmem_cache_alloc(hist->dccprxh_slab, |
| 143 | prio); | 143 | prio); |
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index 34d4128d56d5..1186dc44cdff 100644 --- a/net/decnet/af_decnet.c +++ b/net/decnet/af_decnet.c | |||
| @@ -452,8 +452,7 @@ static struct proto dn_proto = { | |||
| 452 | .obj_size = sizeof(struct dn_sock), | 452 | .obj_size = sizeof(struct dn_sock), |
| 453 | }; | 453 | }; |
| 454 | 454 | ||
| 455 | static struct sock *dn_alloc_sock(struct socket *sock, | 455 | static struct sock *dn_alloc_sock(struct socket *sock, gfp_t gfp) |
| 456 | unsigned int __nocast gfp) | ||
| 457 | { | 456 | { |
| 458 | struct dn_scp *scp; | 457 | struct dn_scp *scp; |
| 459 | struct sock *sk = sk_alloc(PF_DECnet, gfp, &dn_proto, 1); | 458 | struct sock *sk = sk_alloc(PF_DECnet, gfp, &dn_proto, 1); |
| @@ -805,8 +804,7 @@ static int dn_auto_bind(struct socket *sock) | |||
| 805 | return rv; | 804 | return rv; |
| 806 | } | 805 | } |
| 807 | 806 | ||
| 808 | static int dn_confirm_accept(struct sock *sk, long *timeo, | 807 | static int dn_confirm_accept(struct sock *sk, long *timeo, gfp_t allocation) |
| 809 | unsigned int __nocast allocation) | ||
| 810 | { | 808 | { |
| 811 | struct dn_scp *scp = DN_SK(sk); | 809 | struct dn_scp *scp = DN_SK(sk); |
| 812 | DEFINE_WAIT(wait); | 810 | DEFINE_WAIT(wait); |
diff --git a/net/decnet/dn_nsp_out.c b/net/decnet/dn_nsp_out.c index cd08244aa10c..c96c767b1f74 100644 --- a/net/decnet/dn_nsp_out.c +++ b/net/decnet/dn_nsp_out.c | |||
| @@ -117,8 +117,7 @@ try_again: | |||
| 117 | * The eventual aim is for each socket to have a cached header size | 117 | * The eventual aim is for each socket to have a cached header size |
| 118 | * for its outgoing packets, and to set hdr from this when sk != NULL. | 118 | * for its outgoing packets, and to set hdr from this when sk != NULL. |
| 119 | */ | 119 | */ |
| 120 | struct sk_buff *dn_alloc_skb(struct sock *sk, int size, | 120 | struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri) |
| 121 | unsigned int __nocast pri) | ||
| 122 | { | 121 | { |
| 123 | struct sk_buff *skb; | 122 | struct sk_buff *skb; |
| 124 | int hdr = 64; | 123 | int hdr = 64; |
| @@ -212,7 +211,7 @@ static void dn_nsp_rtt(struct sock *sk, long rtt) | |||
| 212 | * Returns: The number of times the packet has been sent previously | 211 | * Returns: The number of times the packet has been sent previously |
| 213 | */ | 212 | */ |
| 214 | static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb, | 213 | static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb, |
| 215 | unsigned int __nocast gfp) | 214 | gfp_t gfp) |
| 216 | { | 215 | { |
| 217 | struct dn_skb_cb *cb = DN_SKB_CB(skb); | 216 | struct dn_skb_cb *cb = DN_SKB_CB(skb); |
| 218 | struct sk_buff *skb2; | 217 | struct sk_buff *skb2; |
| @@ -353,7 +352,7 @@ static unsigned short *dn_nsp_mk_data_header(struct sock *sk, struct sk_buff *sk | |||
| 353 | } | 352 | } |
| 354 | 353 | ||
| 355 | void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, | 354 | void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, |
| 356 | unsigned int __nocast gfp, int oth) | 355 | gfp_t gfp, int oth) |
| 357 | { | 356 | { |
| 358 | struct dn_scp *scp = DN_SK(sk); | 357 | struct dn_scp *scp = DN_SK(sk); |
| 359 | struct dn_skb_cb *cb = DN_SKB_CB(skb); | 358 | struct dn_skb_cb *cb = DN_SKB_CB(skb); |
| @@ -520,7 +519,7 @@ static int dn_nsp_retrans_conn_conf(struct sock *sk) | |||
| 520 | return 0; | 519 | return 0; |
| 521 | } | 520 | } |
| 522 | 521 | ||
| 523 | void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp) | 522 | void dn_send_conn_conf(struct sock *sk, gfp_t gfp) |
| 524 | { | 523 | { |
| 525 | struct dn_scp *scp = DN_SK(sk); | 524 | struct dn_scp *scp = DN_SK(sk); |
| 526 | struct sk_buff *skb = NULL; | 525 | struct sk_buff *skb = NULL; |
| @@ -552,7 +551,7 @@ void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp) | |||
| 552 | 551 | ||
| 553 | 552 | ||
| 554 | static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, | 553 | static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, |
| 555 | unsigned short reason, unsigned int __nocast gfp, | 554 | unsigned short reason, gfp_t gfp, |
| 556 | struct dst_entry *dst, | 555 | struct dst_entry *dst, |
| 557 | int ddl, unsigned char *dd, __u16 rem, __u16 loc) | 556 | int ddl, unsigned char *dd, __u16 rem, __u16 loc) |
| 558 | { | 557 | { |
| @@ -595,7 +594,7 @@ static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, | |||
| 595 | 594 | ||
| 596 | 595 | ||
| 597 | void dn_nsp_send_disc(struct sock *sk, unsigned char msgflg, | 596 | void dn_nsp_send_disc(struct sock *sk, unsigned char msgflg, |
| 598 | unsigned short reason, unsigned int __nocast gfp) | 597 | unsigned short reason, gfp_t gfp) |
| 599 | { | 598 | { |
| 600 | struct dn_scp *scp = DN_SK(sk); | 599 | struct dn_scp *scp = DN_SK(sk); |
| 601 | int ddl = 0; | 600 | int ddl = 0; |
| @@ -616,7 +615,7 @@ void dn_nsp_return_disc(struct sk_buff *skb, unsigned char msgflg, | |||
| 616 | { | 615 | { |
| 617 | struct dn_skb_cb *cb = DN_SKB_CB(skb); | 616 | struct dn_skb_cb *cb = DN_SKB_CB(skb); |
| 618 | int ddl = 0; | 617 | int ddl = 0; |
| 619 | unsigned int __nocast gfp = GFP_ATOMIC; | 618 | gfp_t gfp = GFP_ATOMIC; |
| 620 | 619 | ||
| 621 | dn_nsp_do_disc(NULL, msgflg, reason, gfp, skb->dst, ddl, | 620 | dn_nsp_do_disc(NULL, msgflg, reason, gfp, skb->dst, ddl, |
| 622 | NULL, cb->src_port, cb->dst_port); | 621 | NULL, cb->src_port, cb->dst_port); |
| @@ -628,7 +627,7 @@ void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval) | |||
| 628 | struct dn_scp *scp = DN_SK(sk); | 627 | struct dn_scp *scp = DN_SK(sk); |
| 629 | struct sk_buff *skb; | 628 | struct sk_buff *skb; |
| 630 | unsigned char *ptr; | 629 | unsigned char *ptr; |
| 631 | unsigned int __nocast gfp = GFP_ATOMIC; | 630 | gfp_t gfp = GFP_ATOMIC; |
| 632 | 631 | ||
| 633 | if ((skb = dn_alloc_skb(sk, DN_MAX_NSP_DATA_HEADER + 2, gfp)) == NULL) | 632 | if ((skb = dn_alloc_skb(sk, DN_MAX_NSP_DATA_HEADER + 2, gfp)) == NULL) |
| 634 | return; | 633 | return; |
| @@ -663,8 +662,7 @@ void dn_nsp_send_conninit(struct sock *sk, unsigned char msgflg) | |||
| 663 | unsigned char menuver; | 662 | unsigned char menuver; |
| 664 | struct dn_skb_cb *cb; | 663 | struct dn_skb_cb *cb; |
| 665 | unsigned char type = 1; | 664 | unsigned char type = 1; |
| 666 | unsigned int __nocast allocation = | 665 | gfp_t allocation = (msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC; |
| 667 | (msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC; | ||
| 668 | struct sk_buff *skb = dn_alloc_skb(sk, 200, allocation); | 666 | struct sk_buff *skb = dn_alloc_skb(sk, 200, allocation); |
| 669 | 667 | ||
| 670 | if (!skb) | 668 | if (!skb) |
diff --git a/net/ieee80211/ieee80211_tx.c b/net/ieee80211/ieee80211_tx.c index ecdf9f7a538f..eed07bbbe6b6 100644 --- a/net/ieee80211/ieee80211_tx.c +++ b/net/ieee80211/ieee80211_tx.c | |||
| @@ -207,7 +207,7 @@ void ieee80211_txb_free(struct ieee80211_txb *txb) | |||
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, | 209 | static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, |
| 210 | unsigned int __nocast gfp_mask) | 210 | gfp_t gfp_mask) |
| 211 | { | 211 | { |
| 212 | struct ieee80211_txb *txb; | 212 | struct ieee80211_txb *txb; |
| 213 | int i; | 213 | int i; |
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index fe3c6d3d0c91..94468a76c5b4 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c | |||
| @@ -494,7 +494,7 @@ void inet_csk_reqsk_queue_prune(struct sock *parent, | |||
| 494 | EXPORT_SYMBOL_GPL(inet_csk_reqsk_queue_prune); | 494 | EXPORT_SYMBOL_GPL(inet_csk_reqsk_queue_prune); |
| 495 | 495 | ||
| 496 | struct sock *inet_csk_clone(struct sock *sk, const struct request_sock *req, | 496 | struct sock *inet_csk_clone(struct sock *sk, const struct request_sock *req, |
| 497 | const unsigned int __nocast priority) | 497 | const gfp_t priority) |
| 498 | { | 498 | { |
| 499 | struct sock *newsk = sk_clone(sk, priority); | 499 | struct sock *newsk = sk_clone(sk, priority); |
| 500 | 500 | ||
diff --git a/net/ipv4/ipvs/ip_vs_app.c b/net/ipv4/ipvs/ip_vs_app.c index b942ff3c8860..fc6f95aaa969 100644 --- a/net/ipv4/ipvs/ip_vs_app.c +++ b/net/ipv4/ipvs/ip_vs_app.c | |||
| @@ -604,7 +604,7 @@ static struct file_operations ip_vs_app_fops = { | |||
| 604 | /* | 604 | /* |
| 605 | * Replace a segment of data with a new segment | 605 | * Replace a segment of data with a new segment |
| 606 | */ | 606 | */ |
| 607 | int ip_vs_skb_replace(struct sk_buff *skb, unsigned int __nocast pri, | 607 | int ip_vs_skb_replace(struct sk_buff *skb, gfp_t pri, |
| 608 | char *o_buf, int o_len, char *n_buf, int n_len) | 608 | char *o_buf, int o_len, char *n_buf, int n_len) |
| 609 | { | 609 | { |
| 610 | struct iphdr *iph; | 610 | struct iphdr *iph; |
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index c5b911f9b662..8225e4257258 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
| @@ -1610,7 +1610,7 @@ void tcp_send_fin(struct sock *sk) | |||
| 1610 | * was unread data in the receive queue. This behavior is recommended | 1610 | * was unread data in the receive queue. This behavior is recommended |
| 1611 | * by draft-ietf-tcpimpl-prob-03.txt section 3.10. -DaveM | 1611 | * by draft-ietf-tcpimpl-prob-03.txt section 3.10. -DaveM |
| 1612 | */ | 1612 | */ |
| 1613 | void tcp_send_active_reset(struct sock *sk, unsigned int __nocast priority) | 1613 | void tcp_send_active_reset(struct sock *sk, gfp_t priority) |
| 1614 | { | 1614 | { |
| 1615 | struct tcp_sock *tp = tcp_sk(sk); | 1615 | struct tcp_sock *tp = tcp_sk(sk); |
| 1616 | struct sk_buff *skb; | 1616 | struct sk_buff *skb; |
diff --git a/net/key/af_key.c b/net/key/af_key.c index bbf0f69181ba..39031684b65c 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
| @@ -185,7 +185,7 @@ static int pfkey_release(struct socket *sock) | |||
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2, | 187 | static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2, |
| 188 | unsigned int __nocast allocation, struct sock *sk) | 188 | gfp_t allocation, struct sock *sk) |
| 189 | { | 189 | { |
| 190 | int err = -ENOBUFS; | 190 | int err = -ENOBUFS; |
| 191 | 191 | ||
| @@ -217,7 +217,7 @@ static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2, | |||
| 217 | #define BROADCAST_ONE 1 | 217 | #define BROADCAST_ONE 1 |
| 218 | #define BROADCAST_REGISTERED 2 | 218 | #define BROADCAST_REGISTERED 2 |
| 219 | #define BROADCAST_PROMISC_ONLY 4 | 219 | #define BROADCAST_PROMISC_ONLY 4 |
| 220 | static int pfkey_broadcast(struct sk_buff *skb, unsigned int __nocast allocation, | 220 | static int pfkey_broadcast(struct sk_buff *skb, gfp_t allocation, |
| 221 | int broadcast_flags, struct sock *one_sk) | 221 | int broadcast_flags, struct sock *one_sk) |
| 222 | { | 222 | { |
| 223 | struct sock *sk; | 223 | struct sock *sk; |
| @@ -1417,7 +1417,7 @@ static int pfkey_get(struct sock *sk, struct sk_buff *skb, struct sadb_msg *hdr, | |||
| 1417 | } | 1417 | } |
| 1418 | 1418 | ||
| 1419 | static struct sk_buff *compose_sadb_supported(struct sadb_msg *orig, | 1419 | static struct sk_buff *compose_sadb_supported(struct sadb_msg *orig, |
| 1420 | unsigned int __nocast allocation) | 1420 | gfp_t allocation) |
| 1421 | { | 1421 | { |
| 1422 | struct sk_buff *skb; | 1422 | struct sk_buff *skb; |
| 1423 | struct sadb_msg *hdr; | 1423 | struct sadb_msg *hdr; |
diff --git a/net/llc/llc_conn.c b/net/llc/llc_conn.c index 042b24a8ca4c..c761c15da421 100644 --- a/net/llc/llc_conn.c +++ b/net/llc/llc_conn.c | |||
| @@ -867,8 +867,7 @@ static void llc_sk_init(struct sock* sk) | |||
| 867 | * Allocates a LLC sock and initializes it. Returns the new LLC sock | 867 | * Allocates a LLC sock and initializes it. Returns the new LLC sock |
| 868 | * or %NULL if there's no memory available for one | 868 | * or %NULL if there's no memory available for one |
| 869 | */ | 869 | */ |
| 870 | struct sock *llc_sk_alloc(int family, unsigned int __nocast priority, | 870 | struct sock *llc_sk_alloc(int family, gfp_t priority, struct proto *prot) |
| 871 | struct proto *prot) | ||
| 872 | { | 871 | { |
| 873 | struct sock *sk = sk_alloc(family, priority, prot, 1); | 872 | struct sock *sk = sk_alloc(family, priority, prot, 1); |
| 874 | 873 | ||
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c index 34d671974a4d..1caaca06f698 100644 --- a/net/netfilter/nfnetlink.c +++ b/net/netfilter/nfnetlink.c | |||
| @@ -195,8 +195,7 @@ nfnetlink_check_attributes(struct nfnetlink_subsystem *subsys, | |||
| 195 | 195 | ||
| 196 | int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo) | 196 | int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo) |
| 197 | { | 197 | { |
| 198 | unsigned int __nocast allocation = | 198 | gfp_t allocation = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL; |
| 199 | in_interrupt() ? GFP_ATOMIC : GFP_KERNEL; | ||
| 200 | int err = 0; | 199 | int err = 0; |
| 201 | 200 | ||
| 202 | NETLINK_CB(skb).dst_group = group; | 201 | NETLINK_CB(skb).dst_group = group; |
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index a64e1d5ce3ca..678c3f2c0d0b 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
| @@ -758,7 +758,7 @@ void netlink_detachskb(struct sock *sk, struct sk_buff *skb) | |||
| 758 | } | 758 | } |
| 759 | 759 | ||
| 760 | static inline struct sk_buff *netlink_trim(struct sk_buff *skb, | 760 | static inline struct sk_buff *netlink_trim(struct sk_buff *skb, |
| 761 | unsigned int __nocast allocation) | 761 | gfp_t allocation) |
| 762 | { | 762 | { |
| 763 | int delta; | 763 | int delta; |
| 764 | 764 | ||
| @@ -880,7 +880,7 @@ out: | |||
| 880 | } | 880 | } |
| 881 | 881 | ||
| 882 | int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 pid, | 882 | int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 pid, |
| 883 | u32 group, unsigned int __nocast allocation) | 883 | u32 group, gfp_t allocation) |
| 884 | { | 884 | { |
| 885 | struct netlink_broadcast_data info; | 885 | struct netlink_broadcast_data info; |
| 886 | struct hlist_node *node; | 886 | struct hlist_node *node; |
diff --git a/net/rxrpc/call.c b/net/rxrpc/call.c index 86f777052633..c4aeb7d40266 100644 --- a/net/rxrpc/call.c +++ b/net/rxrpc/call.c | |||
| @@ -1923,7 +1923,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call, | |||
| 1923 | size_t sioc, | 1923 | size_t sioc, |
| 1924 | struct kvec *siov, | 1924 | struct kvec *siov, |
| 1925 | u8 rxhdr_flags, | 1925 | u8 rxhdr_flags, |
| 1926 | unsigned int __nocast alloc_flags, | 1926 | gfp_t alloc_flags, |
| 1927 | int dup_data, | 1927 | int dup_data, |
| 1928 | size_t *size_sent) | 1928 | size_t *size_sent) |
| 1929 | { | 1929 | { |
diff --git a/net/rxrpc/connection.c b/net/rxrpc/connection.c index be4b2be58956..2ba14a75dbbe 100644 --- a/net/rxrpc/connection.c +++ b/net/rxrpc/connection.c | |||
| @@ -522,7 +522,7 @@ int rxrpc_conn_newmsg(struct rxrpc_connection *conn, | |||
| 522 | uint8_t type, | 522 | uint8_t type, |
| 523 | int dcount, | 523 | int dcount, |
| 524 | struct kvec diov[], | 524 | struct kvec diov[], |
| 525 | unsigned int __nocast alloc_flags, | 525 | gfp_t alloc_flags, |
| 526 | struct rxrpc_message **_msg) | 526 | struct rxrpc_message **_msg) |
| 527 | { | 527 | { |
| 528 | struct rxrpc_message *msg; | 528 | struct rxrpc_message *msg; |
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 5b24ae0650d3..12b0f582a66b 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
| @@ -71,7 +71,7 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a | |||
| 71 | const struct sctp_endpoint *ep, | 71 | const struct sctp_endpoint *ep, |
| 72 | const struct sock *sk, | 72 | const struct sock *sk, |
| 73 | sctp_scope_t scope, | 73 | sctp_scope_t scope, |
| 74 | unsigned int __nocast gfp) | 74 | gfp_t gfp) |
| 75 | { | 75 | { |
| 76 | struct sctp_sock *sp; | 76 | struct sctp_sock *sp; |
| 77 | int i; | 77 | int i; |
| @@ -273,7 +273,7 @@ fail_init: | |||
| 273 | struct sctp_association *sctp_association_new(const struct sctp_endpoint *ep, | 273 | struct sctp_association *sctp_association_new(const struct sctp_endpoint *ep, |
| 274 | const struct sock *sk, | 274 | const struct sock *sk, |
| 275 | sctp_scope_t scope, | 275 | sctp_scope_t scope, |
| 276 | unsigned int __nocast gfp) | 276 | gfp_t gfp) |
| 277 | { | 277 | { |
| 278 | struct sctp_association *asoc; | 278 | struct sctp_association *asoc; |
| 279 | 279 | ||
| @@ -479,7 +479,7 @@ void sctp_assoc_rm_peer(struct sctp_association *asoc, | |||
| 479 | /* Add a transport address to an association. */ | 479 | /* Add a transport address to an association. */ |
| 480 | struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc, | 480 | struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc, |
| 481 | const union sctp_addr *addr, | 481 | const union sctp_addr *addr, |
| 482 | const unsigned int __nocast gfp, | 482 | const gfp_t gfp, |
| 483 | const int peer_state) | 483 | const int peer_state) |
| 484 | { | 484 | { |
| 485 | struct sctp_transport *peer; | 485 | struct sctp_transport *peer; |
| @@ -1231,7 +1231,7 @@ void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned len) | |||
| 1231 | * local endpoint and the remote peer. | 1231 | * local endpoint and the remote peer. |
| 1232 | */ | 1232 | */ |
| 1233 | int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *asoc, | 1233 | int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *asoc, |
| 1234 | unsigned int __nocast gfp) | 1234 | gfp_t gfp) |
| 1235 | { | 1235 | { |
| 1236 | sctp_scope_t scope; | 1236 | sctp_scope_t scope; |
| 1237 | int flags; | 1237 | int flags; |
| @@ -1254,7 +1254,7 @@ int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *asoc, | |||
| 1254 | /* Build the association's bind address list from the cookie. */ | 1254 | /* Build the association's bind address list from the cookie. */ |
| 1255 | int sctp_assoc_set_bind_addr_from_cookie(struct sctp_association *asoc, | 1255 | int sctp_assoc_set_bind_addr_from_cookie(struct sctp_association *asoc, |
| 1256 | struct sctp_cookie *cookie, | 1256 | struct sctp_cookie *cookie, |
| 1257 | unsigned int __nocast gfp) | 1257 | gfp_t gfp) |
| 1258 | { | 1258 | { |
| 1259 | int var_size2 = ntohs(cookie->peer_init->chunk_hdr.length); | 1259 | int var_size2 = ntohs(cookie->peer_init->chunk_hdr.length); |
| 1260 | int var_size3 = cookie->raw_addr_list_len; | 1260 | int var_size3 = cookie->raw_addr_list_len; |
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c index f71549710f2e..2b962627f631 100644 --- a/net/sctp/bind_addr.c +++ b/net/sctp/bind_addr.c | |||
| @@ -53,7 +53,7 @@ | |||
| 53 | 53 | ||
| 54 | /* Forward declarations for internal helpers. */ | 54 | /* Forward declarations for internal helpers. */ |
| 55 | static int sctp_copy_one_addr(struct sctp_bind_addr *, union sctp_addr *, | 55 | static int sctp_copy_one_addr(struct sctp_bind_addr *, union sctp_addr *, |
| 56 | sctp_scope_t scope, unsigned int __nocast gfp, | 56 | sctp_scope_t scope, gfp_t gfp, |
| 57 | int flags); | 57 | int flags); |
| 58 | static void sctp_bind_addr_clean(struct sctp_bind_addr *); | 58 | static void sctp_bind_addr_clean(struct sctp_bind_addr *); |
| 59 | 59 | ||
| @@ -64,7 +64,7 @@ static void sctp_bind_addr_clean(struct sctp_bind_addr *); | |||
| 64 | */ | 64 | */ |
| 65 | int sctp_bind_addr_copy(struct sctp_bind_addr *dest, | 65 | int sctp_bind_addr_copy(struct sctp_bind_addr *dest, |
| 66 | const struct sctp_bind_addr *src, | 66 | const struct sctp_bind_addr *src, |
| 67 | sctp_scope_t scope, unsigned int __nocast gfp, | 67 | sctp_scope_t scope, gfp_t gfp, |
| 68 | int flags) | 68 | int flags) |
| 69 | { | 69 | { |
| 70 | struct sctp_sockaddr_entry *addr; | 70 | struct sctp_sockaddr_entry *addr; |
| @@ -146,7 +146,7 @@ void sctp_bind_addr_free(struct sctp_bind_addr *bp) | |||
| 146 | 146 | ||
| 147 | /* Add an address to the bind address list in the SCTP_bind_addr structure. */ | 147 | /* Add an address to the bind address list in the SCTP_bind_addr structure. */ |
| 148 | int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, | 148 | int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, |
| 149 | unsigned int __nocast gfp) | 149 | gfp_t gfp) |
| 150 | { | 150 | { |
| 151 | struct sctp_sockaddr_entry *addr; | 151 | struct sctp_sockaddr_entry *addr; |
| 152 | 152 | ||
| @@ -200,7 +200,7 @@ int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr) | |||
| 200 | */ | 200 | */ |
| 201 | union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, | 201 | union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, |
| 202 | int *addrs_len, | 202 | int *addrs_len, |
| 203 | unsigned int __nocast gfp) | 203 | gfp_t gfp) |
| 204 | { | 204 | { |
| 205 | union sctp_params addrparms; | 205 | union sctp_params addrparms; |
| 206 | union sctp_params retval; | 206 | union sctp_params retval; |
| @@ -252,7 +252,7 @@ end_raw: | |||
| 252 | * address parameters). | 252 | * address parameters). |
| 253 | */ | 253 | */ |
| 254 | int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list, | 254 | int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list, |
| 255 | int addrs_len, __u16 port, unsigned int __nocast gfp) | 255 | int addrs_len, __u16 port, gfp_t gfp) |
| 256 | { | 256 | { |
| 257 | union sctp_addr_param *rawaddr; | 257 | union sctp_addr_param *rawaddr; |
| 258 | struct sctp_paramhdr *param; | 258 | struct sctp_paramhdr *param; |
| @@ -350,7 +350,7 @@ union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp, | |||
| 350 | /* Copy out addresses from the global local address list. */ | 350 | /* Copy out addresses from the global local address list. */ |
| 351 | static int sctp_copy_one_addr(struct sctp_bind_addr *dest, | 351 | static int sctp_copy_one_addr(struct sctp_bind_addr *dest, |
| 352 | union sctp_addr *addr, | 352 | union sctp_addr *addr, |
| 353 | sctp_scope_t scope, unsigned int __nocast gfp, | 353 | sctp_scope_t scope, gfp_t gfp, |
| 354 | int flags) | 354 | int flags) |
| 355 | { | 355 | { |
| 356 | int error = 0; | 356 | int error = 0; |
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c index 61da2937e641..83ef411772f4 100644 --- a/net/sctp/chunk.c +++ b/net/sctp/chunk.c | |||
| @@ -62,7 +62,7 @@ static void sctp_datamsg_init(struct sctp_datamsg *msg) | |||
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | /* Allocate and initialize datamsg. */ | 64 | /* Allocate and initialize datamsg. */ |
| 65 | SCTP_STATIC struct sctp_datamsg *sctp_datamsg_new(unsigned int __nocast gfp) | 65 | SCTP_STATIC struct sctp_datamsg *sctp_datamsg_new(gfp_t gfp) |
| 66 | { | 66 | { |
| 67 | struct sctp_datamsg *msg; | 67 | struct sctp_datamsg *msg; |
| 68 | msg = kmalloc(sizeof(struct sctp_datamsg), gfp); | 68 | msg = kmalloc(sizeof(struct sctp_datamsg), gfp); |
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index e22ccd655965..96984f7a2d69 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c | |||
| @@ -68,7 +68,7 @@ static void sctp_endpoint_bh_rcv(struct sctp_endpoint *ep); | |||
| 68 | */ | 68 | */ |
| 69 | static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, | 69 | static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, |
| 70 | struct sock *sk, | 70 | struct sock *sk, |
| 71 | unsigned int __nocast gfp) | 71 | gfp_t gfp) |
| 72 | { | 72 | { |
| 73 | struct sctp_sock *sp = sctp_sk(sk); | 73 | struct sctp_sock *sp = sctp_sk(sk); |
| 74 | memset(ep, 0, sizeof(struct sctp_endpoint)); | 74 | memset(ep, 0, sizeof(struct sctp_endpoint)); |
| @@ -138,8 +138,7 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, | |||
| 138 | /* Create a sctp_endpoint with all that boring stuff initialized. | 138 | /* Create a sctp_endpoint with all that boring stuff initialized. |
| 139 | * Returns NULL if there isn't enough memory. | 139 | * Returns NULL if there isn't enough memory. |
| 140 | */ | 140 | */ |
| 141 | struct sctp_endpoint *sctp_endpoint_new(struct sock *sk, | 141 | struct sctp_endpoint *sctp_endpoint_new(struct sock *sk, gfp_t gfp) |
| 142 | unsigned int __nocast gfp) | ||
| 143 | { | 142 | { |
| 144 | struct sctp_endpoint *ep; | 143 | struct sctp_endpoint *ep; |
| 145 | 144 | ||
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index f01d1c9002a1..26de4d3e1bd9 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
| @@ -219,7 +219,7 @@ static void sctp_free_local_addr_list(void) | |||
| 219 | 219 | ||
| 220 | /* Copy the local addresses which are valid for 'scope' into 'bp'. */ | 220 | /* Copy the local addresses which are valid for 'scope' into 'bp'. */ |
| 221 | int sctp_copy_local_addr_list(struct sctp_bind_addr *bp, sctp_scope_t scope, | 221 | int sctp_copy_local_addr_list(struct sctp_bind_addr *bp, sctp_scope_t scope, |
| 222 | unsigned int __nocast gfp, int copy_flags) | 222 | gfp_t gfp, int copy_flags) |
| 223 | { | 223 | { |
| 224 | struct sctp_sockaddr_entry *addr; | 224 | struct sctp_sockaddr_entry *addr; |
| 225 | int error = 0; | 225 | int error = 0; |
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 3868a8d70cc0..10e82ec2ebd3 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
| @@ -78,7 +78,7 @@ static sctp_cookie_param_t *sctp_pack_cookie(const struct sctp_endpoint *ep, | |||
| 78 | static int sctp_process_param(struct sctp_association *asoc, | 78 | static int sctp_process_param(struct sctp_association *asoc, |
| 79 | union sctp_params param, | 79 | union sctp_params param, |
| 80 | const union sctp_addr *peer_addr, | 80 | const union sctp_addr *peer_addr, |
| 81 | unsigned int __nocast gfp); | 81 | gfp_t gfp); |
| 82 | 82 | ||
| 83 | /* What was the inbound interface for this chunk? */ | 83 | /* What was the inbound interface for this chunk? */ |
| 84 | int sctp_chunk_iif(const struct sctp_chunk *chunk) | 84 | int sctp_chunk_iif(const struct sctp_chunk *chunk) |
| @@ -174,7 +174,7 @@ void sctp_init_cause(struct sctp_chunk *chunk, __u16 cause_code, | |||
| 174 | */ | 174 | */ |
| 175 | struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc, | 175 | struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc, |
| 176 | const struct sctp_bind_addr *bp, | 176 | const struct sctp_bind_addr *bp, |
| 177 | unsigned int __nocast gfp, int vparam_len) | 177 | gfp_t gfp, int vparam_len) |
| 178 | { | 178 | { |
| 179 | sctp_inithdr_t init; | 179 | sctp_inithdr_t init; |
| 180 | union sctp_params addrs; | 180 | union sctp_params addrs; |
| @@ -261,7 +261,7 @@ nodata: | |||
| 261 | 261 | ||
| 262 | struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc, | 262 | struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc, |
| 263 | const struct sctp_chunk *chunk, | 263 | const struct sctp_chunk *chunk, |
| 264 | unsigned int __nocast gfp, int unkparam_len) | 264 | gfp_t gfp, int unkparam_len) |
| 265 | { | 265 | { |
| 266 | sctp_inithdr_t initack; | 266 | sctp_inithdr_t initack; |
| 267 | struct sctp_chunk *retval; | 267 | struct sctp_chunk *retval; |
| @@ -1234,7 +1234,7 @@ void sctp_chunk_assign_tsn(struct sctp_chunk *chunk) | |||
| 1234 | /* Create a CLOSED association to use with an incoming packet. */ | 1234 | /* Create a CLOSED association to use with an incoming packet. */ |
| 1235 | struct sctp_association *sctp_make_temp_asoc(const struct sctp_endpoint *ep, | 1235 | struct sctp_association *sctp_make_temp_asoc(const struct sctp_endpoint *ep, |
| 1236 | struct sctp_chunk *chunk, | 1236 | struct sctp_chunk *chunk, |
| 1237 | unsigned int __nocast gfp) | 1237 | gfp_t gfp) |
| 1238 | { | 1238 | { |
| 1239 | struct sctp_association *asoc; | 1239 | struct sctp_association *asoc; |
| 1240 | struct sk_buff *skb; | 1240 | struct sk_buff *skb; |
| @@ -1349,7 +1349,7 @@ nodata: | |||
| 1349 | struct sctp_association *sctp_unpack_cookie( | 1349 | struct sctp_association *sctp_unpack_cookie( |
| 1350 | const struct sctp_endpoint *ep, | 1350 | const struct sctp_endpoint *ep, |
| 1351 | const struct sctp_association *asoc, | 1351 | const struct sctp_association *asoc, |
| 1352 | struct sctp_chunk *chunk, unsigned int __nocast gfp, | 1352 | struct sctp_chunk *chunk, gfp_t gfp, |
| 1353 | int *error, struct sctp_chunk **errp) | 1353 | int *error, struct sctp_chunk **errp) |
| 1354 | { | 1354 | { |
| 1355 | struct sctp_association *retval = NULL; | 1355 | struct sctp_association *retval = NULL; |
| @@ -1814,7 +1814,7 @@ int sctp_verify_init(const struct sctp_association *asoc, | |||
| 1814 | */ | 1814 | */ |
| 1815 | int sctp_process_init(struct sctp_association *asoc, sctp_cid_t cid, | 1815 | int sctp_process_init(struct sctp_association *asoc, sctp_cid_t cid, |
| 1816 | const union sctp_addr *peer_addr, | 1816 | const union sctp_addr *peer_addr, |
| 1817 | sctp_init_chunk_t *peer_init, unsigned int __nocast gfp) | 1817 | sctp_init_chunk_t *peer_init, gfp_t gfp) |
| 1818 | { | 1818 | { |
| 1819 | union sctp_params param; | 1819 | union sctp_params param; |
| 1820 | struct sctp_transport *transport; | 1820 | struct sctp_transport *transport; |
| @@ -1985,7 +1985,7 @@ nomem: | |||
| 1985 | static int sctp_process_param(struct sctp_association *asoc, | 1985 | static int sctp_process_param(struct sctp_association *asoc, |
| 1986 | union sctp_params param, | 1986 | union sctp_params param, |
| 1987 | const union sctp_addr *peer_addr, | 1987 | const union sctp_addr *peer_addr, |
| 1988 | unsigned int __nocast gfp) | 1988 | gfp_t gfp) |
| 1989 | { | 1989 | { |
| 1990 | union sctp_addr addr; | 1990 | union sctp_addr addr; |
| 1991 | int i; | 1991 | int i; |
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index 39c970b5b198..f84173ea8ec1 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c | |||
| @@ -63,7 +63,7 @@ static int sctp_cmd_interpreter(sctp_event_t event_type, | |||
| 63 | void *event_arg, | 63 | void *event_arg, |
| 64 | sctp_disposition_t status, | 64 | sctp_disposition_t status, |
| 65 | sctp_cmd_seq_t *commands, | 65 | sctp_cmd_seq_t *commands, |
| 66 | unsigned int __nocast gfp); | 66 | gfp_t gfp); |
| 67 | static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype, | 67 | static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype, |
| 68 | sctp_state_t state, | 68 | sctp_state_t state, |
| 69 | struct sctp_endpoint *ep, | 69 | struct sctp_endpoint *ep, |
| @@ -71,7 +71,7 @@ static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype, | |||
| 71 | void *event_arg, | 71 | void *event_arg, |
| 72 | sctp_disposition_t status, | 72 | sctp_disposition_t status, |
| 73 | sctp_cmd_seq_t *commands, | 73 | sctp_cmd_seq_t *commands, |
| 74 | unsigned int __nocast gfp); | 74 | gfp_t gfp); |
| 75 | 75 | ||
| 76 | /******************************************************************** | 76 | /******************************************************************** |
| 77 | * Helper functions | 77 | * Helper functions |
| @@ -498,7 +498,7 @@ static int sctp_cmd_process_init(sctp_cmd_seq_t *commands, | |||
| 498 | struct sctp_association *asoc, | 498 | struct sctp_association *asoc, |
| 499 | struct sctp_chunk *chunk, | 499 | struct sctp_chunk *chunk, |
| 500 | sctp_init_chunk_t *peer_init, | 500 | sctp_init_chunk_t *peer_init, |
| 501 | unsigned int __nocast gfp) | 501 | gfp_t gfp) |
| 502 | { | 502 | { |
| 503 | int error; | 503 | int error; |
| 504 | 504 | ||
| @@ -853,7 +853,7 @@ int sctp_do_sm(sctp_event_t event_type, sctp_subtype_t subtype, | |||
| 853 | struct sctp_endpoint *ep, | 853 | struct sctp_endpoint *ep, |
| 854 | struct sctp_association *asoc, | 854 | struct sctp_association *asoc, |
| 855 | void *event_arg, | 855 | void *event_arg, |
| 856 | unsigned int __nocast gfp) | 856 | gfp_t gfp) |
| 857 | { | 857 | { |
| 858 | sctp_cmd_seq_t commands; | 858 | sctp_cmd_seq_t commands; |
| 859 | const sctp_sm_table_entry_t *state_fn; | 859 | const sctp_sm_table_entry_t *state_fn; |
| @@ -898,7 +898,7 @@ static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype, | |||
| 898 | void *event_arg, | 898 | void *event_arg, |
| 899 | sctp_disposition_t status, | 899 | sctp_disposition_t status, |
| 900 | sctp_cmd_seq_t *commands, | 900 | sctp_cmd_seq_t *commands, |
| 901 | unsigned int __nocast gfp) | 901 | gfp_t gfp) |
| 902 | { | 902 | { |
| 903 | int error; | 903 | int error; |
| 904 | 904 | ||
| @@ -986,7 +986,7 @@ static int sctp_cmd_interpreter(sctp_event_t event_type, | |||
| 986 | void *event_arg, | 986 | void *event_arg, |
| 987 | sctp_disposition_t status, | 987 | sctp_disposition_t status, |
| 988 | sctp_cmd_seq_t *commands, | 988 | sctp_cmd_seq_t *commands, |
| 989 | unsigned int __nocast gfp) | 989 | gfp_t gfp) |
| 990 | { | 990 | { |
| 991 | int error = 0; | 991 | int error = 0; |
| 992 | int force; | 992 | int force; |
diff --git a/net/sctp/ssnmap.c b/net/sctp/ssnmap.c index 25037daf3fa0..cbe2513d2822 100644 --- a/net/sctp/ssnmap.c +++ b/net/sctp/ssnmap.c | |||
| @@ -58,7 +58,7 @@ static inline size_t sctp_ssnmap_size(__u16 in, __u16 out) | |||
| 58 | * Allocate room to store at least 'len' contiguous TSNs. | 58 | * Allocate room to store at least 'len' contiguous TSNs. |
| 59 | */ | 59 | */ |
| 60 | struct sctp_ssnmap *sctp_ssnmap_new(__u16 in, __u16 out, | 60 | struct sctp_ssnmap *sctp_ssnmap_new(__u16 in, __u16 out, |
| 61 | unsigned int __nocast gfp) | 61 | gfp_t gfp) |
| 62 | { | 62 | { |
| 63 | struct sctp_ssnmap *retval; | 63 | struct sctp_ssnmap *retval; |
| 64 | int size; | 64 | int size; |
diff --git a/net/sctp/transport.c b/net/sctp/transport.c index d2f04ebe5081..6bc27200e6ca 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c | |||
| @@ -57,7 +57,7 @@ | |||
| 57 | /* Initialize a new transport from provided memory. */ | 57 | /* Initialize a new transport from provided memory. */ |
| 58 | static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, | 58 | static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, |
| 59 | const union sctp_addr *addr, | 59 | const union sctp_addr *addr, |
| 60 | unsigned int __nocast gfp) | 60 | gfp_t gfp) |
| 61 | { | 61 | { |
| 62 | /* Copy in the address. */ | 62 | /* Copy in the address. */ |
| 63 | peer->ipaddr = *addr; | 63 | peer->ipaddr = *addr; |
| @@ -122,7 +122,7 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, | |||
| 122 | 122 | ||
| 123 | /* Allocate and initialize a new transport. */ | 123 | /* Allocate and initialize a new transport. */ |
| 124 | struct sctp_transport *sctp_transport_new(const union sctp_addr *addr, | 124 | struct sctp_transport *sctp_transport_new(const union sctp_addr *addr, |
| 125 | unsigned int __nocast gfp) | 125 | gfp_t gfp) |
| 126 | { | 126 | { |
| 127 | struct sctp_transport *transport; | 127 | struct sctp_transport *transport; |
| 128 | 128 | ||
diff --git a/net/sctp/ulpevent.c b/net/sctp/ulpevent.c index 0abd5101107c..057e7fac3af0 100644 --- a/net/sctp/ulpevent.c +++ b/net/sctp/ulpevent.c | |||
| @@ -74,7 +74,7 @@ SCTP_STATIC void sctp_ulpevent_init(struct sctp_ulpevent *event, int msg_flags) | |||
| 74 | 74 | ||
| 75 | /* Create a new sctp_ulpevent. */ | 75 | /* Create a new sctp_ulpevent. */ |
| 76 | SCTP_STATIC struct sctp_ulpevent *sctp_ulpevent_new(int size, int msg_flags, | 76 | SCTP_STATIC struct sctp_ulpevent *sctp_ulpevent_new(int size, int msg_flags, |
| 77 | unsigned int __nocast gfp) | 77 | gfp_t gfp) |
| 78 | { | 78 | { |
| 79 | struct sctp_ulpevent *event; | 79 | struct sctp_ulpevent *event; |
| 80 | struct sk_buff *skb; | 80 | struct sk_buff *skb; |
| @@ -136,7 +136,7 @@ static inline void sctp_ulpevent_release_owner(struct sctp_ulpevent *event) | |||
| 136 | struct sctp_ulpevent *sctp_ulpevent_make_assoc_change( | 136 | struct sctp_ulpevent *sctp_ulpevent_make_assoc_change( |
| 137 | const struct sctp_association *asoc, | 137 | const struct sctp_association *asoc, |
| 138 | __u16 flags, __u16 state, __u16 error, __u16 outbound, | 138 | __u16 flags, __u16 state, __u16 error, __u16 outbound, |
| 139 | __u16 inbound, unsigned int __nocast gfp) | 139 | __u16 inbound, gfp_t gfp) |
| 140 | { | 140 | { |
| 141 | struct sctp_ulpevent *event; | 141 | struct sctp_ulpevent *event; |
| 142 | struct sctp_assoc_change *sac; | 142 | struct sctp_assoc_change *sac; |
| @@ -237,7 +237,7 @@ fail: | |||
| 237 | struct sctp_ulpevent *sctp_ulpevent_make_peer_addr_change( | 237 | struct sctp_ulpevent *sctp_ulpevent_make_peer_addr_change( |
| 238 | const struct sctp_association *asoc, | 238 | const struct sctp_association *asoc, |
| 239 | const struct sockaddr_storage *aaddr, | 239 | const struct sockaddr_storage *aaddr, |
| 240 | int flags, int state, int error, unsigned int __nocast gfp) | 240 | int flags, int state, int error, gfp_t gfp) |
| 241 | { | 241 | { |
| 242 | struct sctp_ulpevent *event; | 242 | struct sctp_ulpevent *event; |
| 243 | struct sctp_paddr_change *spc; | 243 | struct sctp_paddr_change *spc; |
| @@ -350,7 +350,7 @@ fail: | |||
| 350 | */ | 350 | */ |
| 351 | struct sctp_ulpevent *sctp_ulpevent_make_remote_error( | 351 | struct sctp_ulpevent *sctp_ulpevent_make_remote_error( |
| 352 | const struct sctp_association *asoc, struct sctp_chunk *chunk, | 352 | const struct sctp_association *asoc, struct sctp_chunk *chunk, |
| 353 | __u16 flags, unsigned int __nocast gfp) | 353 | __u16 flags, gfp_t gfp) |
| 354 | { | 354 | { |
| 355 | struct sctp_ulpevent *event; | 355 | struct sctp_ulpevent *event; |
| 356 | struct sctp_remote_error *sre; | 356 | struct sctp_remote_error *sre; |
| @@ -448,7 +448,7 @@ fail: | |||
| 448 | */ | 448 | */ |
| 449 | struct sctp_ulpevent *sctp_ulpevent_make_send_failed( | 449 | struct sctp_ulpevent *sctp_ulpevent_make_send_failed( |
| 450 | const struct sctp_association *asoc, struct sctp_chunk *chunk, | 450 | const struct sctp_association *asoc, struct sctp_chunk *chunk, |
| 451 | __u16 flags, __u32 error, unsigned int __nocast gfp) | 451 | __u16 flags, __u32 error, gfp_t gfp) |
| 452 | { | 452 | { |
| 453 | struct sctp_ulpevent *event; | 453 | struct sctp_ulpevent *event; |
| 454 | struct sctp_send_failed *ssf; | 454 | struct sctp_send_failed *ssf; |
| @@ -557,7 +557,7 @@ fail: | |||
| 557 | */ | 557 | */ |
| 558 | struct sctp_ulpevent *sctp_ulpevent_make_shutdown_event( | 558 | struct sctp_ulpevent *sctp_ulpevent_make_shutdown_event( |
| 559 | const struct sctp_association *asoc, | 559 | const struct sctp_association *asoc, |
| 560 | __u16 flags, unsigned int __nocast gfp) | 560 | __u16 flags, gfp_t gfp) |
| 561 | { | 561 | { |
| 562 | struct sctp_ulpevent *event; | 562 | struct sctp_ulpevent *event; |
| 563 | struct sctp_shutdown_event *sse; | 563 | struct sctp_shutdown_event *sse; |
| @@ -620,7 +620,7 @@ fail: | |||
| 620 | * 5.3.1.6 SCTP_ADAPTION_INDICATION | 620 | * 5.3.1.6 SCTP_ADAPTION_INDICATION |
| 621 | */ | 621 | */ |
| 622 | struct sctp_ulpevent *sctp_ulpevent_make_adaption_indication( | 622 | struct sctp_ulpevent *sctp_ulpevent_make_adaption_indication( |
| 623 | const struct sctp_association *asoc, unsigned int __nocast gfp) | 623 | const struct sctp_association *asoc, gfp_t gfp) |
| 624 | { | 624 | { |
| 625 | struct sctp_ulpevent *event; | 625 | struct sctp_ulpevent *event; |
| 626 | struct sctp_adaption_event *sai; | 626 | struct sctp_adaption_event *sai; |
| @@ -657,7 +657,7 @@ fail: | |||
| 657 | */ | 657 | */ |
| 658 | struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc, | 658 | struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc, |
| 659 | struct sctp_chunk *chunk, | 659 | struct sctp_chunk *chunk, |
| 660 | unsigned int __nocast gfp) | 660 | gfp_t gfp) |
| 661 | { | 661 | { |
| 662 | struct sctp_ulpevent *event = NULL; | 662 | struct sctp_ulpevent *event = NULL; |
| 663 | struct sk_buff *skb; | 663 | struct sk_buff *skb; |
| @@ -719,7 +719,7 @@ fail: | |||
| 719 | */ | 719 | */ |
| 720 | struct sctp_ulpevent *sctp_ulpevent_make_pdapi( | 720 | struct sctp_ulpevent *sctp_ulpevent_make_pdapi( |
| 721 | const struct sctp_association *asoc, __u32 indication, | 721 | const struct sctp_association *asoc, __u32 indication, |
| 722 | unsigned int __nocast gfp) | 722 | gfp_t gfp) |
| 723 | { | 723 | { |
| 724 | struct sctp_ulpevent *event; | 724 | struct sctp_ulpevent *event; |
| 725 | struct sctp_pdapi_event *pd; | 725 | struct sctp_pdapi_event *pd; |
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index ec2c857eae7f..2080b2d28c98 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c | |||
| @@ -100,7 +100,7 @@ void sctp_ulpq_free(struct sctp_ulpq *ulpq) | |||
| 100 | 100 | ||
| 101 | /* Process an incoming DATA chunk. */ | 101 | /* Process an incoming DATA chunk. */ |
| 102 | int sctp_ulpq_tail_data(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, | 102 | int sctp_ulpq_tail_data(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, |
| 103 | unsigned int __nocast gfp) | 103 | gfp_t gfp) |
| 104 | { | 104 | { |
| 105 | struct sk_buff_head temp; | 105 | struct sk_buff_head temp; |
| 106 | sctp_data_chunk_t *hdr; | 106 | sctp_data_chunk_t *hdr; |
| @@ -792,7 +792,7 @@ static __u16 sctp_ulpq_renege_frags(struct sctp_ulpq *ulpq, __u16 needed) | |||
| 792 | /* Partial deliver the first message as there is pressure on rwnd. */ | 792 | /* Partial deliver the first message as there is pressure on rwnd. */ |
| 793 | void sctp_ulpq_partial_delivery(struct sctp_ulpq *ulpq, | 793 | void sctp_ulpq_partial_delivery(struct sctp_ulpq *ulpq, |
| 794 | struct sctp_chunk *chunk, | 794 | struct sctp_chunk *chunk, |
| 795 | unsigned int __nocast gfp) | 795 | gfp_t gfp) |
| 796 | { | 796 | { |
| 797 | struct sctp_ulpevent *event; | 797 | struct sctp_ulpevent *event; |
| 798 | struct sctp_association *asoc; | 798 | struct sctp_association *asoc; |
| @@ -816,7 +816,7 @@ void sctp_ulpq_partial_delivery(struct sctp_ulpq *ulpq, | |||
| 816 | 816 | ||
| 817 | /* Renege some packets to make room for an incoming chunk. */ | 817 | /* Renege some packets to make room for an incoming chunk. */ |
| 818 | void sctp_ulpq_renege(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, | 818 | void sctp_ulpq_renege(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, |
| 819 | unsigned int __nocast gfp) | 819 | gfp_t gfp) |
| 820 | { | 820 | { |
| 821 | struct sctp_association *asoc; | 821 | struct sctp_association *asoc; |
| 822 | __u16 needed, freed; | 822 | __u16 needed, freed; |
| @@ -855,7 +855,7 @@ void sctp_ulpq_renege(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, | |||
| 855 | /* Notify the application if an association is aborted and in | 855 | /* Notify the application if an association is aborted and in |
| 856 | * partial delivery mode. Send up any pending received messages. | 856 | * partial delivery mode. Send up any pending received messages. |
| 857 | */ | 857 | */ |
| 858 | void sctp_ulpq_abort_pd(struct sctp_ulpq *ulpq, unsigned int __nocast gfp) | 858 | void sctp_ulpq_abort_pd(struct sctp_ulpq *ulpq, gfp_t gfp) |
| 859 | { | 859 | { |
| 860 | struct sctp_ulpevent *ev = NULL; | 860 | struct sctp_ulpevent *ev = NULL; |
| 861 | struct sock *sk; | 861 | struct sock *sk; |
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index ade730eaf401..54e60a657500 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c | |||
| @@ -719,7 +719,7 @@ static void rpc_async_schedule(void *arg) | |||
| 719 | void * | 719 | void * |
| 720 | rpc_malloc(struct rpc_task *task, size_t size) | 720 | rpc_malloc(struct rpc_task *task, size_t size) |
| 721 | { | 721 | { |
| 722 | unsigned int __nocast gfp; | 722 | gfp_t gfp; |
| 723 | 723 | ||
| 724 | if (task->tk_flags & RPC_TASK_SWAPPER) | 724 | if (task->tk_flags & RPC_TASK_SWAPPER) |
| 725 | gfp = GFP_ATOMIC; | 725 | gfp = GFP_ATOMIC; |
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 061b44cc2451..cbb0ba34a600 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
| @@ -225,7 +225,7 @@ expired: | |||
| 225 | * SPD calls. | 225 | * SPD calls. |
| 226 | */ | 226 | */ |
| 227 | 227 | ||
| 228 | struct xfrm_policy *xfrm_policy_alloc(unsigned int __nocast gfp) | 228 | struct xfrm_policy *xfrm_policy_alloc(gfp_t gfp) |
| 229 | { | 229 | { |
| 230 | struct xfrm_policy *policy; | 230 | struct xfrm_policy *policy; |
| 231 | 231 | ||
diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c index 91124ddbdda9..e72cec77f0db 100644 --- a/sound/core/memalloc.c +++ b/sound/core/memalloc.c | |||
| @@ -106,7 +106,7 @@ struct snd_mem_list { | |||
| 106 | 106 | ||
| 107 | static void *snd_dma_hack_alloc_coherent(struct device *dev, size_t size, | 107 | static void *snd_dma_hack_alloc_coherent(struct device *dev, size_t size, |
| 108 | dma_addr_t *dma_handle, | 108 | dma_addr_t *dma_handle, |
| 109 | unsigned int __nocast flags) | 109 | gfp_t flags) |
| 110 | { | 110 | { |
| 111 | void *ret; | 111 | void *ret; |
| 112 | u64 dma_mask, coherent_dma_mask; | 112 | u64 dma_mask, coherent_dma_mask; |
diff --git a/sound/core/memory.c b/sound/core/memory.c index 8fa888fc53a0..7d8e2eebba51 100644 --- a/sound/core/memory.c +++ b/sound/core/memory.c | |||
| @@ -89,7 +89,7 @@ void snd_memory_done(void) | |||
| 89 | } | 89 | } |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | static void *__snd_kmalloc(size_t size, unsigned int __nocast flags, void *caller) | 92 | static void *__snd_kmalloc(size_t size, gfp_t flags, void *caller) |
| 93 | { | 93 | { |
| 94 | unsigned long cpu_flags; | 94 | unsigned long cpu_flags; |
| 95 | struct snd_alloc_track *t; | 95 | struct snd_alloc_track *t; |
| @@ -111,12 +111,12 @@ static void *__snd_kmalloc(size_t size, unsigned int __nocast flags, void *calle | |||
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | #define _snd_kmalloc(size, flags) __snd_kmalloc((size), (flags), __builtin_return_address(0)); | 113 | #define _snd_kmalloc(size, flags) __snd_kmalloc((size), (flags), __builtin_return_address(0)); |
| 114 | void *snd_hidden_kmalloc(size_t size, unsigned int __nocast flags) | 114 | void *snd_hidden_kmalloc(size_t size, gfp_t flags) |
| 115 | { | 115 | { |
| 116 | return _snd_kmalloc(size, flags); | 116 | return _snd_kmalloc(size, flags); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void *snd_hidden_kzalloc(size_t size, unsigned int __nocast flags) | 119 | void *snd_hidden_kzalloc(size_t size, gfp_t flags) |
| 120 | { | 120 | { |
| 121 | void *ret = _snd_kmalloc(size, flags); | 121 | void *ret = _snd_kmalloc(size, flags); |
| 122 | if (ret) | 122 | if (ret) |
| @@ -125,7 +125,7 @@ void *snd_hidden_kzalloc(size_t size, unsigned int __nocast flags) | |||
| 125 | } | 125 | } |
| 126 | EXPORT_SYMBOL(snd_hidden_kzalloc); | 126 | EXPORT_SYMBOL(snd_hidden_kzalloc); |
| 127 | 127 | ||
| 128 | void *snd_hidden_kcalloc(size_t n, size_t size, unsigned int __nocast flags) | 128 | void *snd_hidden_kcalloc(size_t n, size_t size, gfp_t flags) |
| 129 | { | 129 | { |
| 130 | void *ret = NULL; | 130 | void *ret = NULL; |
| 131 | if (n != 0 && size > INT_MAX / n) | 131 | if (n != 0 && size > INT_MAX / n) |
| @@ -190,7 +190,7 @@ void snd_hidden_vfree(void *obj) | |||
| 190 | snd_wrapper_vfree(obj); | 190 | snd_wrapper_vfree(obj); |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | char *snd_hidden_kstrdup(const char *s, unsigned int __nocast flags) | 193 | char *snd_hidden_kstrdup(const char *s, gfp_t flags) |
| 194 | { | 194 | { |
| 195 | int len; | 195 | int len; |
| 196 | char *buf; | 196 | char *buf; |
diff --git a/sound/core/seq/instr/ainstr_iw.c b/sound/core/seq/instr/ainstr_iw.c index b3cee092b1a4..67c24c8e8e7b 100644 --- a/sound/core/seq/instr/ainstr_iw.c +++ b/sound/core/seq/instr/ainstr_iw.c | |||
| @@ -58,7 +58,7 @@ static int snd_seq_iwffff_copy_env_from_stream(__u32 req_stype, | |||
| 58 | iwffff_xenv_t *ex, | 58 | iwffff_xenv_t *ex, |
| 59 | char __user **data, | 59 | char __user **data, |
| 60 | long *len, | 60 | long *len, |
| 61 | unsigned int __nocast gfp_mask) | 61 | gfp_t gfp_mask) |
| 62 | { | 62 | { |
| 63 | __u32 stype; | 63 | __u32 stype; |
| 64 | iwffff_env_record_t *rp, *rp_last; | 64 | iwffff_env_record_t *rp, *rp_last; |
diff --git a/sound/core/wrappers.c b/sound/core/wrappers.c index 508e6d67ee19..296b716f1376 100644 --- a/sound/core/wrappers.c +++ b/sound/core/wrappers.c | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | #include <linux/fs.h> | 27 | #include <linux/fs.h> |
| 28 | 28 | ||
| 29 | #ifdef CONFIG_SND_DEBUG_MEMORY | 29 | #ifdef CONFIG_SND_DEBUG_MEMORY |
| 30 | void *snd_wrapper_kmalloc(size_t size, unsigned int __nocast flags) | 30 | void *snd_wrapper_kmalloc(size_t size, gfp_t flags) |
| 31 | { | 31 | { |
| 32 | return kmalloc(size, flags); | 32 | return kmalloc(size, flags); |
| 33 | } | 33 | } |
