From patchwork Fri Dec 21 23:44:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 207897 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id AF3132C0087 for ; Sat, 22 Dec 2012 10:41:28 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752288Ab2LUXlZ (ORCPT ); Fri, 21 Dec 2012 18:41:25 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:60386 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751555Ab2LUXlX (ORCPT ); Fri, 21 Dec 2012 18:41:23 -0500 Received: by mail-pa0-f47.google.com with SMTP id fa10so3105689pad.34 for ; Fri, 21 Dec 2012 15:41:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent:x-gm-message-state; bh=am+jVrpvvPEoc2Jp6fhaWbsToHHyr76hcK94onRu2Cc=; b=ha0pJzwe4B7hmi8WmiVuYkZKtoUSrE6oV0dbsNNkQAKnuY0vNXyROgisSWO87wdy1j 8ZtdS2il3hDrwBN8OCG4xp0Ipdkvwkdb+oG874VTI3yLeCrmXUxiFQBZRGx2hfVE7Gsx Ttkv67/z+4JoonVeqt/ahaBR0swPs6BFHIejXkAsIJd82F+GV5hZy7QaC9F29DJaQoBU 4GPpBXtOyR9SbbotiU3HvftYkZo6tfMA7/I9G1MeNoBDQKc87kc/kavcbq9pJG7OggaF Yq+s+/HuwuLDbgZlKRYa46wdwiqoAVUoY0f9Owxj2/T2UQLZwGZYGLCaSPLTER+SrQ9o G2ww== X-Received: by 10.68.252.228 with SMTP id zv4mr44506895pbc.134.1356133283268; Fri, 21 Dec 2012 15:41:23 -0800 (PST) Received: from localhost (c-67-168-183-230.hsd1.wa.comcast.net. [67.168.183.230]) by mx.google.com with ESMTPS id ni8sm7730650pbc.70.2012.12.21.15.41.21 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Dec 2012 15:41:22 -0800 (PST) Date: Fri, 21 Dec 2012 15:44:29 -0800 From: Greg Kroah-Hartman To: netdev@vger.kernel.org Cc: Bill Pemberton Subject: [PATCH] CONFIG_HOTPLUG removal from networking core Message-ID: <20121221234429.GB13447@kroah.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQkt5XLms+2YDCb0uI2U+KgiEoVTQqDoVt8Ha+gdGt1y+xMCLOuiapPR959IPRT0JxkqzVLE Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org CONFIG_HOTPLUG is always enabled now, so remove the unused code that was trying to be compiled out when this option was disabled, in the networking core. Cc: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 334efd5..28c5f5a 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -1334,7 +1334,6 @@ struct kobj_ns_type_operations net_ns_type_operations = { }; EXPORT_SYMBOL_GPL(net_ns_type_operations); -#ifdef CONFIG_HOTPLUG static int netdev_uevent(struct device *d, struct kobj_uevent_env *env) { struct net_device *dev = to_net_dev(d); @@ -1353,7 +1352,6 @@ static int netdev_uevent(struct device *d, struct kobj_uevent_env *env) exit: return retval; } -#endif /* * netdev_release -- destroy and free a dead device. @@ -1382,9 +1380,7 @@ static struct class net_class = { #ifdef CONFIG_SYSFS .dev_attrs = net_class_attributes, #endif /* CONFIG_SYSFS */ -#ifdef CONFIG_HOTPLUG .dev_uevent = netdev_uevent, -#endif .ns_type = &net_ns_type_operations, .namespace = net_namespace, }; diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 6e53089..82c4fc7 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2365,7 +2365,6 @@ int set_regdom(const struct ieee80211_regdomain *rd) return r; } -#ifdef CONFIG_HOTPLUG int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env) { if (last_request && !last_request->processed) { @@ -2377,12 +2376,6 @@ int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env) return 0; } -#else -int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env) -{ - return -ENODEV; -} -#endif /* CONFIG_HOTPLUG */ void wiphy_regulatory_register(struct wiphy *wiphy) { diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c index 9bf6d5e..1f6f01e 100644 --- a/net/wireless/sysfs.c +++ b/net/wireless/sysfs.c @@ -77,13 +77,11 @@ static void wiphy_dev_release(struct device *dev) cfg80211_dev_free(rdev); } -#ifdef CONFIG_HOTPLUG static int wiphy_uevent(struct device *dev, struct kobj_uevent_env *env) { /* TODO, we probably need stuff here */ return 0; } -#endif static int wiphy_suspend(struct device *dev, pm_message_t state) { @@ -134,9 +132,7 @@ struct class ieee80211_class = { .owner = THIS_MODULE, .dev_release = wiphy_dev_release, .dev_attrs = ieee80211_dev_attrs, -#ifdef CONFIG_HOTPLUG .dev_uevent = wiphy_uevent, -#endif .suspend = wiphy_suspend, .resume = wiphy_resume, .ns_type = &net_ns_type_operations,