From: Richard Weinberger <richard@nod.at>
To: Chen Gang <xili_gchen_5257@hotmail.com>
Cc: realmz6@gmail.com,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Andrew Morton <akpm@linux-foundation.org>,
"adi-buildroot-devel@lists.sourceforge.net"
<adi-buildroot-devel@lists.sourceforge.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: [PATCH] blackfin: include: asm: pgtable: Define dummy pgprot_writecombine
Date: Sun, 05 Apr 2015 00:04:30 +0200 [thread overview]
Message-ID: <55205FEE.6020408@nod.at> (raw)
In-Reply-To: <BLU436-SMTP157DC509EDAFDE9251D27F5B9F00@phx.gbl>
Am 05.04.2015 um 00:02 schrieb Chen Gang:
> On 4/4/15 06:50, Richard Weinberger wrote:
>> On Fri, Apr 3, 2015 at 10:36 PM, Chen Gang <xili_gchen_5257@hotmail.com> wrote:
>>> It is copied from asm-generic, the related error with allmodconfig:
>>>
>>> CC [M] sound/core/pcm_native.o
>>> sound/core/pcm_native.c: In function 'snd_pcm_lib_default_mmap':
>>> sound/core/pcm_native.c:3387:24: error: implicit declaration of function 'pgprot_writecombine' [-Werror=implicit-function-declaration]
>>> area->vm_page_prot = pgprot_writecombine(area->vm_page_prot);
>>> ^
>>> sound/core/pcm_native.c:3387:22: error: incompatible types when assigning to type 'pgprot_t {aka struct <anonymous>}' from type 'int'
>>> area->vm_page_prot = pgprot_writecombine(area->vm_page_prot);
>>> ^
>>>
>>> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
>>> ---
>>> arch/blackfin/include/asm/pgtable.h | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/arch/blackfin/include/asm/pgtable.h b/arch/blackfin/include/asm/pgtable.h
>>> index b88a155..3e730d9 100644
>>> --- a/arch/blackfin/include/asm/pgtable.h
>>> +++ b/arch/blackfin/include/asm/pgtable.h
>>> @@ -36,6 +36,7 @@ typedef pte_t *pte_addr_t;
>>> #define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */
>>> #define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
>>> #define pgprot_noncached(prot) (prot)
>>> +#define pgprot_writecombine pgprot_noncached
>>
>> This looks fishy as blackfin's pgtable.h already includes asm-generic/pgtable.h.
>> So, copy&pasting pgprot_writecombine shouldn't be needed.
>>
>
> pgprot_writecombine in asm-generic/pgtable.h needs MMU, but allmodconfig
> for blackfin is NOMMU.
>
> So, I still suggest to add dummy one in blackfin (although for me, asm-
> generic/pgtable.h may need improvement -- welcome other members for it).
Sounds still fishy as you "introduced" allmodconfig...
Thanks,
//richard
next prev parent reply other threads:[~2015-04-04 22:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-03 20:36 [PATCH] blackfin: include: asm: pgtable: Define dummy pgprot_writecombine Chen Gang
2015-04-03 22:50 ` Richard Weinberger
2015-04-04 22:02 ` Chen Gang
2015-04-04 22:04 ` Richard Weinberger [this message]
2015-04-04 22:54 ` Chen Gang
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=55205FEE.6020408@nod.at \
--to=richard@nod.at \
--cc=adi-buildroot-devel@lists.sourceforge.net \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=geert@linux-m68k.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=realmz6@gmail.com \
--cc=xili_gchen_5257@hotmail.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 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.