All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: liam.r.girdwood@linux.intel.com, alsa-devel@alsa-project.org,
	broonie@kernel.org, vkoul@kernel.org
Subject: Re: [PATCH] ALSA: memalloc: declare snd_sgbuf_aligned_pages() unconditionally
Date: Thu, 26 Jul 2018 08:28:41 +0200	[thread overview]
Message-ID: <s5h4lgmwlwm.wl-tiwai@suse.de> (raw)
In-Reply-To: <20180725201556.21136-1-pierre-louis.bossart@linux.intel.com>

On Wed, 25 Jul 2018 22:15:56 +0200,
Pierre-Louis Bossart wrote:
> 
> Make this helper inline function available for all platforms. This
> helps solve 0-day compilation issues when CONFIG_SND_DMA_SGBUF is not
> defined.
> 
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

Currently it's triggered only by the new Intel patches, so no urgent
material.

I can put this to for-next branch, or to another immutable branch, so
that Mark can pull in.  Or, it's fine that Mark applies to his tree
together with other Intel patches, too.  Mark, what's your preference?

In the last case, feel free to take my ack:
  Reviewed-by: Takashi Iwai <tiwai@suse.de>


thanks,

Takashi

> ---
>  include/sound/memalloc.h | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h
> index 9c3db3dce32b..c669900e6cbe 100644
> --- a/include/sound/memalloc.h
> +++ b/include/sound/memalloc.h
> @@ -67,6 +67,14 @@ struct snd_dma_buffer {
>  	void *private_data;	/* private for allocator; don't touch */
>  };
>  
> +/*
> + * return the pages matching with the given byte size
> + */
> +static inline unsigned int snd_sgbuf_aligned_pages(size_t size)
> +{
> +	return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
> +}
> +
>  #ifdef CONFIG_SND_DMA_SGBUF
>  /*
>   * Scatter-Gather generic device pages
> @@ -90,14 +98,6 @@ struct snd_sg_buf {
>  	struct device *dev;
>  };
>  
> -/*
> - * return the pages matching with the given byte size
> - */
> -static inline unsigned int snd_sgbuf_aligned_pages(size_t size)
> -{
> -	return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
> -}
> -
>  /*
>   * return the physical address at the corresponding offset
>   */
> -- 
> 2.14.1
> 

  reply	other threads:[~2018-07-26  6:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-25 20:15 [PATCH] ALSA: memalloc: declare snd_sgbuf_aligned_pages() unconditionally Pierre-Louis Bossart
2018-07-26  6:28 ` Takashi Iwai [this message]
2018-07-26 16:08   ` Mark Brown
2018-07-26 14:51 ` kbuild test robot
2018-07-27  5:11   ` Takashi Iwai
2018-07-27 14:54     ` Pierre-Louis Bossart
2018-07-26 16:12 ` Applied "ALSA: memalloc: declare snd_sgbuf_aligned_pages() unconditionally" to the asoc tree Mark Brown
2018-07-27  1:00 ` [PATCH] ALSA: memalloc: declare snd_sgbuf_aligned_pages() unconditionally kbuild test robot

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=s5h4lgmwlwm.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=vkoul@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 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.