Received: by mail.netbsd.org (Postfix, from userid 605) id 66FDD14A2FA; Tue, 13 Oct 2015 00:42:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D230014A2F6 for ; Tue, 13 Oct 2015 00:42:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id UYOwllWw8Wzk for ; Tue, 13 Oct 2015 00:42:20 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 5118714A2E0 for ; Tue, 13 Oct 2015 00:42:20 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 4B95998; Tue, 13 Oct 2015 00:42:20 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 13 Oct 2015 00:42:20 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/external/bsd/drm2/include/linux To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20151013004220.4B95998@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: riastradh Date: Tue Oct 13 00:42:20 UTC 2015 Modified Files: src/sys/external/bsd/drm2/include/linux: bitops.h Log Message: Fix indexing convention of Linux __ffs/__ffs64 shims. They reject zero input, and yield zero-based indexing, unlike our ffs/ffs64, which return zero for zero and yield one-based indexing. May let nouveau make a little more progress toward booting! Found by mrg@. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/external/bsd/drm2/include/linux/bitops.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.