Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2593199pxk; Sun, 27 Sep 2020 13:56:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSiSuA3IyLgxew/DFY9wjOLk53h0G195NnXHvuNB9aWJWC/1hNXSmMVShNiqgnuYIXXnmH X-Received: by 2002:a17:906:1dd0:: with SMTP id v16mr12502296ejh.309.1601240193217; Sun, 27 Sep 2020 13:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601240193; cv=none; d=google.com; s=arc-20160816; b=y7GHhlNBHM3PGCfBFPmNv8hmglJ19iZQYBXCbUwXtFZzPburMQTrVAgjtI2FrnkQny /XN0IdbLdOL238K01sS6NZHEPuver26gXzE6Kq1ZtNKnsI+jGWQxy93XZGd/ohdMqvk/ VsjM09nCg+E85LUURbHrd+KSvJhmG6vJa/kwhx0vMdSO3fk+/+Bw150tHOx3syuBR5MW BC+iFA7wrsyDLdTfLJeuv37/kyxh5l0HXnsBbTa7Uc08F8+T8vBEx++GNuFT+1KdF4Yh 1I1P7PZlnflUBrvhLnOOmyznHMP99MKHVANEX1r5nfjDqQ+cWa/h1/cYQ1kF69vZc/eu RfgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=DLmgjUNrl2lmZjX7H8fHk47uakmvU8MP4UFz+VAhnUw=; b=uIqq7iFnjUaMwxNmKBsRybg8IZZ67UIeqo3aF67xb5IFm7wY96pSvwFH6uwDOoCxpE rcYA+FncFLuwLPGk1MMt9ywkdv7/3whj3cpe7PlqbU88X3SSVLncGaF9LKe3SllyN/Pq JJaxv/EQZhWEH9f6M71LlXw6b90RkghpVoAZekBXASmfaADCMLjLcbWA4yYsryIPtjl0 L+2vxE7cSytIFcGWenm6k99aSWe/+UB+mjNtlL3OU+mY6aGYWtCwNCESeBdM4ziDZCJc m3X/bzCm3XGDc6apIOpKsjqxvvW4KAwDzHzJyrGimScMiLhRma28lDcRaSbbDgZ7QT07 oF+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si8004432edm.62.2020.09.27.13.56.11; Sun, 27 Sep 2020 13:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726335AbgI0UzS (ORCPT + 99 others); Sun, 27 Sep 2020 16:55:18 -0400 Received: from elvis.franken.de ([193.175.24.41]:60551 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgI0UzR (ORCPT ); Sun, 27 Sep 2020 16:55:17 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kMdhT-0006KU-00; Sun, 27 Sep 2020 22:55:15 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 13CF4C102E; Sun, 27 Sep 2020 22:22:05 +0200 (CEST) Date: Sun, 27 Sep 2020 22:22:05 +0200 From: Thomas Bogendoerfer To: Pujin Shi Cc: Mike Rapoport , Andrew Morton , Paul Burton , Alexey Malahov , Kees Cook , Serge Semin , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: mm: Fix build error Message-ID: <20200927202205.GA9767@alpha.franken.de> References: <20200927092610.1378-1-shipujin.t@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200927092610.1378-1-shipujin.t@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 27, 2020 at 05:26:10PM +0800, Pujin Shi wrote: > arch/mips/mm/init.c: In function 'mem_init': > ././include/linux/compiler_types.h:319:38: error: call to '__compiletime_assert_321' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT) > _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) this is exactly what we want, so there is nothing to fix in this spot. The only real fix is change page table format for 32bit to get more PTE bits... Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]