public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Roland Dreier <rdreier@cisco•com>, linux-rmda@vger•kernel.org
Cc: linux-next@vger•kernel.org, linux-kernel@vger•kernel.org,
	Al Viro <viro@zeniv•linux.org.uk>
Subject: linux-next: manual merge of the infiniband tree with the vfs tree
Date: Thu, 25 Feb 2010 12:52:24 +1100	[thread overview]
Message-ID: <20100225125224.af78cc78.sfr@canb.auug.org.au> (raw)

Hi all,

Today's linux-next merge of the infiniband tree got a conflict in
drivers/infiniband/core/uverbs_main.c between commit
ce916e2b935f8b3402da1457ff23b9f9f786c09b ("switch infiniband uverbs to
anon_inodes") from the vfs tree and commit
055422ddbb0a7610c5f57a056743d7336a39e90f ("IB/uverbs: Convert *cdev to
cdev in struct ib_uverbs_device") from the infiniband tree.

Just context changes.  I fixed it up (see below) and can carry the fix as
necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au

diff --cc drivers/infiniband/core/uverbs_main.c
index 810f277,dbf0451..0000000
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@@ -41,9 -41,8 +41,8 @@@
  #include <linux/fs.h>
  #include <linux/poll.h>
  #include <linux/sched.h>
 +#include <linux/anon_inodes.h>
  #include <linux/file.h>
- #include <linux/cdev.h>
 -#include <linux/mount.h>
  
  #include <asm/uaccess.h>
  
@@@ -79,36 -79,38 +77,36 @@@ static DECLARE_BITMAP(dev_map, IB_UVERB
  static ssize_t (*uverbs_cmd_table[])(struct ib_uverbs_file *file,
  				     const char __user *buf, int in_len,
  				     int out_len) = {
- 	[IB_USER_VERBS_CMD_GET_CONTEXT]   	= ib_uverbs_get_context,
- 	[IB_USER_VERBS_CMD_QUERY_DEVICE]  	= ib_uverbs_query_device,
- 	[IB_USER_VERBS_CMD_QUERY_PORT]    	= ib_uverbs_query_port,
- 	[IB_USER_VERBS_CMD_ALLOC_PD]      	= ib_uverbs_alloc_pd,
- 	[IB_USER_VERBS_CMD_DEALLOC_PD]    	= ib_uverbs_dealloc_pd,
- 	[IB_USER_VERBS_CMD_REG_MR]        	= ib_uverbs_reg_mr,
- 	[IB_USER_VERBS_CMD_DEREG_MR]      	= ib_uverbs_dereg_mr,
+ 	[IB_USER_VERBS_CMD_GET_CONTEXT]		= ib_uverbs_get_context,
+ 	[IB_USER_VERBS_CMD_QUERY_DEVICE]	= ib_uverbs_query_device,
+ 	[IB_USER_VERBS_CMD_QUERY_PORT]		= ib_uverbs_query_port,
+ 	[IB_USER_VERBS_CMD_ALLOC_PD]		= ib_uverbs_alloc_pd,
+ 	[IB_USER_VERBS_CMD_DEALLOC_PD]		= ib_uverbs_dealloc_pd,
+ 	[IB_USER_VERBS_CMD_REG_MR]		= ib_uverbs_reg_mr,
+ 	[IB_USER_VERBS_CMD_DEREG_MR]		= ib_uverbs_dereg_mr,
  	[IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL] = ib_uverbs_create_comp_channel,
- 	[IB_USER_VERBS_CMD_CREATE_CQ]     	= ib_uverbs_create_cq,
- 	[IB_USER_VERBS_CMD_RESIZE_CQ]     	= ib_uverbs_resize_cq,
- 	[IB_USER_VERBS_CMD_POLL_CQ]     	= ib_uverbs_poll_cq,
- 	[IB_USER_VERBS_CMD_REQ_NOTIFY_CQ]     	= ib_uverbs_req_notify_cq,
- 	[IB_USER_VERBS_CMD_DESTROY_CQ]    	= ib_uverbs_destroy_cq,
- 	[IB_USER_VERBS_CMD_CREATE_QP]     	= ib_uverbs_create_qp,
- 	[IB_USER_VERBS_CMD_QUERY_QP]     	= ib_uverbs_query_qp,
- 	[IB_USER_VERBS_CMD_MODIFY_QP]     	= ib_uverbs_modify_qp,
- 	[IB_USER_VERBS_CMD_DESTROY_QP]    	= ib_uverbs_destroy_qp,
- 	[IB_USER_VERBS_CMD_POST_SEND]    	= ib_uverbs_post_send,
- 	[IB_USER_VERBS_CMD_POST_RECV]    	= ib_uverbs_post_recv,
- 	[IB_USER_VERBS_CMD_POST_SRQ_RECV]    	= ib_uverbs_post_srq_recv,
- 	[IB_USER_VERBS_CMD_CREATE_AH]    	= ib_uverbs_create_ah,
- 	[IB_USER_VERBS_CMD_DESTROY_AH]    	= ib_uverbs_destroy_ah,
- 	[IB_USER_VERBS_CMD_ATTACH_MCAST]  	= ib_uverbs_attach_mcast,
- 	[IB_USER_VERBS_CMD_DETACH_MCAST]  	= ib_uverbs_detach_mcast,
- 	[IB_USER_VERBS_CMD_CREATE_SRQ]    	= ib_uverbs_create_srq,
- 	[IB_USER_VERBS_CMD_MODIFY_SRQ]    	= ib_uverbs_modify_srq,
- 	[IB_USER_VERBS_CMD_QUERY_SRQ]     	= ib_uverbs_query_srq,
- 	[IB_USER_VERBS_CMD_DESTROY_SRQ]   	= ib_uverbs_destroy_srq,
+ 	[IB_USER_VERBS_CMD_CREATE_CQ]		= ib_uverbs_create_cq,
+ 	[IB_USER_VERBS_CMD_RESIZE_CQ]		= ib_uverbs_resize_cq,
+ 	[IB_USER_VERBS_CMD_POLL_CQ]		= ib_uverbs_poll_cq,
+ 	[IB_USER_VERBS_CMD_REQ_NOTIFY_CQ]	= ib_uverbs_req_notify_cq,
+ 	[IB_USER_VERBS_CMD_DESTROY_CQ]		= ib_uverbs_destroy_cq,
+ 	[IB_USER_VERBS_CMD_CREATE_QP]		= ib_uverbs_create_qp,
+ 	[IB_USER_VERBS_CMD_QUERY_QP]		= ib_uverbs_query_qp,
+ 	[IB_USER_VERBS_CMD_MODIFY_QP]		= ib_uverbs_modify_qp,
+ 	[IB_USER_VERBS_CMD_DESTROY_QP]		= ib_uverbs_destroy_qp,
+ 	[IB_USER_VERBS_CMD_POST_SEND]		= ib_uverbs_post_send,
+ 	[IB_USER_VERBS_CMD_POST_RECV]		= ib_uverbs_post_recv,
+ 	[IB_USER_VERBS_CMD_POST_SRQ_RECV]	= ib_uverbs_post_srq_recv,
+ 	[IB_USER_VERBS_CMD_CREATE_AH]		= ib_uverbs_create_ah,
+ 	[IB_USER_VERBS_CMD_DESTROY_AH]		= ib_uverbs_destroy_ah,
+ 	[IB_USER_VERBS_CMD_ATTACH_MCAST]	= ib_uverbs_attach_mcast,
+ 	[IB_USER_VERBS_CMD_DETACH_MCAST]	= ib_uverbs_detach_mcast,
+ 	[IB_USER_VERBS_CMD_CREATE_SRQ]		= ib_uverbs_create_srq,
+ 	[IB_USER_VERBS_CMD_MODIFY_SRQ]		= ib_uverbs_modify_srq,
+ 	[IB_USER_VERBS_CMD_QUERY_SRQ]		= ib_uverbs_query_srq,
+ 	[IB_USER_VERBS_CMD_DESTROY_SRQ]		= ib_uverbs_destroy_srq,
  };
  
 -static struct vfsmount *uverbs_event_mnt;
 -
  static void ib_uverbs_add_one(struct ib_device *device);
  static void ib_uverbs_remove_one(struct ib_device *device);
  
@@@ -838,8 -933,12 +867,10 @@@ out
  static void __exit ib_uverbs_cleanup(void)
  {
  	ib_unregister_client(&uverbs_client);
 -	mntput(uverbs_event_mnt);
 -	unregister_filesystem(&uverbs_event_fs);
  	class_destroy(uverbs_class);
  	unregister_chrdev_region(IB_UVERBS_BASE_DEV, IB_UVERBS_MAX_DEVICES);
+ 	if (overflow_maj)
+ 		unregister_chrdev_region(overflow_maj, IB_UVERBS_MAX_DEVICES);
  	idr_destroy(&ib_uverbs_pd_idr);
  	idr_destroy(&ib_uverbs_mr_idr);
  	idr_destroy(&ib_uverbs_mw_idr);

             reply	other threads:[~2010-02-25  1:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  1:52 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-02-26  2:05 linux-next: manual merge of the infiniband tree with the vfs tree Stephen Rothwell
     [not found] ` <20100226130518.94c5a5f8.sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
2010-02-26 22:02   ` Roland Dreier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100225125224.af78cc78.sfr@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=linux-rmda@vger$(echo .)kernel.org \
    --cc=rdreier@cisco$(echo .)com \
    --cc=viro@zeniv$(echo .)linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox