Skip to contentSkip to conversation

make i2c-core driver_lock static (fwd)

TRIVIAL Frodo Looijaard 1 participant 2 messages May 19, 2005 I2C

lore
Share & tools
lore
#0 lore raw

Rusty Trivial Russell wrote:
From [email protected] Thu Feb 6 07:10:03 2003
Received: by morannon.frodo.local (8.11.3/8.11.3) id h166A3q32167 ; Thu, 6 Feb 2003 07:10:03 +0100
Return-Path: <[email protected]>
Received: from pop3.dds.nl [213.196.1.204]

	by localhost with POP3 (fetchmail-6.2.0)
	for frodo@localhost (single-drop); Thu, 06 Feb 2003 07:10:03 +0100 (CET)

Received: (qmail-ldap/ctrl 31865 invoked from network); 6 Feb 2003 05:57:47 -0000
Received: from dp.samba.org (HELO lists.samba.org) ([66.70.73.150]) (envelope-sender <[email protected]>)
by dds.nl (qmail-ldap-1.03) with SMTP
for <[email protected]>; 6 Feb 2003 05:57:47 -0000
Received: by lists.samba.org (Postfix, from userid 590)

	id C4ED02C108; Thu,  6 Feb 2003 05:57:46 +0000 (GMT)

From: Rusty Trivial Russell <[email protected]>
To: Simon Vogl <[email protected]>, Frodo Looijaard <[email protected]>
Subject: [TRIVIAL] make i2c-core driver_lock static
Date: Thu, 06 Feb 2003 16:49:02 +1100
Sender: [email protected]
Message-Id: <[email protected]>
X-Loop-Procmail: PreventLoop

From: Muli Ben-Yehuda <[email protected]>

The i2c driver_lock is needlessly exported. Attached is a patch to make it static. Compiles fine.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.931 -> 1.932
# drivers/i2c/i2c-core.c 1.14 -> 1.15
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/01/12 [email protected] 1.932

  # make the driver_lock mutex static, to avoid polluting the global name space. 
  # --------------------------------------------
  #
drivers/i2c/i2c-core.c renamed from drivers/i2c/i2c-core.c.orig +1 -1
@@ -57,7 +57,7 @@
 
 /**** lock for writing to global variables: the adapter & driver list */
 DECLARE_MUTEX(adap_lock);
-DECLARE_MUTEX(driver_lock);
+static DECLARE_MUTEX(driver_lock);
 
 /**** adapter list */
 static struct i2c_adapter *adapters[I2C_ADAP_MAX];
Signature · 9 lines
  Don't blame me: the Monkey is driving
  File: Muli Ben-Yehuda <[email protected]>: [PATCH] make i2c-core driver_lock static


-- 
Frodo Looijaard <[email protected]>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.
#1 lore raw

----- Forwarded message from Rusty Trivial Russell -----

Received: by morannon.frodo.local (8.11.3/8.11.3) id h1A1t9408297 ; Mon, 10 Feb 2003 02:55:09 +0100
Return-path: <[email protected]>
Received: from pop3.dds.nl [213.196.1.204]

	by localhost with POP3 (fetchmail-6.2.0)
	for frodo@localhost (single-drop); Mon, 10 Feb 2003 02:55:09 +0100 (CET)
Received: (qmail-ldap/ctrl 6844 invoked from network); 10 Feb 2003 01:46:42 -0000
Received: from dp.samba.org (HELO lists.samba.org) ([66.70.73.150]) (envelope-sender <[email protected]>)
	         by dds.nl (qmail-ldap-1.03) with SMTP
	         for <[email protected]>; 10 Feb 2003 01:46:42 -0000
Received: by lists.samba.org (Postfix, from userid 590)
	id 90F282C262; Mon, 10 Feb 2003 01:46:41 +0000 (GMT)

From: Rusty Trivial Russell <[email protected]>
To: Linus Torvalds <[email protected]>
cc: Simon G. Vogl <[email protected]>, Frodo Looijaard <[email protected]>
Subject: [TRIVIAL] make i2c-core driver_lock static
Date: Mon, 10 Feb 2003 12:36:23 +1100
Sender: [email protected]
Message-ID: <[email protected]>
X-Loop-Procmail: PreventLoop

From: Muli Ben-Yehuda <[email protected]>

The i2c driver_lock is needlessly exported. Attached is a patch to make it static. Compiles fine.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.931 -> 1.932
# drivers/i2c/i2c-core.c 1.14 -> 1.15
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/01/12 [email protected] 1.932

  # make the driver_lock mutex static, to avoid polluting the global name space. 
  # --------------------------------------------
  #
drivers/i2c/i2c-core.c renamed from drivers/i2c/i2c-core.c.orig +1 -1
@@ -57,7 +57,7 @@
 
 /**** lock for writing to global variables: the adapter & driver list */
 DECLARE_MUTEX(adap_lock);
-DECLARE_MUTEX(driver_lock);
+static DECLARE_MUTEX(driver_lock);
 
 /**** adapter list */
 static struct i2c_adapter *adapters[I2C_ADAP_MAX];
Signature · 10 lines
  Don't blame me: the Monkey is driving
  File: Muli Ben-Yehuda <[email protected]>: [PATCH] make i2c-core driver_lock static

----- End of forwarded message from Rusty Trivial Russell -----

-- 
Frodo Looijaard <[email protected]>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.