public inbox for [email protected]
 help / color / mirror / Atom feed
* Re: linux-next: Tree for May 25 (fs/io_uring)
       [not found] <[email protected]>
@ 2020-05-25 16:35 ` Randy Dunlap
  2020-05-25 19:02   ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2020-05-25 16:35 UTC (permalink / raw)
  To: Stephen Rothwell, Linux Next Mailing List
  Cc: Linux Kernel Mailing List, io-uring, axboe

On 5/25/20 5:49 AM, Stephen Rothwell wrote:
> Hi all,
> 
> Changes since 20200522:
> 


on i386:

../fs/io_uring.c:500:26: error: field ‘wpq’ has incomplete type
  struct wait_page_queue  wpq;
                          ^~~
In file included from ../include/linux/export.h:43:0,
                 from ../include/linux/linkage.h:7,
                 from ../include/linux/kernel.h:8,
                 from ../fs/io_uring.c:42:
../fs/io_uring.c: In function ‘io_async_buf_func’:
../include/linux/kernel.h:1003:51: error: dereferencing pointer to incomplete type ‘struct wait_page_queue’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^
../include/linux/compiler.h:372:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
../include/linux/compiler.h:392:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
  ^~~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
../include/linux/kernel.h:1003:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
../include/linux/kernel.h:1003:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
../fs/io_uring.c:2618:8: note: in expansion of macro ‘container_of’
  wpq = container_of(wait, struct wait_page_queue, wait);
        ^~~~~~~~~~~~
In file included from <command-line>:0:0:
./../include/linux/compiler_types.h:133:35: error: invalid use of undefined type ‘struct wait_page_queue’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^
../include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
../include/linux/kernel.h:1006:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
../fs/io_uring.c:2618:8: note: in expansion of macro ‘container_of’
  wpq = container_of(wait, struct wait_page_queue, wait);
        ^~~~~~~~~~~~
../fs/io_uring.c:2620:8: error: implicit declaration of function ‘wake_page_match’; did you mean ‘huge_page_mask’? [-Werror=implicit-function-declaration]
  ret = wake_page_match(wpq, key);
        ^~~~~~~~~~~~~~~
        huge_page_mask
  AR      sound/pci/ac97/built-in.a
../fs/io_uring.c: In function ‘io_rw_should_retry’:
../fs/io_uring.c:2667:8: error: implicit declaration of function ‘kiocb_wait_page_queue_init’; did you mean ‘pgdat_page_ext_init’? [-Werror=implicit-function-declaration]
  ret = kiocb_wait_page_queue_init(kiocb, &req->io->rw.wpq,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        pgdat_page_ext_init


-- 
~Randy
Reported-by: Randy Dunlap <[email protected]>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: Tree for May 25 (fs/io_uring)
  2020-05-25 16:35 ` linux-next: Tree for May 25 (fs/io_uring) Randy Dunlap
@ 2020-05-25 19:02   ` Jens Axboe
  2020-05-25 19:08     ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2020-05-25 19:02 UTC (permalink / raw)
  To: Randy Dunlap, Stephen Rothwell, Linux Next Mailing List
  Cc: Linux Kernel Mailing List, io-uring

On 5/25/20 10:35 AM, Randy Dunlap wrote:
> On 5/25/20 5:49 AM, Stephen Rothwell wrote:
>> Hi all,
>>
>> Changes since 20200522:
>>
> 
> 
> on i386:
> 
> ../fs/io_uring.c:500:26: error: field ‘wpq’ has incomplete type
>   struct wait_page_queue  wpq;

Missing pagemap.h include, didn't bite me on x86-64. I'll fold in
a fix, thanks!

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: Tree for May 25 (fs/io_uring)
  2020-05-25 19:02   ` Jens Axboe
@ 2020-05-25 19:08     ` Randy Dunlap
  2020-05-25 19:18       ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2020-05-25 19:08 UTC (permalink / raw)
  To: Jens Axboe, Stephen Rothwell, Linux Next Mailing List
  Cc: Linux Kernel Mailing List, io-uring

On 5/25/20 12:02 PM, Jens Axboe wrote:
> On 5/25/20 10:35 AM, Randy Dunlap wrote:
>> On 5/25/20 5:49 AM, Stephen Rothwell wrote:
>>> Hi all,
>>>
>>> Changes since 20200522:
>>>
>>
>>
>> on i386:
>>
>> ../fs/io_uring.c:500:26: error: field ‘wpq’ has incomplete type
>>   struct wait_page_queue  wpq;
> 
> Missing pagemap.h include, didn't bite me on x86-64. I'll fold in
> a fix, thanks!
> 

I see it on x86_64. It must depend on some kernel config setting.

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: Tree for May 25 (fs/io_uring)
  2020-05-25 19:08     ` Randy Dunlap
@ 2020-05-25 19:18       ` Jens Axboe
  0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2020-05-25 19:18 UTC (permalink / raw)
  To: Randy Dunlap, Stephen Rothwell, Linux Next Mailing List
  Cc: Linux Kernel Mailing List, io-uring

On 5/25/20 1:08 PM, Randy Dunlap wrote:
> On 5/25/20 12:02 PM, Jens Axboe wrote:
>> On 5/25/20 10:35 AM, Randy Dunlap wrote:
>>> On 5/25/20 5:49 AM, Stephen Rothwell wrote:
>>>> Hi all,
>>>>
>>>> Changes since 20200522:
>>>>
>>>
>>>
>>> on i386:
>>>
>>> ../fs/io_uring.c:500:26: error: field ‘wpq’ has incomplete type
>>>   struct wait_page_queue  wpq;
>>
>> Missing pagemap.h include, didn't bite me on x86-64. I'll fold in
>> a fix, thanks!
>>
> 
> I see it on x86_64. It must depend on some kernel config setting.

Most certainly. Updated branch has the include, and I updated my
for-next as well.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-25 19:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <[email protected]>
2020-05-25 16:35 ` linux-next: Tree for May 25 (fs/io_uring) Randy Dunlap
2020-05-25 19:02   ` Jens Axboe
2020-05-25 19:08     ` Randy Dunlap
2020-05-25 19:18       ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox