From patchwork Mon Apr 29 05:32:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 2498601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id AC293DF25A for ; Mon, 29 Apr 2013 05:32:21 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWghH-0006En-AW; Mon, 29 Apr 2013 05:32:19 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWghE-0002RR-HH; Mon, 29 Apr 2013 05:32:16 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWghA-0002R8-9S for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2013 05:32:14 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM0001SW4NKBNH0@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2013 14:32:02 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.116]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 6F.9C.19350.2D50E715; Mon, 29 Apr 2013 14:32:02 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-e5-517e05d20709 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C8.72.01422.2D50E715; Mon, 29 Apr 2013 14:32:02 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.8.53]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MM0004VS4PDV5Y0@mmp1.samsung.com>; Mon, 29 Apr 2013 14:32:02 +0900 (KST) From: Inki Dae To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] module: fix mutiple defined issue Date: Mon, 29 Apr 2013 14:32:01 +0900 Message-id: <1367213521-26795-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.5.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsWyRsSkRPcSa12gwfcXEhZXvr5ns2hevJ7N YtL9CSwWmx5fY7W4vGsOmwOrx/65a9g97ncfZ/LYvKTeo2/LKkaPz5vkAlijuGxSUnMyy1KL 9O0SuDLe9vayFjzlqDi8dDJbA+MS9i5GTg4JAROJGXsuMkLYYhIX7q1n62Lk4hASWMooMav1 HTNM0c8PJ9ghEosYJSYdamaGcLqYJK7tPs8KUsUmoCoxccV9oHYODhEBG4kLN+1BwswCORJL vrwE2yAsYCRxZM9OsKEsQOVL9h8Gs3kFXCTaT69nhVimIPHryCoo+zObxK4neRD1AhLfJh9i ARkvISArsekA1G2SEgdX3GCZwCi4gJFhFaNoakFyQXFSepGpXnFibnFpXrpecn7uJkZgeJ7+ 92ziDsb7B6wPMSYDjZvILCWanA8M77ySeENjMyMLUxNTYyNzSzPShJXEedVbrAOFBNITS1Kz U1MLUovii0pzUosPMTJxcEo1MPbsmbBkUdb7FZyiUZLv17BsXfroqMF7z9MX6ouczVnviGvX Fv2MnRhwL+rQ9BshV1Rnn/I/7aTpdNBhinwta+mOrZxbjkpMXi9uonHbS9vkbtSWfQ/OX3xk 0DTzXBDf/3M7z6YxvTsjyLrioqSvicAZG75Zf3bPs3+2Kuv7BIXorM3COWqbFA2UWIozEg21 mIuKEwEwU6sxZQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsVy+t9jAd1LrHWBBhceCFpc+fqezaJ58Xo2 i0n3J7BYbHp8jdXi8q45bA6sHvvnrmH3uN99nMlj85J6j74tqxg9Pm+SC2CNamC0yUhNTEkt UkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAFarqRQlphTChQKSCwu VtK3wzQhNMRN1wKmMULXNyQIrsfIAA0krGHMeNvby1rwlKPi8NLJbA2MS9i7GDk5JARMJH5+ OAFli0lcuLeerYuRi0NIYBGjxKRDzcwQTheTxLXd51lBqtgEVCUmrrgPVMXBISJgI3Hhpj1I mFkgR2LJl5eMILawgJHEkT07mUFsFqDyJfsPg9m8Ai4S7afXs0IsU5D4dWQV6wRG7gWMDKsY RVMLkguKk9JzjfSKE3OLS/PS9ZLzczcxgsP/mfQOxlUNFocYBTgYlXh4AzbXBgqxJpYVV+Ye YpTgYFYS4Z19GyjEm5JYWZValB9fVJqTWnyIMRlo+0RmKdHkfGBs5pXEGxqbmBlZGpkbWhgZ m5MmrCTOe7DVOlBIID2xJDU7NbUgtQhmCxMHp1QD4+JnbuwN1pPW5d26o3a/xttkQ92hszei v85/7Tj5VceUufXO7Ko8cVoVi+4Jdr1T685OtrG58ZjzhPoktllnnh0JC53mffvEza/NTDIH P22327er9xbTpdf7vVcWrq9c+vvWtzSJN17PvaeySF+tUVqR6lSSsXvOnRvSa98Ima5eoZub 95jLxV2JpTgj0VCLuag4EQCjmweuwwIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130429_013212_548809_985759C3 X-CRM114-Status: GOOD ( 10.94 ) X-Spam-Score: -9.3 (---------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-9.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_HDRS_LCASE Odd capitalization of message header Cc: Inki Dae , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch fixes mutiple defined issue to MODULE_DEVICE_TABLE The issue could be induced when some framework which includes two more sub drivers, is built as one moudle because those sub drivers could have their own MODULE_DEVICE_TABLE. And 'struct of_device_id' isn't needed to be determined by type argument because the definition of 'of_device_id' should be fixed. So this patch makes 'of_devce_id' definition to be fixed and only its instance name to be defined by type. Signed-off-by: Inki Dae --- include/linux/module.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index 46f1ea0..ac5d79f 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -84,7 +84,7 @@ void trim_init_extable(struct module *m); #ifdef MODULE #define MODULE_GENERIC_TABLE(gtype,name) \ -extern const struct gtype##_id __mod_##gtype##_table \ +extern const struct of_device_id __mod_##gtype##_table \ __attribute__ ((unused, alias(__stringify(name)))) #else /* !MODULE */