Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2568507ybx; Fri, 8 Nov 2019 06:15:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyHAdAjjUzt6CDaiBPQh3kHjyu7ElmrMN5gWcoC3tNOPfEO+4TVcqMtS58QbD0rLR2K1wnU X-Received: by 2002:a50:e68c:: with SMTP id z12mr10804428edm.53.1573222505319; Fri, 08 Nov 2019 06:15:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573222505; cv=none; d=google.com; s=arc-20160816; b=XOuLBYu1Khm2UNQAV1yX0fQ2RyCbSKi291CxmpZ0dA0WkFCKEFGNe+AGrexqvtzFQ2 ISUjeYhhPpcxFIwetQyxvoU0t9okl/3L+RLvB43Me9+FS5+WcX7551YN2cuZDKkPJjZs QpaIDnCfOShh4osIlANO8pxcKXYBBdmzGv03Yulo4qN3vEdVnqO2or6IAsMAu6ASwt4D DxOm/VD7yWGR3bgb01JVVyo0iC9VZGKLVuDleL4yM7yIWlSrBnZznVyGbO4ZjTtIk0tl 4mmnSqF1dFyaV1cFdPV09ELV5qV3PM6qn3anmKKav8yKQslyM++JYR6Lz4FqCFuQ3/Ps Sjow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=kvgCLct7rYR3LjviNWyKbkLaMi+v4J1t5e+g4Yg8dBw=; b=HWgf4qLicfTcAfuSxHPF8tPfTzOU1OuXef8Xsjbm2XZyeNuzDQzEB7/O1aBj6IJq0G aJuUej3E2NlCDywfY4ddiWF2V68hPWTsRM4hyHR1TFJ81MRHCMoRbb97XZrf4GUsg5xB CId2Oihyp+8De05oGbuZlxBUcBTTnpVfJYeZ2cgtvj5jrBNBmIhhkWd/0RPoMgpKzmu4 GIp4wOuIFvPjfXhbOb14c/FSevs+hNhdbkc+dnFBd2DqPjtPtgo9pbbKbWJ7HcHj85o2 4RLCwSVQ/j1sD1356V715GJDWqOR/Qpy9OidOO41QfFmcPok4hmmoKoAzKc67ahbFsDG iueQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fj1xYv2Y; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si4543976edl.371.2019.11.08.06.14.39; Fri, 08 Nov 2019 06:15:05 -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=@google.com header.s=20161025 header.b=fj1xYv2Y; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbfKHOOA (ORCPT + 99 others); Fri, 8 Nov 2019 09:14:00 -0500 Received: from mail-pf1-f202.google.com ([209.85.210.202]:41960 "EHLO mail-pf1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbfKHON7 (ORCPT ); Fri, 8 Nov 2019 09:13:59 -0500 Received: by mail-pf1-f202.google.com with SMTP id j2so5040150pfa.8 for ; Fri, 08 Nov 2019 06:13:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=kvgCLct7rYR3LjviNWyKbkLaMi+v4J1t5e+g4Yg8dBw=; b=fj1xYv2YIp+6FKUgb9IjR8d45c21xEvKM//6IKKFbj62T3JCHayAL+rKMP8MbJT7VY Wcgl6NNb3zf8BoTYsT8kG0bomi1igkS9HrByHZ5IgANW14yHoFHuji2q8589jbuKR7el tRyzxfYa8bNTzXFssUr3uNFx8fMEHE7PFkDYQbjwLdtGMfNmcBuF6+vEQMLQ/qKMWKIe ltbTnDUOloCrjecz2IakZnAA5ORdF7Dv9MDL7E6L7Bpaowl437bPyA6zy3cqSiDVJf8E Pfr8MobtKN6Y+1v1Qa5aTew5BaVMSj43pOEtq68mdNR8/c4NaMCXmiUTZ+WlOUmNcgTz CLdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=kvgCLct7rYR3LjviNWyKbkLaMi+v4J1t5e+g4Yg8dBw=; b=jmQT7z2E74V5S8b/6uJHqkrM/LC9WMRDTwtClIMVgeX9ic2eTsSglZp5WLBmnqr1bm jf/fWMlrHyDtSii+U8E6wk+baPeebbgEZhajZJm0iXTgSudDY9w889Axe3aCmf4UC6T/ MH78V+CwJBXf0kTFnCwm6ugFASuow9kzlHT/lK1Fk7XQJWAk1gnuxk9l458AHMaB0BBF a1Upvs2x73QkGoNwT4h/Z8TaqH6rdkhHCT3YahtUbt4GvyJPa8Z7v5xVWErcbI9G/5Vy JLjAggyycOswN/1kLbENvTJQK1i93k1WlI3SCnk7tEwLTgR3TOuMDZbG1B7c6jma1lt4 puRA== X-Gm-Message-State: APjAAAXiXYoScs//IGWRta8acI/T2/v3yKXu6Kzl7wNOa3luzAnVEOyj 8JlEDSdwOgkp/Lh38rCwq1sgwk69NNPcGg== X-Received: by 2002:a63:e801:: with SMTP id s1mr4537856pgh.213.1573222438819; Fri, 08 Nov 2019 06:13:58 -0800 (PST) Date: Fri, 8 Nov 2019 06:13:53 -0800 Message-Id: <20191108141353.193961-1-edumazet@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog Subject: [PATCH] powerpc: add const qual to local_read() parameter From: Eric Dumazet To: Benjamin Herrenschmidt Cc: linux-kernel , "David S . Miller" , Eric Dumazet , Eric Dumazet , kbuild test robot Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A patch in net-next triggered a compile error on powerpc. This seems reasonable to relax powerpc local_read() requirements. 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 --- 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