Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753173AbbGVWYf (ORCPT ); Wed, 22 Jul 2015 18:24:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42151 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752818AbbGVWYc (ORCPT ); Wed, 22 Jul 2015 18:24:32 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1437576756-28388-1-git-send-email-ysato@users.sourceforge.jp> References: <1437576756-28388-1-git-send-email-ysato@users.sourceforge.jp> <1437023722-7432-1-git-send-email-ysato@users.sourceforge.jp> To: Yoshinori Sato Cc: dhowells@redhat.com, Arnd Bergmann , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] asm-generic: {get,put}_user ptr argument evaluate only 1 time MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15847.1437603868.1@warthog.procyon.org.uk> Date: Wed, 22 Jul 2015 23:24:28 +0100 Message-ID: <15848.1437603868@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 414 Lines: 14 Yoshinori Sato wrote: > #define put_user(x, ptr) \ > ({ \ > + const void *__p = (ptr); \ Not const here, though... David -- 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/