From: Jingoo Han <jg1.han@samsung.com>
To: "'Yijing Wang'" <wangyijing@huawei.com>,
"'David S. Miller'" <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org,
"'Hanjun Guo'" <guohanjun@huawei.com>,
"'Jiang Liu'" <liuj97@gmail.com>,
"'Stanislaw Gruszka'" <sgruszka@redhat.com>,
"'John W. Linville'" <linville@tuxdriver.com>,
netdev@vger.kernel.org, linux-wireless@vger.kernel.org,
Jingoo Han <jg1.han@samsung.com>
Subject: Re: [PATCH] net: wireless: iwlegacy: fix build error for il_pm_ops
Date: Fri, 31 May 2013 15:22:24 +0900 [thread overview]
Message-ID: <000101ce5dc7$374e8190$a5eb84b0$@samsung.com> (raw)
In-Reply-To: <1369980332-1344-1-git-send-email-wangyijing@huawei.com>
On Friday, May 31, 2013 3:06 PM, Yijing Wang wrote:
>
> Fix build error for il_pm_ops if CONFIG_PM is set
> but CONFIG_PM_SLEEP is not set.
>
> ERROR: "il_pm_ops" [drivers/net/wireless/iwlegacy/iwl4965.ko] undefined!
> ERROR: "il_pm_ops" [drivers/net/wireless/iwlegacy/iwl3945.ko] undefined!
> make[1]: *** [__modpost] Error 1
> make: *** [modules] Error 2
>
> Signed-off-by: Yijing Wang <wangyijing@huawei.com>
> Cc: Stanislaw Gruszka <sgruszka@redhat.com>
> Cc: "John W. Linville" <linville@tuxdriver.com>
> Cc: netdev@vger.kernel.org
> Cc: linux-wireless@vger.kernel.org
> Cc: Jingoo Han <jg1.han@samsung.com>
It looks good.
As you did, 'struct dev_pm_ops il_pm_ops' should be protected
by CONFIG_PM_SLEEP.
Acked-by: Jingoo Han <jg1.han@samsung.com>
Best regards,
Jingoo Han
> ---
> drivers/net/wireless/iwlegacy/common.h | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h
> index f8246f2..4caaf52 100644
> --- a/drivers/net/wireless/iwlegacy/common.h
> +++ b/drivers/net/wireless/iwlegacy/common.h
> @@ -1832,16 +1832,16 @@ u32 il_usecs_to_beacons(struct il_priv *il, u32 usec, u32 beacon_interval);
> __le32 il_add_beacon_time(struct il_priv *il, u32 base, u32 addon,
> u32 beacon_interval);
>
> -#ifdef CONFIG_PM
> +#ifdef CONFIG_PM_SLEEP
> extern const struct dev_pm_ops il_pm_ops;
>
> #define IL_LEGACY_PM_OPS (&il_pm_ops)
>
> -#else /* !CONFIG_PM */
> +#else /* !CONFIG_PM_SLEEP */
>
> #define IL_LEGACY_PM_OPS NULL
>
> -#endif /* !CONFIG_PM */
> +#endif /* !CONFIG_PM_SLEEP */
>
> /*****************************************************
> * Error Handling Debugging
> --
> 1.7.1
prev parent reply other threads:[~2013-05-31 6:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-31 6:05 [PATCH] net: wireless: iwlegacy: fix build error for il_pm_ops Yijing Wang
2013-05-31 6:22 ` Jingoo Han [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='000101ce5dc7$374e8190$a5eb84b0$@samsung.com' \
--to=jg1.han@samsung.com \
--cc=davem@davemloft.net \
--cc=guohanjun@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=liuj97@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=sgruszka@redhat.com \
--cc=wangyijing@huawei.com \
/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