};
 #define NUM_FORMATS ARRAY_SIZE(formats)
 
-struct g2d_frame def_frame = {
+static struct g2d_frame def_frame = {
        .width          = DEFAULT_WIDTH,
        .height         = DEFAULT_HEIGHT,
        .c_width        = DEFAULT_WIDTH,
        .bottom         = DEFAULT_HEIGHT,
 };
 
-struct g2d_fmt *find_fmt(struct v4l2_format *f)
+static struct g2d_fmt *find_fmt(struct v4l2_format *f)
 {
        unsigned int i;
        for (i = 0; i < NUM_FORMATS; i++) {
        .s_ctrl         = g2d_s_ctrl,
 };
 
-int g2d_setup_ctrls(struct g2d_ctx *ctx)
+static int g2d_setup_ctrls(struct g2d_ctx *ctx)
 {
        struct g2d_dev *dev = ctx->dev;