Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6829073ybx; Mon, 11 Nov 2019 15:40:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzJYDbXb7hnovXMJ/kspPTPnrsKdf4NSdj9dsoH+RcdN8JJauGc1dlYOwVMZb7y2IYfktfX X-Received: by 2002:a17:906:3019:: with SMTP id 25mr25661925ejz.280.1573515641681; Mon, 11 Nov 2019 15:40:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573515641; cv=none; d=google.com; s=arc-20160816; b=bS8VTsW6+roAj0pZ2R5JRgMXMJl4VRjqV5Wil71FGpbhccxtECNUZVQ3NpxYCw73XJ aieytDNh816BO2zyvsZeGjPrNSIcTlx3dWTDHJOPjhMANzMm0dSEAfKwMrK47kdFIF/W De66PddSxOyc4GObKyjKUVnpA4iG74vz4k3zywLgUte8yPi41WbGZiKOk8PtdV1z8Bal GOV4RTocucxcV7+zgtyc4E5dcZ5wkqFzwGY+wi3BYz1/4nmbw7L9b76BVgpavH49h+oO FvEgWY41w9VEvghV9PeE9KfvgYDNaqHUOBw8dlWZcJ//8GcmwJoc73ng+mD+x2NXHN8D uwng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=9Q4fgRwjtDzURJva1tWIIY3a82nsLiGSoBKG/94RNTY=; b=TXxnhQW1N1r3Jvfj0P6vb4yYOVZroQkSW20XBCoX9SWPVseRsif+2WUERJrBv7fCyR QbFSsaiSPlyHHl7GY31E1VNbHNSHWXaEW7ApcsLwstA7pRuDZPvEk7lpoIkArNiHW2gE C9m7C/catKGURaOc7xVckuVEPrm/IvneHG4XQwyKYHpcfpodLWawDvtN9HOvhz0nMGjr NQmqLl9GO3O/3EvvvtxbyA4bXKoJlEONEtTjLJKakDMXwR2KFPTS2EJg2rQSAdrUMXZL 6S5gqh41XX2y5X5S/mZJHWN4rnu7BhOYxAz3f6WfYHDUQFKVJrCI10bijekHeMO+dcyT w2fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=j6tITVSL; 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 a27si12692220edm.187.2019.11.11.15.40.18; Mon, 11 Nov 2019 15:40:41 -0800 (PST) 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=@ellerman.id.au header.s=201909 header.b=j6tITVSL; 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 S1727385AbfKKXjC (ORCPT + 99 others); Mon, 11 Nov 2019 18:39:02 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:42047 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726877AbfKKXjB (ORCPT ); Mon, 11 Nov 2019 18:39:01 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 47BnQC2p1gz9sPF; Tue, 12 Nov 2019 10:38:59 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1573515539; bh=of9FC9t2V9xW8CXha5HyP+jg6moyYbSVDlJkzkj4WLk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=j6tITVSL0NQ4whoYHE8PXvbulMlLctyUar+U0KznKjBWKYh6I/WylI3skpsEL+H7q L2IFGE7PsOPMQKFbc9sGPwe/+F44NSfXc0KxGiV7gJr7nTwQ9MKDA+bmANZhvgzQsO ntFwvCIUd2HVDlocywKQ9KaRwlmGBR2opmuT2EtRRlS4Z1Kh9uUolwJ+7ie0ZUABWD IQ5Q+SOu9qq9pCCCETSV2McT/Luz3gikYYVQrWbbvbcOw3ks2TlnDg/Kj9mwTee0s5 bJMhgC8iLuUb22dUEoUmviyu/voPztQCKy2AXxWM0SJI5jLjJ8fVhLj/0975Gv2MNp DmPe9+4xaRSxg== From: Michael Ellerman To: Eric Dumazet , Benjamin Herrenschmidt Cc: linux-kernel , "David S . Miller" , Eric Dumazet , Eric Dumazet , kbuild test robot Subject: Re: [PATCH] powerpc: add const qual to local_read() parameter In-Reply-To: <20191108141353.193961-1-edumazet@google.com> References: <20191108141353.193961-1-edumazet@google.com> Date: Tue, 12 Nov 2019 10:38:56 +1100 Message-ID: <87y2wm2dbj.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric Dumazet writes: > A patch in net-next triggered a compile error on powerpc. Would be nice to mention the compiler error, I haven't seen the report. > This seems reasonable to relax powerpc local_read() requirements. Seems fine. Acked-by: Michael Ellerman Dave can you please put this in net-next to limit the window of breakage. cheers > Fixes: 316580b69d0a ("u64_stats: provide u64_stats_t type") > Signed-off-by: Eric Dumazet > Reported-by: kbuild test robot > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: linuxppc-dev@lists.ozlabs.org Seems it didn't actually get cc'ed to linuxppc-dev for some reason. > --- > arch/powerpc/include/asm/local.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/include/asm/local.h b/arch/powerpc/include/asm/local.h > index fdd00939270bf08113b537a090d6a6e34a048361..bc4bd19b7fc235b80ec1132f44409b6fe1057975 100644 > --- a/arch/powerpc/include/asm/local.h > +++ b/arch/powerpc/include/asm/local.h > @@ -17,7 +17,7 @@ typedef struct > > #define LOCAL_INIT(i) { (i) } > > -static __inline__ long local_read(local_t *l) > +static __inline__ long local_read(const local_t *l) > { > return READ_ONCE(l->v); > } > -- > 2.24.0.432.g9d3f5f5b63-goog