public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Greg KH <greg@kroah•com>, Arnd Bergmann <arnd@arndb•de>,
	Jens Axboe <axboe@kernel•dk>
Cc: linux-next@vger•kernel.org, linux-kernel@vger•kernel.org,
	Christoph Hellwig <hch@lst•de>,
	Rob Ward <robert.ward114@googlemail•com>
Subject: linux-next: manual merge of the char-misc tree with the block tree
Date: Wed, 21 Jan 2015 16:40:56 +1100	[thread overview]
Message-ID: <20150121164056.2a21289c@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 2677 bytes --]

Hi all,

Today's linux-next merge of the char-misc tree got a conflict in
drivers/char/mem.c between commit b4caecd48005 ("fs: introduce
f_op->mmap_capabilities for nommu mmap support") from the block tree
and commit 73f0718e74e2 ("drivers: char: mem: Make /dev/mem an optional
device") from the char-misc tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au

diff --cc drivers/char/mem.c
index 9a6b63783a94,080273287c48..000000000000
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@@ -732,25 -717,17 +728,23 @@@ static const struct file_operations __m
  	.write		= write_mem,
  	.mmap		= mmap_mem,
  	.open		= open_mem,
 +#ifndef CONFIG_MMU
  	.get_unmapped_area = get_unmapped_area_mem,
 +	.mmap_capabilities = memory_mmap_capabilities,
 +#endif
  };
  
- #ifdef CONFIG_DEVKMEM
- static const struct file_operations kmem_fops = {
+ static const struct file_operations __maybe_unused kmem_fops = {
  	.llseek		= memory_lseek,
  	.read		= read_kmem,
  	.write		= write_kmem,
  	.mmap		= mmap_kmem,
  	.open		= open_kmem,
 +#ifndef CONFIG_MMU
  	.get_unmapped_area = get_unmapped_area_mem,
 +	.mmap_capabilities = memory_mmap_capabilities,
 +#endif
  };
- #endif
  
  static const struct file_operations null_fops = {
  	.llseek		= null_lseek,
@@@ -793,22 -775,24 +785,24 @@@ static const struct memdev 
  	const char *name;
  	umode_t mode;
  	const struct file_operations *fops;
 -	struct backing_dev_info *dev_info;
 +	fmode_t fmode;
  } devlist[] = {
+ #ifdef CONFIG_DEVMEM
 -	 [1] = { "mem", 0, &mem_fops, &directly_mappable_cdev_bdi },
 +	 [1] = { "mem", 0, &mem_fops, FMODE_UNSIGNED_OFFSET },
+ #endif
  #ifdef CONFIG_DEVKMEM
 -	 [2] = { "kmem", 0, &kmem_fops, &directly_mappable_cdev_bdi },
 +	 [2] = { "kmem", 0, &kmem_fops, FMODE_UNSIGNED_OFFSET },
  #endif
 -	 [3] = { "null", 0666, &null_fops, NULL },
 +	 [3] = { "null", 0666, &null_fops, 0 },
  #ifdef CONFIG_DEVPORT
 -	 [4] = { "port", 0, &port_fops, NULL },
 +	 [4] = { "port", 0, &port_fops, 0 },
  #endif
 -	 [5] = { "zero", 0666, &zero_fops, &zero_bdi },
 -	 [7] = { "full", 0666, &full_fops, NULL },
 -	 [8] = { "random", 0666, &random_fops, NULL },
 -	 [9] = { "urandom", 0666, &urandom_fops, NULL },
 +	 [5] = { "zero", 0666, &zero_fops, 0 },
 +	 [7] = { "full", 0666, &full_fops, 0 },
 +	 [8] = { "random", 0666, &random_fops, 0 },
 +	 [9] = { "urandom", 0666, &urandom_fops, 0 },
  #ifdef CONFIG_PRINTK
 -	[11] = { "kmsg", 0644, &kmsg_fops, NULL },
 +	[11] = { "kmsg", 0644, &kmsg_fops, 0 },
  #endif
  };
  

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

                 reply	other threads:[~2015-01-21  5:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20150121164056.2a21289c@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=arnd@arndb$(echo .)de \
    --cc=axboe@kernel$(echo .)dk \
    --cc=greg@kroah$(echo .)com \
    --cc=hch@lst$(echo .)de \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=robert.ward114@googlemail$(echo .)com \
    /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