Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753019AbdC0Oqi (ORCPT ); Mon, 27 Mar 2017 10:46:38 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:46498 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003AbdC0Oqc (ORCPT ); Mon, 27 Mar 2017 10:46:32 -0400 Date: Mon, 27 Mar 2017 16:46:06 +0200 (CEST) From: Thomas Gleixner To: Mason cc: Marc Zyngier , Bjorn Helgaas , Robin Murphy , Lorenzo Pieralisi , Liviu Dudau , David Laight , linux-pci , Linux ARM , Thibaud Cornic , Phuong Nguyen , LKML Subject: Re: [RFC PATCH v0.2] PCI: Add support for tango PCIe host bridge In-Reply-To: <9c65e647-8395-4467-53ca-c20ed374131b@free.fr> Message-ID: References: <91db1f47-3024-9712-309a-fb4b21e42028@free.fr> <310db9dd-7db6-2106-2e53-f0083b2d3758@free.fr> <9fffedd4-6292-b662-a588-a68fe7380af6@free.fr> <6e847686-43c6-11e9-6782-dec0fe81a58e@arm.com> <9c65e647-8395-4467-53ca-c20ed374131b@free.fr> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 699 Lines: 22 On Mon, 27 Mar 2017, Mason wrote: > On 24/03/2017 19:22, Marc Zyngier wrote: > > > You cannot directly use a pointer to a u32 in any of the bitmap > > operations. You need to copy the value to an unsigned long, and > > apply the bitmap op on that. > > On my platform, find_first_zero_bit() resolves to > > int _find_first_zero_bit_le(const void * p, unsigned size); > > If the underlying implementation actually expects an unsigned long > pointer, should the function prototype be changed? Errm? Why are you worrying about the underlying implementations? find_first_zero_bit() is what you are supposed to use in your code. And that explicitely takes a unsigned long pointer. Thanks, tglx