mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: yalin wang <yalin.wang2010@gmail.com>
Cc: kbuild-all@01.org, yalin.wang2010@gmail.com,
	gregkh@linuxfoundation.org, peter.senna@gmail.com,
	joe@perches.com, dan.carpenter@oracle.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] goldfish: fix goldfish_pipe driver BUG
Date: Sat, 7 Nov 2015 00:43:19 +0800	[thread overview]
Message-ID: <201511070024.nxOI57e5%fengguang.wu@intel.com> (raw)
In-Reply-To: <1446825115-23505-1-git-send-email-yalin.wang2010@gmail.com>

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

Hi yalin,

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v4.3 next-20151106]

url:    https://github.com/0day-ci/linux/commits/yalin-wang/goldfish-fix-goldfish_pipe-driver-BUG/20151106-235541
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_pipe_read_write':
>> drivers/platform/goldfish/goldfish_pipe.c:340:7: error: implicit declaration of function 'get_user_pages_unlocked' [-Werror=implicit-function-declaration]
      if (get_user_pages_unlocked(current, current->active_mm,
          ^
>> drivers/platform/goldfish/goldfish_pipe.c:343:36: error: implicit declaration of function 'offset_in_page' [-Werror=implicit-function-declaration]
      phys_addr = page_to_phys(page) + offset_in_page(address);
                                       ^
>> drivers/platform/goldfish/goldfish_pipe.c:355:3: error: implicit declaration of function 'put_page' [-Werror=implicit-function-declaration]
      put_page(page);
      ^
   cc1: some warnings being treated as errors

vim +/get_user_pages_unlocked +340 drivers/platform/goldfish/goldfish_pipe.c

   334				if (__put_user(0, (char __user *)address)) {
   335					if (!ret)
   336						ret = -EFAULT;
   337					break;
   338				}
   339			}
 > 340			if (get_user_pages_unlocked(current, current->active_mm,
   341						address, 1, !is_write, 0, &page) != 1)
   342				return -EINVAL;
 > 343			phys_addr = page_to_phys(page) + offset_in_page(address);
   344			/* Now, try to transfer the bytes in the current page */
   345			spin_lock_irqsave(&dev->lock, irq_flags);
   346			gf_write_ptr(pipe, dev->base + PIPE_REG_CHANNEL,
   347				     dev->base + PIPE_REG_CHANNEL_HIGH);
   348			writel(avail, dev->base + PIPE_REG_SIZE);
   349			gf_write_ptr((void *)phys_addr, dev->base + PIPE_REG_ADDRESS,
   350				     dev->base + PIPE_REG_ADDRESS_HIGH);
   351			writel(CMD_WRITE_BUFFER + cmd_offset,
   352					dev->base + PIPE_REG_COMMAND);
   353			status = readl(dev->base + PIPE_REG_STATUS);
   354			spin_unlock_irqrestore(&dev->lock, irq_flags);
 > 355			put_page(page);
   356			if (status > 0) { /* Correct transfer */
   357				ret += status;
   358				address += status;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 51752 bytes --]

      reply	other threads:[~2015-11-06 16:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-06 15:51 yalin wang
2015-11-06 16:43 ` kbuild test robot [this message]

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=201511070024.nxOI57e5%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=dan.carpenter@oracle.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=joe@perches.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter.senna@gmail.com \
    --cc=yalin.wang2010@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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

all inboxes | Powered by JetHome®