* Build failure after merge of the char-misc tree
@ 2013-10-03 23:54 Mark Brown
2013-10-04 0:11 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2013-10-03 23:54 UTC (permalink / raw)
To: Sudeep Dutt, Greg Kroah-Hartman, Dasaratharaman Chandramouli,
Ashutosh Dixit, Tejun Heo
Cc: linux-next, linux-kernel, Thierry Reding
[-- Attachment #1: Type: text/plain, Size: 1859 bytes --]
After merging the char-misc tree into -next an x86 allmodconfig build fails
with:
drivers/misc/mic/host/mic_main.c: In function ‘mic_probe’:
drivers/misc/mic/host/mic_main.c:320:3: error: too many arguments to function ‘sysfs_get_dirent’
NULL, "state");
^
In file included from include/linux/kobject.h:21:0,
from include/linux/module.h:16,
from drivers/misc/mic/host/mic_main.c:26:
include/linux/sysfs.h:465:1: note: declared here
sysfs_get_dirent(struct sysfs_dirent *parent_sd, const unsigned char
*name)
^
make[4]: *** [drivers/misc/mic/host/mic_main.o] Error 1
caused by an interaction between the addition of the Intel MIC host
driver and commit 388975cccaaf1 (sysfs: clean up sysfs_get_dirent())
from the driver-current tree.
I've applied the patch below and can carry it for the time being.
From abbabb4580f45accf74f95aed6fe35b26ae8d009 Mon Sep 17 00:00:00 2001
From: Mark Brown <broonie@linaro.org>
Date: Fri, 4 Oct 2013 00:53:01 +0100
Subject: [PATCH] misc: mic: Update for sysfs_get_dirent() cleanups
Signed-off-by: Mark Brown <broonie@linaro.org>
---
drivers/misc/mic/host/mic_main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/misc/mic/host/mic_main.c b/drivers/misc/mic/host/mic_main.c
index ca06aa9..50c2ea3 100644
--- a/drivers/misc/mic/host/mic_main.c
+++ b/drivers/misc/mic/host/mic_main.c
@@ -316,8 +316,7 @@ static int mic_probe(struct pci_dev *pdev,
"device_create_with_groups failed rc %d\n", rc);
goto smpt_uninit;
}
- mdev->state_sysfs = sysfs_get_dirent(mdev->sdev->kobj.sd,
- NULL, "state");
+ mdev->state_sysfs = sysfs_get_dirent(mdev->sdev->kobj.sd, "state");
if (!mdev->state_sysfs) {
rc = -ENODEV;
dev_err(&pdev->dev, "sysfs_get_dirent failed rc %d\n", rc);
--
1.8.4.rc3
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: Build failure after merge of the char-misc tree
2013-10-03 23:54 Build failure after merge of the char-misc tree Mark Brown
@ 2013-10-04 0:11 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2013-10-04 0:11 UTC (permalink / raw)
To: Mark Brown
Cc: Sudeep Dutt, Dasaratharaman Chandramouli, Ashutosh Dixit,
Tejun Heo, linux-next, linux-kernel, Thierry Reding
On Fri, Oct 04, 2013 at 12:54:19AM +0100, Mark Brown wrote:
> After merging the char-misc tree into -next an x86 allmodconfig build fails
> with:
>
> drivers/misc/mic/host/mic_main.c: In function ‘mic_probe’:
> drivers/misc/mic/host/mic_main.c:320:3: error: too many arguments to function ‘sysfs_get_dirent’
> NULL, "state");
> ^
> In file included from include/linux/kobject.h:21:0,
> from include/linux/module.h:16,
> from drivers/misc/mic/host/mic_main.c:26:
> include/linux/sysfs.h:465:1: note: declared here
> sysfs_get_dirent(struct sysfs_dirent *parent_sd, const unsigned char
> *name)
> ^
> make[4]: *** [drivers/misc/mic/host/mic_main.o] Error 1
>
> caused by an interaction between the addition of the Intel MIC host
> driver and commit 388975cccaaf1 (sysfs: clean up sysfs_get_dirent())
> from the driver-current tree.
>
> I've applied the patch below and can carry it for the time being.
>
> From abbabb4580f45accf74f95aed6fe35b26ae8d009 Mon Sep 17 00:00:00 2001
> From: Mark Brown <broonie@linaro.org>
> Date: Fri, 4 Oct 2013 00:53:01 +0100
> Subject: [PATCH] misc: mic: Update for sysfs_get_dirent() cleanups
>
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
> drivers/misc/mic/host/mic_main.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
That patch looks great, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-04 0:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-03 23:54 Build failure after merge of the char-misc tree Mark Brown
2013-10-04 0:11 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).