netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: David Miller <davem@davemloft.net>
Cc: mchan@broadcom.com, netdev@vger.kernel.org
Subject: Re: [PATCH 0/4 v3 net-next] tg3: Add hwmon support
Date: Mon, 13 Aug 2012 17:37:11 +1000	[thread overview]
Message-ID: <1344843431.2698.63.camel@pasglop> (raw)
In-Reply-To: <20120716.231128.1113699431084132190.davem@davemloft.net>

On Mon, 2012-07-16 at 23:11 -0700, David Miller wrote:
> From: "Michael Chan" <mchan@broadcom.com>
> Date: Mon, 16 Jul 2012 19:23:58 -0700
> 
> > David, I've removed the binary sysfs attribute and now use
> > hwmon only.  Please consider this patchset for net-next.
> 
> Applied, thanks Michael.
> 
> You might want to add some Kconfig logic so that it's easier
> to get the hwmon stuff automatically when tg3 is selected.

Right, just got bitten by that one with one of my test configs:

CONFIG_TIGON3=y
CONFIG_HWMON=m

results in:

drivers/built-in.o: In function `.tg3_close':
tg3.c:(.text+0x1ab664): undefined reference to `.hwmon_device_unregister'
drivers/built-in.o: In function `.tg3_hwmon_open':
tg3.c:(.text+0x1b153c): undefined reference to `.hwmon_device_register'

I hit a similar one a while back with some DRM driver, there's no
nice way to solve them afaik, other than basically forcing HWMON to
y if TIGON3 is enabled. Either that, or having TIGON3's hwmon support
be a sub-option itself dependent on CONFIG_HWMON & potentially build
as a separate module etc... quite a pain.

Cheers,
Ben.

      reply	other threads:[~2012-08-13  7:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17  2:23 [PATCH 0/4 v3 net-next] tg3: Add hwmon support Michael Chan
2012-07-17  2:23 ` [PATCH 1/4 v3 net-next] tg3: Fix the setting of the APE_HAS_NCSI flag Michael Chan
2012-07-17  2:24   ` [PATCH 2/4 v3 net-next] tg3: Add common function tg3_ape_event_lock() Michael Chan
2012-07-17  2:24     ` [PATCH 3/4 v3 net-next] tg3: Add APE scratchpad read function Michael Chan
2012-07-17  2:24       ` [PATCH 4/4 v3 net-next] tg3: Add hwmon support for temperature Michael Chan
2012-07-17  6:11 ` [PATCH 0/4 v3 net-next] tg3: Add hwmon support David Miller
2012-08-13  7:37   ` Benjamin Herrenschmidt [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=1344843431.2698.63.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=davem@davemloft.net \
    --cc=mchan@broadcom.com \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).