From patchwork Mon Sep 24 14:30:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Gennari X-Patchwork-Id: 14625 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1TG9gR-0003lu-Lj for patchwork@linuxtv.org; Mon, 24 Sep 2012 16:30:51 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-3) with esmtp for id 1TG9gR-0005Qk-Dg; Mon, 24 Sep 2012 16:30:51 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753644Ab2IXOat (ORCPT ); Mon, 24 Sep 2012 10:30:49 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:54440 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753143Ab2IXOas (ORCPT ); Mon, 24 Sep 2012 10:30:48 -0400 Received: by bkcjk13 with SMTP id jk13so952104bkc.19 for ; Mon, 24 Sep 2012 07:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=Gj7NG2j5Fzn6uPWaAH7nvZRXEhcI7aaxfTMLr5ddGPs=; b=QT0WampPatFRqiT2YEfo6GcPImcI4CXwMB9+xQnT64wf47YEUTlwxGvK2VMttm1bpM zR0KIqYsSXFeH+Pn08tgeGxT8r8GJeM0Q9LkoTby1njYbwUaCGQ3CNacPbgi6VcBBSie p3gir9VgW35sVo0ZmJZQY+sFeTrYzNh+VVtHgXvqOeNtOLNT87FFFvNky75FhXQmc2OS XcePS2G90Zx9uDRhcVafznHnoHsH8R2f+t+84cz3yKEJUtslcGweITHr9vCNnMRTMiHM 0K2+Wz/fJSBLFNrRxefHwyzUKQGv8mutMSknkv8a5SKkKw95bzYV8L2w2OH22YespfL/ BDKw== Received: by 10.204.129.27 with SMTP id m27mr1982518bks.115.1348497047253; Mon, 24 Sep 2012 07:30:47 -0700 (PDT) Received: from localhost.localdomain (93-50-34-119.ip150.fastwebnet.it. [93.50.34.119]) by mx.google.com with ESMTPS id z25sm4316402bkz.15.2012.09.24.07.30.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Sep 2012 07:30:46 -0700 (PDT) From: Gianluca Gennari To: linux-media@vger.kernel.org, mchehab@redhat.com, hans.verkuil@cisco.com Cc: Gianluca Gennari Subject: [PATCH] media_build: add module_pci_driver to compat.h Date: Mon, 24 Sep 2012 16:30:35 +0200 Message-Id: <1348497035-28470-1-git-send-email-gennarone@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.9.24.142119 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' FORGED_FROM_GMAIL 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1400_1499 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __C230066_P3_2 0, __CP_URI_IN_BODY 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' This patch corrects this warnings on a Ubuntu 10.04 system with kernel 2.6.32-43: bt87x.c:972: warning: data definition has no type or storage class bt87x.c:972: warning: type defaults to 'int' in declaration of 'module_pci_driver' bt87x.c:972: warning: parameter names (without types) in function declaration bt87x.c:965: warning: 'bt87x_driver' defined but not used core.c:321: warning: data definition has no type or storage class core.c:321: warning: type defaults to 'int' in declaration of 'module_pci_driver' core.c:321: warning: parameter names (without types) in function declaration core.c:314: warning: 'solo_pci_driver' defined but not used Signed-off-by: Gianluca Gennari --- v4l/compat.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/v4l/compat.h b/v4l/compat.h index fdc6d4a..8d5c13a 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -1064,4 +1064,10 @@ static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) #define printk_ratelimited printk #endif +#ifndef module_pci_driver +#define module_pci_driver(__pci_driver) \ + module_driver(__pci_driver, pci_register_driver, \ + pci_unregister_driver) +#endif + #endif /* _COMPAT_H */