Skip to content

invalid output size for constraint '=q' in drivers/gpu/drm/i915/i915_query.c #781

@tpimh

Description

@tpimh

A new case similar to of #194:

drivers/gpu/drm/i915/i915_query.c:263:7: error: invalid output size for constraint '=q'
                if (__get_user(config_id, &user_query_config_ptr->config))
                    ^
./arch/x86/include/asm/uaccess.h:529:2: note: expanded from macro '__get_user'
        __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
        ^
./arch/x86/include/asm/uaccess.h:450:18: note: expanded from macro '__get_user_nocheck'
        __get_user_size(__gu_val, __gu_ptr, __gu_size, __gu_err, -EFAULT);      \
                        ^
1 error generated.

How haven't I hit this earlier? 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions