Build failure after merge of the char-misc tree
Subsystems (2)
Mark Brown
maintainerAfter 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 <[email protected]>
Date: Fri, 4 Oct 2013 00:53:01 +0100
Subject: [PATCH] misc: mic: Update for sysfs_get_dirent() cleanups
--- drivers/misc/mic/host/mic_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/misc/mic/host/mic_main.c +1 -2
@@ -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);
Signature · 1 line
1.8.4.rc3
Greg Kroah-Hartman
maintainerQuoted 27 lines · Mark Brown
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,
frominclude/linux/module.h:16,
fromdrivers/misc/mic/host/mic_main.c:26:include/linux/sysfs.h:465:1: note: declared here
sysfs_get_dirent(structsysfs_dirent*parent_sd, const unsigned char
*name)
^
make[4]: *** [drivers/misc/mic/host/mic_main.o] Error 1caused by an interaction between the addition of the Intel MIC host driver and commit
388975cccaaf1(sysfs: clean upsysfs_get_dirent()) from the driver-current tree.I've applied the patch below and can carry it for the time being.
From
abbabb4580f45accf74f95aed6fe35b26ae8d009Mon Sep 17 00:00:00 2001
From: Mark Brown <[email protected]>
Date: Fri, 4 Oct 2013 00:53:01 +0100
Subject: [PATCH] misc: mic: Update forsysfs_get_dirent()cleanups
Quoted 4 lines
Signed-off-by Mark Brown <[email protected]>--- drivers/misc/mic/host/mic_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
That patch looks great, thanks.
greg k-h