Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030211AbWJCPZv (ORCPT ); Tue, 3 Oct 2006 11:25:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030215AbWJCPZv (ORCPT ); Tue, 3 Oct 2006 11:25:51 -0400 Received: from mout0.freenet.de ([194.97.50.131]:29333 "EHLO mout0.freenet.de") by vger.kernel.org with ESMTP id S1030211AbWJCPZT (ORCPT ); Tue, 3 Oct 2006 11:25:19 -0400 Date: Tue, 03 Oct 2006 17:26:19 +0200 To: "linux-kernel@vger.kernel.org" Subject: [PATCH 7/11] 2.6.18-mm3 pktcdvd: make procfs interface optional Reply-To: balagi@justmail.de From: "Thomas Maier" Cc: "petero2@telia.com" , "akpm@osdl.org" Content-Type: multipart/mixed; boundary=----------CTSVsVO6lokKwSsaBa0pv2 MIME-Version: 1.0 Message-ID: User-Agent: Opera Mail/9.00 (Win32) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 15113 Lines: 247 ------------CTSVsVO6lokKwSsaBa0pv2 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Hello, this patch makes the procfs interface optional and groups the procfs functions together. New kernel config parameter: CDROM_PKTCDVD_PROCINTF http://people.freenet.de/BalaGi/download/pktcdvd-7-procfs-optional_2.6.18.patch Signed-off-by: Thomas Maier -Thomas Maier ------------CTSVsVO6lokKwSsaBa0pv2 Content-Disposition: attachment; filename=pktcdvd-7-procfs-optional_2.6.18.patch Content-Type: application/octet-stream; name=pktcdvd-7-procfs-optional_2.6.18.patch Content-Transfer-Encoding: Base64 ZGlmZiAtdXJwTiA2LXN5c2ZzL2RyaXZlcnMvYmxvY2svS2NvbmZpZyA3LXByb2Nm cy1vcHRpb25hbC9kcml2ZXJzL2Jsb2NrL0tjb25maWcKLS0tIDYtc3lzZnMvZHJp dmVycy9ibG9jay9LY29uZmlnCTIwMDYtMTAtMDMgMTE6NDk6MTcuMD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51eC9wa3RjZHZkLmgKLS0tIDYtc3lzZnMvaW5jbHVk ZS9saW51eC9wa3RjZHZkLmgJMjAwNi0xMC0wMyAxMjo1NDo0MS4wMDAwMDAwMDAg KzAyMDAKKysrIDctcHJvY2ZzLW9wdGlvbmFsL2luY2x1ZGUvbGludXgvcGt0Y2R2 ZC5oCTIwMDYtMTAtMDMgMTM6MDk6MTguMDAwMDAwMDAwICswMjAwCkBAIC0xMDgs MTIgKzEwOCwyMSBAQCBzdHJ1Y3QgcGt0X2N0cmxfY29tbWFuZCB7CiAjZGVmaW5l IFBBQ0tFVF9DVFJMX0NNRAkJX0lPV1IoUEFDS0VUX0lPQ1RMX01BR0lDLCAxLCBz dHJ1Y3QgcGt0X2N0cmxfY29tbWFuZCkKIAogI2lmZGVmIF9fS0VSTkVMX18KKyNp bmNsdWRlIDxsaW51eC9jb25maWcuaD4KICNpbmNsdWRlIDxsaW51eC9ibGtkZXYu aD4KICNpbmNsdWRlIDxsaW51eC9jb21wbGV0aW9uLmg+CiAjaW5jbHVkZSA8bGlu dXgvY2Ryb20uaD4KICNpbmNsdWRlIDxsaW51eC9rb2JqZWN0Lmg+CiAjaW5jbHVk ZSA8bGludXgvc3lzZnMuaD4KIAorLyogdXNlIChvbGQpIHByb2NmcyBpbnRlcmZh Y2U/ICovCisjaWZkZWYgQ09ORklHX0NEUk9NX1BLVENEVkRfUFJPQ0lOVEYKKyNk ZWZpbmUgUEtUX1VTRV9QUk9DRlMgIDEKKyNlbHNlCisjZGVmaW5lIFBLVF9VU0Vf UFJPQ0ZTICAwCisjZW5kaWYKKworCiBzdHJ1Y3QgcGFja2V0X3NldHRpbmdzCiB7 CiAJX191MzIJCQlzaXplOwkJLyogcGFja2V0IHNpemUgaW4gKDUxMiBieXRlKSBz ZWN0b3JzICovCg== ------------CTSVsVO6lokKwSsaBa0pv2-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/