mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: Christian <evil@g-house.de>
Cc: linux-kernel@vger.kernel.org, GregKH <greg@kroah.com>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] Dallas's 1-wire bus compile error (again)
Date: Thu, 13 Oct 2005 23:47:05 +0400	[thread overview]
Message-ID: <20051013194705.GA27809@2ka.mipt.ru> (raw)
In-Reply-To: <434EB375.4060104@g-house.de>

On Thu, Oct 13, 2005 at 09:20:21PM +0200, Christian (evil@g-house.de) wrote:
> Evgeniy Polyakov wrote:
> >
> >Hmm... Could you please provide error log.
> >Networking is only used for netlink notifications which are disabled 
> >if CONFIG_NET is not set, you can find empty declarations in
> >w1_netlink.c
> 
> Similar errors as in the mentioned thread, but here we go:
> 
> drivers/built-in.o: In function `w1_alloc_dev':
> : undefined reference to `netlink_kernel_create'
> drivers/built-in.o: In function `w1_alloc_dev':
> : undefined reference to `sock_release'
> drivers/built-in.o: In function `w1_free_dev':
> : undefined reference to `sock_release'
> make: *** [.tmp_vmlinux1] Error 1

It looks like you use old version - I've just compiled 
today's git tree with your config, and it does have an error, 
but in different place.
That bug was introduced during big w1 cleanup due to device driver
model.

Attached patch fixes that on x86_64 and i386 compilation.

Thank you, Christian.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>

diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -77,8 +77,7 @@ static void w1_master_release(struct dev
 
 	dev_dbg(dev, "%s: Releasing %s.\n", __func__, md->name);
 
-	if (md->nls && md->nls->sk_socket)
-		sock_release(md->nls->sk_socket);
+	dev_fini_netlink(md);
 	memset(md, 0, sizeof(struct w1_master) + sizeof(struct w1_bus_master));
 	kfree(md);
 }


-- 
	Evgeniy Polyakov

  reply	other threads:[~2005-10-13 19:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-13 18:23 Christian
2005-10-13 18:33 ` Evgeniy Polyakov
2005-10-13 19:20   ` Christian
2005-10-13 19:47     ` Evgeniy Polyakov [this message]
2005-10-13 20:14       ` Christian
2005-10-13 18:27 Christian

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=20051013194705.GA27809@2ka.mipt.ru \
    --to=johnpol@2ka.mipt.ru \
    --cc=akpm@osdl.org \
    --cc=evil@g-house.de \
    --cc=greg@kroah.com \
    --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

Powered by JetHome