Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2883613ybi; Thu, 18 Jul 2019 16:30:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDG7aM0ea8LYR8AALCwfJHATuWqTzt/AOVvLYS049J+D0ootvx2CzEiXWeRGAEbtQP/JRI X-Received: by 2002:a17:902:20b:: with SMTP id 11mr53741005plc.78.1563492626922; Thu, 18 Jul 2019 16:30:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563492626; cv=none; d=google.com; s=arc-20160816; b=E8Yzu+nenD5q/QzLW42AEhVhJgRREAnspmPHROdYSfKkSCsVu81gDB+mc2k4n780TP 1COhsseFWpQ52B+JHlPyRYhnKeXjz4WoX29sCeS/QHKjPOtkoR9SxYtHEeJfMMCACHkK s7wQUgbJBX3h3YX2OF1qWUrG/8j0CqwTx5gpvstcQn18HtU3wnMHCRZcrCochp2YeFmM GLhZL0igbu1inLho1FifJ0aXVMupgJcv32J3qc52Soui8asKTY6nx/GwS99Opp4qEgTF 99vLW7JdTAtxA0g5Flkdbn3wr1MguWmcdvGNb5uJjNWpOdFVbqq3ukFaM+l5EjPftTvj xmmg== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=2bs2ts+nVa64Sg5TsTknUWJ52J15O8LgBC8BiC5QXJY=; b=K0G4b7lU60eIXEZTmm/kbqFXOqPwtvE/1wZqPR2jhLFUyQxG4sIlI6f5IcbrkRrUr0 qCq4jYIVHX5a+MwfcljMOdc9xpCmY19ETuvDEklgQRRhG1m9bVppmtQFdfth6srJsjrc Vpc+IytbBZio6/BzV3cncljoc87ySeHNeLqfIbgXqg5XcCyuinnTYZwqDhxnpfyn/y3B J2G62NB9Q1RKQd9jCPx16W0GtTx+ZW6EgK4wCO8NoKr9hVNs4Fp0iJ00lPWOxrU+SSCC heMMF22W/sZNRuZO/vI1fsfcD9KZpmSybG+naVedBrFyxwFyn8w0mhvokTUUEqr//WMG pe1w== ARC-Authentication-Results: i=1; mx.google.com; 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 33si1010347plj.90.2019.07.18.16.30.11; Thu, 18 Jul 2019 16:30:26 -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; 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 S1726222AbfGRX3a (ORCPT + 99 others); Thu, 18 Jul 2019 19:29:30 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:57158 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbfGRX33 (ORCPT ); Thu, 18 Jul 2019 19:29:29 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D0A7C1528C8AF; Thu, 18 Jul 2019 16:29:28 -0700 (PDT) Date: Thu, 18 Jul 2019 16:29:28 -0700 (PDT) Message-Id: <20190718.162928.124906203979938369.davem@davemloft.net> To: cai@lca.pw Cc: morbo@google.com, ndesaulniers@google.com, jyknight@google.com, sathya.perla@broadcom.com, ajit.khaparde@broadcom.com, sriharsha.basavapatna@broadcom.com, somnath.kotur@broadcom.com, arnd@arndb.de, dhowells@redhat.com, hpa@zytor.com, netdev@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, natechancellor@gmail.com Subject: Re: [PATCH] be2net: fix adapter->big_page_size miscaculation From: David Miller In-Reply-To: <75B428FC-734C-4B15-B1A7-A3FC5F9F2FE5@lca.pw> References: <75B428FC-734C-4B15-B1A7-A3FC5F9F2FE5@lca.pw> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 18 Jul 2019 16:29:29 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qian Cai Date: Thu, 18 Jul 2019 19:26:47 -0400 > > >> On Jul 18, 2019, at 5:21 PM, Bill Wendling wrote: >> >> [My previous response was marked as spam...] >> >> Top-of-tree clang says that it's const: >> >> $ gcc a.c -O2 && ./a.out >> a is a const. >> >> $ clang a.c -O2 && ./a.out >> a is a const. > > > I used clang-7.0.1. So, this is getting worse where both GCC and clang will start to suffer the > same problem. Then rewrite the module parameter macros such that the non-constness is evident to all compilers regardless of version. That is the place to fix this, otherwise we will just be adding hacks all over the place rather than in just one spot. Thanks.