Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751670AbWIMHsG (ORCPT ); Wed, 13 Sep 2006 03:48:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751673AbWIMHsG (ORCPT ); Wed, 13 Sep 2006 03:48:06 -0400 Received: from nf-out-0910.google.com ([64.233.182.186]:18983 "EHLO nf-out-0910.google.com") by vger.kernel.org with ESMTP id S1751670AbWIMHsD (ORCPT ); Wed, 13 Sep 2006 03:48:03 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mEar5yZ4lvhgAHiRl9Byp+dh2Z0GAX1oGZdal7d3Wu728wurLgJ+fxgLv9LJ2ng3u3RY4cNuhUR4eGMj3N8NpWhMIKGQLAcPu6HR959VRICmEgHjWWzmI3kWmLFxn228ATP3TJ4u/Ml3Mum3MQ5NTLD0YHKKIUsopcR4NxjT6H8= Message-ID: <94a0d4530609130048g67860be0p53932276f1ad745a@mail.gmail.com> Date: Wed, 13 Sep 2006 02:48:01 -0500 From: "Felipe Contreras" To: lkml Subject: [PATCH] Random warning fixes MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_323516_14103161.1158133681729" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5860 Lines: 94 ------=_Part_323516_14103161.1158133681729 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I compiled 2.6.18-rc7 and I fixed all the warnings I saw. The patch is attached. The change I'm not so sure about is the __init additions in ACPI. It fixes the warnings, but someone who knows better should check it. Cheers. -- Felipe Contreras ------=_Part_323516_14103161.1158133681729 Content-Type: text/x-patch; name=linux-2.6.18-rc7-felipec.diff; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_es1et2hm Content-Disposition: attachment; filename="linux-2.6.18-rc7-felipec.diff"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aXRjaCAoY21kKSB7CmRpZmYgLXVyIGxpbnV4LTIu Ni4xOC1yYzctb3JpZy9pcGMvc2VtLmMgbGludXgtMi42LjE4LXJjNy1uZXcvaXBjL3NlbS5jCi0t LSBsaW51eC0yLjYuMTgtcmM3LW9yaWcvaXBjL3NlbS5jCTIwMDYtMDgtMDYgMTM6MjA6MTEuMDAw MDAwMDAwIC0wNTAwCisrKyBsaW51eC0yLjYuMTgtcmM3LW5ldy9pcGMvc2VtLmMJMjAwNi0wOS0x MyAwMTozNTo1Ni4wMDAwMDAwMDAgLTA1MDAKQEAgLTgwOSw2ICs4MDksOCBAQAogCXN0cnVjdCBz ZW1fc2V0YnVmIHNldGJ1ZjsKIAlzdHJ1Y3Qga2Vybl9pcGNfcGVybSAqaXBjcDsKIAorCXNldGJ1 Zi51aWQgPSBzZXRidWYuZ2lkID0gc2V0YnVmLm1vZGUgPSAwOworCiAJaWYoY21kID09IElQQ19T RVQpIHsKIAkJaWYoY29weV9zZW1pZF9mcm9tX3VzZXIgKCZzZXRidWYsIGFyZy5idWYsIHZlcnNp b24pKQogCQkJcmV0dXJuIC1FRkFVTFQ7Cg== ------=_Part_323516_14103161.1158133681729-- - 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/