From patchwork Mon Mar 12 06:13:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 7220 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8C98B23E14 for ; Mon, 12 Mar 2012 06:20:36 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 467BEA183D6 for ; Mon, 12 Mar 2012 06:20:36 +0000 (UTC) Received: by iage36 with SMTP id e36so8281581iag.11 for ; Sun, 11 Mar 2012 23:20:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=lTeNcgUMaGd/KBg+ZKHRjEtkyfKV5yA4e/sxieVEe8c=; b=Iasx75gwcjRGXaH0JbjbJDAUNHl/1dY99MMXO1tgPBjApZHhuFcXF++3QXo8LP3lP+ 5T8GjLiXul244QpzpGqoCy6uIcTvsjew885NNCBnQRfjKD5ZD8FEmGMf6ELHoAabWYLb LJ8c2YyvHM/HTrU2wXdiOfVQa8MyXls3lelk8Hg808AxzczpslROLuKRE9O+W8RnZwM/ Q8sMH+yrQKf5rH4KaJkAC5P/S9wnpUoc47qpmSAZp/Uedh3zYPdwLotaaJnAjviDrMao F1lVISRKvyJikUKC2X3uHmfI4DHuKsbRaU7N2VzpH4by74/8CX62hz6w3iRWGMQulBDk +CYw== Received: by 10.50.183.137 with SMTP id em9mr16747674igc.58.1331533235634; Sun, 11 Mar 2012 23:20:35 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp33729ibg; Sun, 11 Mar 2012 23:20:35 -0700 (PDT) Received: by 10.68.234.105 with SMTP id ud9mr7517413pbc.65.1331533234803; Sun, 11 Mar 2012 23:20:34 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id l4si15245094pbh.123.2012.03.11.23.20.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Mar 2012 23:20:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by dakn40 with SMTP id n40so5433501dak.37 for ; Sun, 11 Mar 2012 23:20:33 -0700 (PDT) Received: by 10.68.204.106 with SMTP id kx10mr58561pbc.150.1331533233886; Sun, 11 Mar 2012 23:20:33 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id h3sm9468975pbr.75.2012.03.11.23.20.30 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Mar 2012 23:20:33 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: t.stanislaws@samsung.com, kyungmin.park@samsung.com, mchehab@infradead.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] [media] s5p-tv: Fix section mismatch warning in mixer_video.c Date: Mon, 12 Mar 2012 11:43:34 +0530 Message-Id: <1331532814-24403-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkOx7xtX9yET20RWTqVBc0D0hiBlw5q3PObiWAzBOjiCGKeT2yjcnrOuxt4etoe6hQ3b4WS The function __devinit mxr_probe() references a function __devexit mxr_release_video(). Since mxr_release_video() is referenced outside the exit section, the following compilation warning is generated which is fixed here: WARNING: drivers/media/video/s5p-tv/s5p-mixer.o(.devinit.text+0x340): Section mismatch in reference from the function mxr_probe() to the function .devexit.text:mxr_release_video() Signed-off-by: Sachin Kamat --- Tested on for-next branch of Kukjin Kim's tree git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git --- drivers/media/video/s5p-tv/mixer.h | 2 +- drivers/media/video/s5p-tv/mixer_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/s5p-tv/mixer.h b/drivers/media/video/s5p-tv/mixer.h index 1597078..b02e55c 100644 --- a/drivers/media/video/s5p-tv/mixer.h +++ b/drivers/media/video/s5p-tv/mixer.h @@ -293,7 +293,7 @@ int __devinit mxr_acquire_video(struct mxr_device *mdev, struct mxr_output_conf *output_cont, int output_count); /** releasing common video resources */ -void __devexit mxr_release_video(struct mxr_device *mdev); +void mxr_release_video(struct mxr_device *mdev); struct mxr_layer *mxr_graph_layer_create(struct mxr_device *mdev, int idx); struct mxr_layer *mxr_vp_layer_create(struct mxr_device *mdev, int idx); diff --git a/drivers/media/video/s5p-tv/mixer_video.c b/drivers/media/video/s5p-tv/mixer_video.c index 7884bae..aa5996c 100644 --- a/drivers/media/video/s5p-tv/mixer_video.c +++ b/drivers/media/video/s5p-tv/mixer_video.c @@ -141,7 +141,7 @@ fail: return ret; } -void __devexit mxr_release_video(struct mxr_device *mdev) +void mxr_release_video(struct mxr_device *mdev) { int i;