From patchwork Tue Feb 7 23:03:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9561381 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D8C4F6047A for ; Tue, 7 Feb 2017 23:06:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEFCC28475 for ; Tue, 7 Feb 2017 23:06:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C39A22848E; Tue, 7 Feb 2017 23:06:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F36528475 for ; Tue, 7 Feb 2017 23:06:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755653AbdBGXGF (ORCPT ); Tue, 7 Feb 2017 18:06:05 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34027 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754197AbdBGXFa (ORCPT ); Tue, 7 Feb 2017 18:05:30 -0500 Received: by mail-wm0-f67.google.com with SMTP id c85so30981299wmi.1; Tue, 07 Feb 2017 15:04:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q73CdVLIk6vuhudTICMfnqAMooSDtHB4qcEuVKEhn5A=; b=rRBqOEPfYTk1TGq/pZopIJGHmR4y7LPaffZ011ESO0UJF0Xy9A/G1ye2iu5SxcbaDW DYo6PemMnrOXPEqllDVICkkN3nC66MmbvJN1VxaSemTl3s8CUv+5ICTxepiDF3dw2U0z 7MKQ7haKtPE9C/qX5nmiMzYfJlLbuR6QsX6M0rY/1Jyrnwid27xPHo+ecvZIwnVR1dZR gzELPIdYAT3U2ecL5jUKHe9gOMSwuqFq//kGCLRUPx08DZfNEKGAGr1RoXLPoUlU55K7 EOeb9xN1QB74LMIMsV2jjFYURBHjxlguFV7ig80rtF8TEqb0grOmZQ2R8pFnNc9XN8l0 V5Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q73CdVLIk6vuhudTICMfnqAMooSDtHB4qcEuVKEhn5A=; b=O1hAHV3UE920kylXdzhA5r4fpU+Hqx6xLvjKbyrJt6rZcdeG2ygKq6rfQQyo+zg9fI fEec6UAP/PPTNQylOwar6TdG7cDJNwGkb4HigIDi9aKg+FLfnlyZfb09ZDSuc+MZnfIy COO5cbaD0pPE9iAX3Bm5VX73hHQ6q6geTKL+LCx1DCIK9noBkXPMn47AmDIpEpLmvrUe Brd9w7fqQM1fG9/0lsiAeuB1AVnJayJ1ixa6uP6q6BrjOhsznFniWbZPECZGIemg8jaS FDgeBhQ9ue8HcemDQFtvQcbDIJ7xUQLALqwL0oedqZA8a9fJB9+YB31kf4sJUz5Eo2GQ BnNA== X-Gm-Message-State: AMke39nZXL0OJHtwGobbcOWOYzYs+/nl12WiMtWViQxK7y6zFD8vQDfa6M70q4/vYjQfig== X-Received: by 10.28.143.5 with SMTP id r5mr15445970wmd.141.1486508697466; Tue, 07 Feb 2017 15:04:57 -0800 (PST) Received: from fainelli-desktop.irv.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id b15sm9742283wra.4.2017.02.07.15.04.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 15:04:56 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org, linux-mips@linux-mips.org, linux-nfs@vger.kernel.org, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org, target-devel@vger.kernel.org Cc: Russell King , Andrew Lunn , Anna Schumaker , "David S. Miller" , Derek Chickles , Felix Manlunas , Florian Fainelli , "J. Bruce Fields" , Jeff Layton , Jiri Slaby , Kalle Valo , "Luis R. Rodriguez" , Madalin Bucur , Microchip Linux Driver Support , "Nicholas A. Bellinger" , Nick Kossifidis , Nicolas Ferre , Raghu Vatsavayi , Ralf Baechle , Satanand Burla , Thomas Petazzoni , Timur Tabi , Trond Myklebust , Vivien Didelot , Woojung Huh Subject: [PATCH net-next v2 09/12] MIPS: Octeon: Remove unnecessary MODULE_*() Date: Tue, 7 Feb 2017 15:03:02 -0800 Message-Id: <20170207230305.18222-10-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170207230305.18222-1-f.fainelli@gmail.com> References: <20170207230305.18222-1-f.fainelli@gmail.com> Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Russell King octeon-platform.c can not be built as a module for two reasons: (a) the Makefile doesn't allow it: obj-y := cpu.o setup.o octeon-platform.o octeon-irq.o csrc-octeon.o (b) the multiple *_initcall() statements, each of which are translated to a module_init() call when attempting a module build, become aliases to init_module(). Having more than one alias will cause a build error. Hence, rather than adding a linux/module.h include, remove the redundant MODULE_*() from this file. Acked-by: David Daney Signed-off-by: Russell King --- arch/mips/cavium-octeon/octeon-platform.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/mips/cavium-octeon/octeon-platform.c b/arch/mips/cavium-octeon/octeon-platform.c index 37a932d9148c..8297ce714c5e 100644 --- a/arch/mips/cavium-octeon/octeon-platform.c +++ b/arch/mips/cavium-octeon/octeon-platform.c @@ -1060,7 +1060,3 @@ static int __init octeon_publish_devices(void) return of_platform_bus_probe(NULL, octeon_ids, NULL); } arch_initcall(octeon_publish_devices); - -MODULE_AUTHOR("David Daney "); -MODULE_LICENSE("GPL"); -MODULE_DESCRIPTION("Platform driver for Octeon SOC");