All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Prindeville <philipp_subx@redfish-solutions.com>
To: Hauke Mehrtens <hauke@hauke-m.de>
Cc: lrodriguez@atheros.com, linux-wireless@vger.kernel.org,
	mcgrof@infradead.org
Subject: Re: [PATCH 2/3] compat: backport alloc_workqueue
Date: Tue, 04 Jan 2011 17:17:59 -0800	[thread overview]
Message-ID: <4D23C6C6.2010205@redfish-solutions.com> (raw)
In-Reply-To: <1293891815-22087-2-git-send-email-hauke@hauke-m.de>

I just patched this against 2.6.27.49 and it builds.  I'll try to fire up an image later, though I'm using Ath9k cards...


On 1/1/11 6:23 AM, Hauke Mehrtens wrote:
> This is needed by rtlwifi.
>
> The function signature of __create_workqueue changed in kernel 2.6.28,
> so two different defines are needed.
>
> Signed-off-by: Hauke Mehrtens<hauke@hauke-m.de>
> ---
>   include/linux/compat-2.6.28.h |    2 ++
>   include/linux/compat-2.6.36.h |    4 ++++
>   2 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/compat-2.6.28.h b/include/linux/compat-2.6.28.h
> index b9024d6..fdb8fb2 100644
> --- a/include/linux/compat-2.6.28.h
> +++ b/include/linux/compat-2.6.28.h
> @@ -236,6 +236,8 @@ extern int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
>
>   int pci_wake_from_d3(struct pci_dev *dev, bool enable);
>
> +#define alloc_workqueue(name, flags, max_active) __create_workqueue(name, flags, max_active)
> +
>   #endif /* (LINUX_VERSION_CODE<  KERNEL_VERSION(2,6,28)) */
>
>   #endif /* LINUX_26_28_COMPAT_H */
> diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h
> index 1f2f507..74d2309 100644
> --- a/include/linux/compat-2.6.36.h
> +++ b/include/linux/compat-2.6.36.h
> @@ -97,6 +97,10 @@ struct pm_qos_request_list {
>   static inline __attribute__ ((format (printf, 1, 2)))
>   int no_printk(const char *s, ...) { return 0; }
>
> +#ifndef alloc_workqueue
> +#define alloc_workqueue(name, flags, max_active) __create_workqueue(name, flags, max_active, 0)
> +#endif
> +
>   #endif /* (LINUX_VERSION_CODE<  KERNEL_VERSION(2,6,36)) */
>
>   #endif /* LINUX_26_36_COMPAT_H */


  reply	other threads:[~2011-01-05  1:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-01 14:23 [PATCH 1/3] compat: backport pci_wake_from_d3 Hauke Mehrtens
2011-01-01 14:23 ` [PATCH 2/3] compat: backport alloc_workqueue Hauke Mehrtens
2011-01-05  1:17   ` Philip Prindeville [this message]
2011-01-01 14:23 ` [PATCH 3/3] compat: add generic functions for suspend/resume Hauke Mehrtens
2011-01-05 23:20 ` [PATCH 1/3] compat: backport pci_wake_from_d3 Luis R. Rodriguez

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=4D23C6C6.2010205@redfish-solutions.com \
    --to=philipp_subx@redfish-solutions.com \
    --cc=hauke@hauke-m.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lrodriguez@atheros.com \
    --cc=mcgrof@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.