Skip to content

Dear administrator, hello. I encountered an error while compiling the kernel that I don't understand. How can I resolve this error #23

@Debug-boy

Description

@Debug-boy

CC drivers/misc/oplus_motor/camera_motor_ic/oneplus_drv8834.o
In file included from ../drivers/media/platform/msm/camera/cam_core/cam_context.c:17:
../drivers/media/platform/msm/camera/cam_core/cam_context.h:117:11: warning: declaration of 'struct cam_dump_req_cmd' will not be visible outside of this function [-Wvisibility]
struct cam_dump_req_cmd *cmd);
^
../drivers/media/platform/msm/camera/cam_core/cam_context.h:462:9: warning: declaration of 'struct cam_dump_req_cmd' will not be visible outside of this function [-Wvisibility]
struct cam_dump_req_cmd *cmd);
^
../drivers/media/platform/msm/camera/cam_core/cam_context.c:528:9: warning: declaration of 'struct cam_dump_req_cmd' will not be visible outside of this function [-Wvisibility]
struct cam_dump_req_cmd *cmd)
^
../drivers/media/platform/msm/camera/cam_core/cam_context.c:527:5: error: conflicting types for 'cam_context_handle_dump_dev'
int cam_context_handle_dump_dev(struct cam_context *ctx,
^
../drivers/media/platform/msm/camera/cam_core/cam_context.h:461:5: note: previous declaration is here
int cam_context_handle_dump_dev(struct cam_context *ctx,
^
../drivers/media/platform/msm/camera/cam_core/cam_context.c:545:9: error: incompatible pointer types passing 'struct cam_dump_req_cmd *' to parameter of type 'struct cam_dump_req_cmd *' [-Werror,-Wincompatible-pointer-types]
ctx, cmd);
^~~
3 warnings and 2 errors generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions