Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5603067img; Wed, 27 Mar 2019 11:31:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDCTRmZu13J+WtxferZrkzEBbLBqyE7OCJJD+wXqlL/x0GkauCu8DuJtJ+O1ruA47jPkiD X-Received: by 2002:a63:4b0a:: with SMTP id y10mr35596410pga.66.1553711462278; Wed, 27 Mar 2019 11:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553711462; cv=none; d=google.com; s=arc-20160816; b=ikLhyVjMYtbmr5eCKyxn8B+jxJ0i41yz9W5hJtuyOyz8pV6pQavb1UKhibzf0wU7b8 ymfF3dCj5mJCMVcNZ1OIT7V24pksoKp3beLNxhdiVsubZ4kwe7nLROWKAeCMyjOmlwHn FKuaA3WEK2Jm7d29obAcVNRSexMquWT9PhlEcqCbY96DGqf7yN2mAz3jvaHLo4SGuCJQ rwD2xRAtVkjCXVm5F7BdHD3CT1RzTNE13j5zTaF3dTlyHcSRbold4xDvuKIeQO/ii+KG E53uo8VVuu4D85II+64SUXgQOY/6+uUrBsdj3IHhrEFLNMSgWE+VoBQACjOfvAvr4ROA +nvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+7k1n8REtIn0RcrqmOKtIEwgsN85ldKQeUyaWcMIqtg=; b=JmaKeHR9Q5zshN4aAtbOOlfkh5m35kRwvCEU73CnTAycw4wP2fNO7B9va80FfAazyq BoUUwZkR0dxWgo5GcUB2ApX1AQ/1YIM57p5Qt8EY/NLGbTQjhHyfSxcijKP0M0XVWaqR dtsf+BdP8eWBJVkJ+GRMUqkAncKbZ3RtObQ+jg/ZGKxIIcc65eNjri7QTKJVS29V+Yt5 L6+y5QkHW0HC5hTqIVh8xLGwTue6YeoN9bVpEOSYVFhB/5H9OEy1w2nDFQ8uVRWRHNqH 0SOL9/ldYuSlqyR6CVknPS7ZIZ4uL4ogP8r5FO32mRTc7+E6l1i3KlHKRZDXHYjiq43Q wtXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="OyBr1le/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si13042452pls.259.2019.03.27.11.30.47; Wed, 27 Mar 2019 11:31:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="OyBr1le/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391806AbfC0S2l (ORCPT + 99 others); Wed, 27 Mar 2019 14:28:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:48682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391905AbfC0S2g (ORCPT ); Wed, 27 Mar 2019 14:28:36 -0400 Received: from localhost (unknown [88.128.80.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD34620651; Wed, 27 Mar 2019 18:28:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553711316; bh=jf5FBSIfuopYRz4BJUbyXjwdIVrEyxaUf4nAFx7faUY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OyBr1le/GpjmQFlDE3wHm9TP2Aci6ODydOuK101Zwkq5R5ztdLo161lLL5bO9zlzH EIXgslKl0upwfqosSmofRGI4hqAUbObIZDNqy1WQkvMntPXLQCHx/EYe0EdWpMUmco Q+23BBwEyhLemfeZYHVrtx2NfwRszG5rYfJuPV1A= Date: Thu, 28 Mar 2019 01:45:42 +0900 From: Greg KH To: Patrick Venture Cc: arnd@arndb.de, joel@jms.id.au, andrew@aj.id.au, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: Re: [PATCH v7 2/2] drivers/misc: Add Aspeed P2A control driver Message-ID: <20190327164542.GC11712@kroah.com> References: <20190312163101.155910-1-venture@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190312163101.155910-1-venture@google.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 12, 2019 at 09:31:01AM -0700, Patrick Venture wrote: > + phys_addr_t mem_base; Is this really a 32bit value? Your ioctl thinks it is: > +struct aspeed_p2a_ctrl_mapping { > + __u32 addr; Does this driver not work on a 64bit kernel? > + __u32 length; > + __u32 flags; > +}; addr really should be __u32 here so you don't have to mess with 32/64 bit user/kernel issues, right? thanks, greg k-h