From: kbuild test robot <lkp@intel.com>
To: Anatol Pomozov <anatol.pomozov@gmail.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
broonie@kernel.org, Anatol Pomozov <anatol.pomozov@gmail.com>
Subject: Re: [PATCH] regmap: Add a config option for making regmap debugfs writable
Date: Wed, 14 Oct 2015 04:00:15 +0800 [thread overview]
Message-ID: <201510140347.sI6XsJio%fengguang.wu@intel.com> (raw)
In-Reply-To: <1444758415-5190-1-git-send-email-anatol.pomozov@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3777 bytes --]
Hi Anatol,
[auto build test WARNING on regmap/for-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Anatol-Pomozov/regmap-Add-a-config-option-for-making-regmap-debugfs-writable/20151014-014929
config: mn10300-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=mn10300
All warnings (new ones prefixed by >>):
In file included from include/linux/list.h:8:0,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from drivers/base/regmap/regmap-debugfs.c:13:
drivers/base/regmap/regmap-debugfs.c: In function 'regmap_map_write_file':
include/linux/kernel.h:722:17: warning: comparison of distinct pointer types lacks a cast
(void) (&_min1 == &_min2); \
^
>> drivers/base/regmap/regmap-debugfs.c:280:13: note: in expansion of macro 'min'
buf_size = min(count, (sizeof(buf)-1));
^
vim +/min +280 drivers/base/regmap/regmap-debugfs.c
09c6ecd3 Dimitris Papastamos 2012-02-22 264 * This can be dangerous especially when we have clients such as
09c6ecd3 Dimitris Papastamos 2012-02-22 265 * PMICs, therefore don't provide any real compile time configuration option
09c6ecd3 Dimitris Papastamos 2012-02-22 266 * for this feature, people who want to use this will need to modify
09c6ecd3 Dimitris Papastamos 2012-02-22 267 * the source code directly.
09c6ecd3 Dimitris Papastamos 2012-02-22 268 */
09c6ecd3 Dimitris Papastamos 2012-02-22 269 static ssize_t regmap_map_write_file(struct file *file,
09c6ecd3 Dimitris Papastamos 2012-02-22 270 const char __user *user_buf,
09c6ecd3 Dimitris Papastamos 2012-02-22 271 size_t count, loff_t *ppos)
09c6ecd3 Dimitris Papastamos 2012-02-22 272 {
09c6ecd3 Dimitris Papastamos 2012-02-22 273 char buf[32];
09c6ecd3 Dimitris Papastamos 2012-02-22 274 size_t buf_size;
09c6ecd3 Dimitris Papastamos 2012-02-22 275 char *start = buf;
09c6ecd3 Dimitris Papastamos 2012-02-22 276 unsigned long reg, value;
09c6ecd3 Dimitris Papastamos 2012-02-22 277 struct regmap *map = file->private_data;
68e850d8 Dimitris Papastamos 2013-05-09 278 int ret;
09c6ecd3 Dimitris Papastamos 2012-02-22 279
09c6ecd3 Dimitris Papastamos 2012-02-22 @280 buf_size = min(count, (sizeof(buf)-1));
09c6ecd3 Dimitris Papastamos 2012-02-22 281 if (copy_from_user(buf, user_buf, buf_size))
09c6ecd3 Dimitris Papastamos 2012-02-22 282 return -EFAULT;
09c6ecd3 Dimitris Papastamos 2012-02-22 283 buf[buf_size] = 0;
09c6ecd3 Dimitris Papastamos 2012-02-22 284
09c6ecd3 Dimitris Papastamos 2012-02-22 285 while (*start == ' ')
09c6ecd3 Dimitris Papastamos 2012-02-22 286 start++;
09c6ecd3 Dimitris Papastamos 2012-02-22 287 reg = simple_strtoul(start, &start, 16);
09c6ecd3 Dimitris Papastamos 2012-02-22 288 while (*start == ' ')
:::::: The code at line 280 was first introduced by commit
:::::: 09c6ecd394105c4864a0e409e181c9b1578c2a63 regmap: Add support for writing to regmap registers via debugfs
:::::: TO: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
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: 36228 bytes --]
prev parent reply other threads:[~2015-10-13 20:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-13 17:46 Anatol Pomozov
2015-10-13 17:55 ` Mark Brown
2015-10-13 18:33 ` Anatol Pomozov
2015-10-13 20:07 ` Mark Brown
2015-12-04 16:37 ` Pavel Machek
2015-12-05 16:49 ` Mark Brown
2015-10-13 20:00 ` 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=201510140347.sI6XsJio%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=anatol.pomozov@gmail.com \
--cc=broonie@kernel.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
/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®