From: Randy Dunlap <rdunlap@xenotime.net>
To: Dan Williams <dan.j.williams@intel.com>
Cc: scsi <linux-scsi@vger.kernel.org>,
JBottomley@parallels.com,
Andrew Morton <akpm@linux-foundation.org>,
intel-linux-scu@intel.com,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH] scsi: SCSI_ISCI needs to select SCSI_SAS_HOST_SMP, fixes build error
Date: Fri, 23 Sep 2011 17:23:33 -0700 [thread overview]
Message-ID: <4E7D2305.8080408@xenotime.net> (raw)
In-Reply-To: <CAA9_cmcJv_A4SgpGFMpwBYLJ8NEzHKw-LOnQwWKFZRTTLRCO5Q@mail.gmail.com>
On 09/23/2011 04:43 PM, Dan Williams wrote:
> On Fri, Sep 23, 2011 at 3:43 PM, Randy Dunlap <rdunlap@xenotime.net> wrote:
>> From: Randy Dunlap <rdunlap@xenotime.net>
>>
>> SCSI_ISCI needs to select SCSI_SAS_HOST_SMP to ensure that all
>> needed symbols are available to it.
>>
>> Fixes this build error:
>> ERROR: "try_test_sas_gpio_gp_bit" [drivers/scsi/isci/isci.ko] undefined!
>>
>> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
>
> Thanks Randy!
>
> Here's a replacement patch (also attached), that just stubs out that
> routine in the !SCSI_SAS_HOST_SMP case.
Yes, that works too.
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Thanks.
> From 645ea60066251c2728197bf7a1048d885626936f Mon Sep 17 00:00:00 2001
> From: Dan Williams <dan.j.williams@intel.com>
> Date: Fri, 23 Sep 2011 16:28:53 -0700
> Subject: [PATCH] libsas: fix try_test_sas_gpio_gp_bit() build error
>
> If the user has disabled CONFIG_SCSI_SAS_HOST_SMP then libsas drivers
> will not be receiving smp-gpio frames and do not need this lookup code.
>
> Reported-by: Randy Dunlap <rdunlap@xenotime.net>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> ---
> include/scsi/libsas.h | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h
> index 44f5634..0d78bfa 100644
> --- a/include/scsi/libsas.h
> +++ b/include/scsi/libsas.h
> @@ -407,7 +407,14 @@ static inline unsigned int to_sas_gpio_od(int
> device, int bit)
> return 3 * device + bit;
> }
>
> +#ifdef CONFIG_SCSI_SAS_HOST_SMP
> int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count);
> +#else
> +static inline int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data,
> u8 index, u8 count)
> +{
> + return -1;
> +}
> +#endif
>
> /* ---------- Tasks ---------- */
> /*
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
prev parent reply other threads:[~2011-09-24 0:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 22:43 [PATCH] scsi: SCSI_ISCI needs to select SCSI_SAS_HOST_SMP, fixes build error Randy Dunlap
2011-09-23 23:43 ` Dan Williams
2011-09-24 0:23 ` Randy Dunlap [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=4E7D2305.8080408@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=JBottomley@parallels.com \
--cc=akpm@linux-foundation.org \
--cc=dan.j.williams@intel.com \
--cc=intel-linux-scu@intel.com \
--cc=linux-scsi@vger.kernel.org \
--cc=torvalds@linux-foundation.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