Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1253889ybc; Tue, 19 Nov 2019 17:17:56 -0800 (PST) X-Google-Smtp-Source: APXvYqy+kTCdc0Eux61TJP7daliionB+mCP7nVm5wxXcIuGwwyMAkktgtYIw/4A2viJT8kti2OGg X-Received: by 2002:a17:906:4697:: with SMTP id a23mr1164664ejr.322.1574212676537; Tue, 19 Nov 2019 17:17:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574212676; cv=none; d=google.com; s=arc-20160816; b=UvEfgwfpnHSI54Ev3uyBM7Ua8AJVAZ65LLsCyQkcsWwzm6qT+T9H5fS+rPOs+COqsL vq/VPV6+RSl0H4L2TIZ1yjsQt4BxhOOxS4HVLlZnYGCUvlCy0+ScLtAOR73mXxTNnKJ3 qk8xIq7ON7XDzG247HxfKLRQquOYI1UVBX9gWW/PW5JGcWHxOYMo+SUgNC56uA4cKxCu /7FVQTjXyP6SGvSpzpcSU7oFTSmjA8QFWKSmcoaL0f9Ij9SmwraHQ+DJyGWYmAiOk/vN EcXi+6D3CVc5mfb070DHvAX8PjrfyOonf+TfwJ52dT23zBfE56toqTTuY0vcY9eaR8Vn mrQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ch7uVUm9Z93eHU8L+lXoIrrNC3I2w776ueX/NoLtYVc=; b=u+qZlLp8kR6zt0boTYloR6/D4U2Z/OfWFgDZ3UvUclRt+zXjJe9NeaXQjdaEcVgl14 RTc0XOp/7raYedjjGy4wr5Nfar3ZdbuErzWzgxD32hSuWvmXOSbOPEYo74HddAVUtsp/ gSceYn82GV2EczdG+EkkQ4FJmPCFHNUKkIlQ77BBtT6WdJAtV6OC03xJOVnMnmFohkNX jzjqjZsAhPaLTvXNKZ3hKStOVAit6XjYnpI87BiP8I1df36Apjz4TRKPkAr6MKIgVXos MCv7chWv0FdTyikAGxy9uJSosyMQ1cTVr9Mg8N69FZb0qJdVB5T4mX95dZqzRpGVJykH wMcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=TK4FU2ZS; 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 a30si18201617eda.259.2019.11.19.17.17.33; Tue, 19 Nov 2019 17:17:56 -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=TK4FU2ZS; 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 S1727579AbfKTBPC (ORCPT + 99 others); Tue, 19 Nov 2019 20:15:02 -0500 Received: from ozlabs.org ([203.11.71.1]:48151 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727395AbfKTBPC (ORCPT ); Tue, 19 Nov 2019 20:15:02 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 47Hl9F1zQwz9sPW; Wed, 20 Nov 2019 12:14:57 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1574212497; bh=LsELJmCEH+NKbFlJOW2HIaU1dLS5CTN3LAfLHJrRp2M=; h=From:To:Cc:Subject:Date:From; b=TK4FU2ZS28s8JR8kdTv+V/MJZt0OSyR8/XkbK0R5J1TCOCNnr8lJPdR4YSt48b2qt yd9HSQTeVgwf7vwN4LcDTrPIE3l0jMjaGbi0hYk9yMFXpVvxjH83WjEIwsC+mU/Hsm r9WsuHLCP/BDVy6PpS3dr4XIXc2+TSSuDK48hxwiXBq9ucB+b7FgMGBtMCoP/keChM bh9KTgf/2eYbZLoHnrD0z3MYLYWCdSDEehl+WM1mbdrBCoJpbxUx/FRDMg7sizXqAb v9Dgr5BznEMQ9x0HYraW+Y5Ow2a8Qp1F8R8A5kQp6wgkSdD7d62ivv6Bom14nDRghM 2Ek0HwtDxMTAw== From: Michael Ellerman To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, davem@davemloft.net, edumazet@google.com, sfr@canb.auug.org.au, linuxppc-dev@ozlabs.org Subject: [PATCH v2] powerpc: Add const qual to local_read() parameter Date: Wed, 20 Nov 2019 12:14:51 +1100 Message-Id: <20191120011451.28168-1-mpe@ellerman.id.au> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Dumazet A patch in net-next triggered a compile error on powerpc: include/linux/u64_stats_sync.h: In function 'u64_stats_read': include/asm-generic/local64.h:30:37: warning: passing argument 1 of 'local_read' discards 'const' qualifier from pointer target type 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 Acked-by: Michael Ellerman --- arch/powerpc/include/asm/local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2: mpe: Update change log with compiler warning, resend to netdev so it appears in the netdev patchwork. Dave can you take this in the net tree so the window of the breakage is as small as possible please? diff --git a/arch/powerpc/include/asm/local.h b/arch/powerpc/include/asm/local.h index fdd00939270b..bc4bd19b7fc2 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.21.0