-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
passing argument 1 of ‘bdev_dax_supported’ from incompatible pointer type #2
Comments
Replace the line with ret = bdev_dax_supported(sb->bdev, PAGE_SIZE);
Hope that helps.
Thanks,
Andiry
…On Thu, Mar 5, 2020 at 11:43 PM Taya ***@***.***> wrote:
Hi !
I am trying to use PMFS . My kernel version is 4.15. But I met some
problem when I run make. It reports that :
/home/parallels/PMFS-new/super.c: In function ‘pmfs_get_block_info’:
/home/parallels/PMFS-new/super.c:110:27: error: passing argument 1 of
‘bdev_dax_supported’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
ret = bdev_dax_supported(sb, PAGE_SIZE);
^~
In file included from /home/parallels/PMFS-new/super.c:35:0:
./include/linux/dax.h:44:20: note: expected ‘struct block_device *’ but
argument is of type ‘struct super_block *’
static inline bool bdev_dax_supported(struct block_device *bdev, int
blocksize)
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
So I tried to auto change it's type by
ret = bdev_dax_supported((struct block_device *)sb, PAGE_SIZE)
But It lead to bug when mounting pmfs. The dmesg shows
[ 119.700620] RIP: __bdev_dax_supported+0x8b/0x237 RSP: ffffa5dcc3527cb0
Could you give me some help?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AAKBYEDX4ZRN4WEDIYI6YGTRGCSQFA5CNFSM4LC2Q6XKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITASUVA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKBYEGE35DIAUIII64HSATRGCSQFANCNFSM4LC2Q6XA>
.
|
Sorry, should be ret = bdev_dax_supported(sb->s_bdev, PAGE_SIZE);
…On Fri, Mar 6, 2020 at 8:54 AM Andiry Xu ***@***.***> wrote:
Replace the line with ret = bdev_dax_supported(sb->bdev, PAGE_SIZE);
Hope that helps.
Thanks,
Andiry
On Thu, Mar 5, 2020 at 11:43 PM Taya ***@***.***> wrote:
> Hi !
> I am trying to use PMFS . My kernel version is 4.15. But I met some
> problem when I run make. It reports that :
>
> /home/parallels/PMFS-new/super.c: In function ‘pmfs_get_block_info’:
> /home/parallels/PMFS-new/super.c:110:27: error: passing argument 1 of
> ‘bdev_dax_supported’ from incompatible pointer type
> [-Werror=incompatible-pointer-types]
> ret = bdev_dax_supported(sb, PAGE_SIZE);
> ^~
> In file included from /home/parallels/PMFS-new/super.c:35:0:
> ./include/linux/dax.h:44:20: note: expected ‘struct block_device *’ but
> argument is of type ‘struct super_block *’
> static inline bool bdev_dax_supported(struct block_device *bdev, int
> blocksize)
> ^~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
>
> So I tried to auto change it's type by
>
> ret = bdev_dax_supported((struct block_device *)sb, PAGE_SIZE)
> But It lead to bug when mounting pmfs. The dmesg shows
>
> [ 119.700620] RIP: __bdev_dax_supported+0x8b/0x237 RSP: ffffa5dcc3527cb0
>
> Could you give me some help?
> Thanks
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#2?email_source=notifications&email_token=AAKBYEDX4ZRN4WEDIYI6YGTRGCSQFA5CNFSM4LC2Q6XKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITASUVA>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAKBYEGE35DIAUIII64HSATRGCSQFANCNFSM4LC2Q6XA>
> .
>
|
It works. |
Hi !
I am trying to use PMFS . My kernel version is 4.15. But I met some problem when I run make. It reports that :
So I tried to auto change it's type by
ret = bdev_dax_supported((struct block_device *)sb, PAGE_SIZE)
But It lead to bug when mounting pmfs. The dmesg shows
Could you give me some help?
Thanks
The text was updated successfully, but these errors were encountered: