Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1619121ybk; Sun, 10 May 2020 23:33:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbi91xbBZ5tQrgpb1OF6/Pr8IvlSGDg7rpHcnIoE/DyV3T9P+NN71SFq963j60oVD6vV2i X-Received: by 2002:a17:906:848e:: with SMTP id m14mr1286911ejx.344.1589178805607; Sun, 10 May 2020 23:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589178805; cv=none; d=google.com; s=arc-20160816; b=g6EesVUbp2q+USgmAxk5oz0dHaVp9WKe6G9jdqfX11E5mEchkT1l5PanmrAAo+w/5e 2kCiB5Z+i1G8J3o7NP2W3ro/23qGpNLor9QbzYzYGaDRYAo2WOvF0PMSSrd8LdEoWsHZ Wb1G8+5vcJhV1Xa1X2Hx2wDf21CBZBwY4z3iHo7OKUJg/lcttbDnfzzMJzOmg9hSAr/W 70PAKAZjPt+9UO67YCraqD/dtjLtZsIATqV1AvDMNdSjInw31kYHkpyvBYYJfXADnSOp xW/he46+/wFcQ8JdGmFZ4wKCCQDb3x9QlfEAyvwSZd+cFMpwQ4HkwIELbHjOG4EPoUC8 LsUA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=3hw7W11s3UbHTXMwi4d3Emxm52KAS85qy3o8wSco/FQ=; b=dbNEKw7fRLePdoD2tKQdZb+PJOvtBkwduO6IGGgcfeMaRRh1lOImHbxCf8Ro+HZDk8 dCjSeRBnkjm30YzoOGGCnogXqze2oPgQXMt8VS1M8aApXnntlClSSi42XmGwsEqA147F IqsaY+nY8qJTrWYKp6SD660HG2QCzPGrTLOhBXFny8kb/uOAYhsL7LAyOKADyd/NR5F7 44J2TSeoe5CtAnRjihA+BToiRMvl20c/t1y5+yIm8j0XAoxpM7v+sV9qc0qh6lU+SvWq IjRX4J8qFUlAtoh5QeTdrYkvIK6jjnmvr8IiOhqGtKHxJAFudmJTFJMGI46jzvTfa2LJ goug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=A24qyFSB; 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 n8si293643ejy.388.2020.05.10.23.32.57; Sun, 10 May 2020 23:33:25 -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; dkim=pass header.i=@sifive.com header.s=google header.b=A24qyFSB; 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 S1728458AbgEKG2b (ORCPT + 99 others); Mon, 11 May 2020 02:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728353AbgEKG2a (ORCPT ); Mon, 11 May 2020 02:28:30 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78DB4C061A0C for ; Sun, 10 May 2020 23:28:30 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id q24so7289498pjd.1 for ; Sun, 10 May 2020 23:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3hw7W11s3UbHTXMwi4d3Emxm52KAS85qy3o8wSco/FQ=; b=A24qyFSBnJlVW10vJD/OsHYNVsGAKGxT6IKCsDcV77ZIUGy3cUz90TaIn1VZHKmXN9 1cNA7LK7GVLu2mQRsL49Jr6QUuiZUIXMbv/3prsNPJc8kemOmuUgCeQ6MfnaO7HJ+Jo9 ckq9i7clpAaHESR+4C2QsAdO2tfolYvRwl5KoiWAZclkXTfe0UMX9JZkWEnd16WprXgD KISvrEDl5FObBxwW3M7SlTNB1B9fAk3p1FIloGl1e2ut/3B1ZesgxAWWGlFraT3PG8NX 5MD8aMCDJxK0vQdeEZjCUBnTsB0sGOFHW7PVhHwc6HyFJD5gv2Qj/F0vQKnUf/Wt8cfV IAZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3hw7W11s3UbHTXMwi4d3Emxm52KAS85qy3o8wSco/FQ=; b=rj9oGVJV8wITK22kjhmWZCrdkcOOFmlpzfzh08J8dXBcNRZFdF4jOGsTMXzJNeUusI soURpYzOzdfxpjtHTLtlJfbp5K/BOxynw19O2kJfcEUHByJCCatnigumKjaFZSoqFtBg LIhOTTAio0QacluLux7zGsLo4VhoDkBwZPO8erC6fTildzsWuBAuge1b1746chnWjdJN 6nvStRvmpIyrh2x8Rkpiehittpw8cAf7lgsd1HGO8P3xMDhrWpA/6y/9zWO+ekjGBreb uBP1z7aVLvKGyenwzVPkIC1TLFjKKaAaWFzCqXnhkwPMCnFy0IsQ4uDSDhKaXftgEfnH b9GQ== X-Gm-Message-State: AGi0PublvUEPdGAPy7r5N97XXXVBgKWXhqwFBxfDRwdhtnhCwFQYmtX8 jFnYTgBkHcuX8N60+mRa54MppA== X-Received: by 2002:a17:90b:78e:: with SMTP id l14mr20777973pjz.144.1589178510039; Sun, 10 May 2020 23:28:30 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id j63sm5179558pge.76.2020.05.10.23.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 23:28:29 -0700 (PDT) From: Zong Li To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Zong Li , kbuild test robot Subject: [PATCH 2/2] mm: add MMU dependency for DEBUG_WX Date: Mon, 11 May 2020 14:28:20 +0800 Message-Id: <4a674ac7863ff39ca91847b10e51209771f99416.1589178399.git.zong.li@sifive.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: 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 DEBUG_WX should be enabled on MMU system. It had got build error when enabling DEBUG_WX on NOMMU. Signed-off-by: Zong Li Reported-by: kbuild test robot --- mm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug index b8cbe035247f..2409f7fc1567 100644 --- a/mm/Kconfig.debug +++ b/mm/Kconfig.debug @@ -124,6 +124,7 @@ config ARCH_HAS_DEBUG_WX config DEBUG_WX bool "Warn on W+X mappings at boot" depends on ARCH_HAS_DEBUG_WX + depends on MMU select PTDUMP_CORE help Generate a warning if any W+X mappings are found at boot. -- 2.26.2