----- 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: <rusty at rustcorp.com.au> Received: from pop3.dds.nl [213.196.1.204] by localhost with POP3 (fetchmail-6.2.0) for frodo at 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 <rusty at samba.org>) by dds.nl (qmail-ldap-1.03) with SMTP for <frodol at dds.nl>; 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 <rusty at rustcorp.com.au> To: Linus Torvalds <torvalds at transmeta.com> cc: Simon G. Vogl <simon at tk.uni-linz.ac.at>, Frodo Looijaard <frodol at dds.nl> Subject: [TRIVIAL] make i2c-core driver_lock static Date: Mon, 10 Feb 2003 12:36:23 +1100 Sender: rusty at rustcorp.com.au Message-ID: <20030210014641.90F282C262 at lists.samba.org> X-Loop-Procmail: PreventLoop From: Muli Ben-Yehuda <mulix at mulix.org> 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 mulix at alhambra.mulix.org 1.932 # make the driver_lock mutex static, to avoid polluting the global name space. # -------------------------------------------- # --- trivial-2.5.59-bk3/drivers/i2c/i2c-core.c.orig 2003-02-10 12:29:53.000000000 +1100 +++ trivial-2.5.59-bk3/drivers/i2c/i2c-core.c 2003-02-10 12:29:53.000000000 +1100 @@ -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]; -- Don't blame me: the Monkey is driving File: Muli Ben-Yehuda <mulix at mulix.org>: [PATCH] make i2c-core driver_lock static ----- End of forwarded message from Rusty Trivial Russell ----- -- Frodo Looijaard <frodol at dds.nl> 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.