Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1600408ybg; Thu, 4 Jun 2020 14:04:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYg0Umwy8g7MfcIWQJ7v1S0MOlYF2pHGWtFTrifqxehbWdWGUkQeKQHysdGMAfrbvMh33/ X-Received: by 2002:a17:906:b845:: with SMTP id ga5mr5524487ejb.300.1591304679793; Thu, 04 Jun 2020 14:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591304679; cv=none; d=google.com; s=arc-20160816; b=yoGgC7v0HMaksg6B4TkOEDkGa/DrRj+oLk8VwdwX+0M50JvFB3Raa5W9JKvOpRZax4 a6ehgIYdSSf2xvHf+jUBtTfnr7RqFmMKAAAVaP1nTOxB5JLLQqLlyj7gIjv5b062hIvO QTIdQlgaWHGuRtIUCPU6Q2b1RqrvmSj9CMph1aedPzz4LZ0xVh65bEajqSb5CNvEsrCM RLWsQe6mZ0jtOyAGSWE+qfU2gBpsBHynBjySsV8BbcL+PwpClXki0h7UQik96RqYAcFS hKd591vfSzp6A2e/8WfYUY8Zfloe8sUNeIuLML9cv76z5j2ekgY67b21032l072dUrS4 Wd0g== 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=UbOCf4CZQIjVvKPTW34WUTuN7W9J+r0FOwoqsB6YilE=; b=YOeuqCz0Q6rskfqzaQp6TyuqVAoSOnWP8rYr05R7+Aow8D74VcrdIyoiRoQY486sNG bI/i8vK5xLW/Z7MJ8bVJ83aukfKsSGdXOi3LDShKMjlP+s38P6GcxA1EktKMfjOkNsKP CBHqqXTG2Xu4UxDHo0ZHg4CRlCzbGi+AIIrAsFlsZgFBQaAZ3+s9SnLqJfGte9epgSc9 GZeHgC1HrfR4aHklwAAkBpf/b/RP5cVGB7Py2G1PL1e76cUE6Ird5dB4Cphp2ZSg+Syq BYEPPd749X7TcPbTyuJQCn6/uvodARposEo79lMSYCda5w2xQpKEu4ompS0H8nnFQYyI MI5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K0DdLWIK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl8si1995291ejb.327.2020.06.04.14.04.15; Thu, 04 Jun 2020 14:04:39 -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=@gmail.com header.s=20161025 header.b=K0DdLWIK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726187AbgFDVCP (ORCPT + 99 others); Thu, 4 Jun 2020 17:02:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbgFDVCO (ORCPT ); Thu, 4 Jun 2020 17:02:14 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66295C08C5C0 for ; Thu, 4 Jun 2020 14:02:14 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id r10so4049752pgv.8 for ; Thu, 04 Jun 2020 14:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UbOCf4CZQIjVvKPTW34WUTuN7W9J+r0FOwoqsB6YilE=; b=K0DdLWIKVytyVtUrmZ92o+Ycscu+97VU7haUaI+y6Zq16y7xltTRU/mQuG+yaHpm1j bEU+TZ+8WCxha7p2fVQj1HuS470kqdd4xBO6b2vzWncC/nriKYPWrQj4wOdEy5xQ0itt aDjCVQ+CN1/WsouzHRYrHbAKNCu1FpuLnLJDJdFZPbocGfws1Z+B1i44arYQbWH9pbYV Gg7cyYgM1husWWdm4E7XhV0Ux7V5elDeFqqgGlToBXESd3z0+AwMdg1x6sM+83PapCsi UqGa5Z4XOFFi61jFqNWHVW/bbljF/bbFfj7zFQg3+uNuW701/gJa5P5ShrJNmRBdfJOl 9zhg== 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:mime-version :content-transfer-encoding; bh=UbOCf4CZQIjVvKPTW34WUTuN7W9J+r0FOwoqsB6YilE=; b=itqNDmPXNSmYsxhkPhJyIoUk8f+cEg6sX7id7pEJ1v7/lV1kwBhW/GLoRJXp8euGZa cf5a1cOFw+4b/nZ4O8CqYQcjC4MIsWY8TW0xD6MC0kgQAawJrGIXuGrsL4aj/AAwhRIB KJBsL5qF3J/3f3TDzXmR2D0jmdwZhNN/ZILPws1u39TafGD/RYrz46uS+rfvNB+Gj3ya uiu7qgUXfAmypHxL8gbfWGL11m2e7xtLP8lBIWNsCLLHuT+/WVzZsk5MB1lGHV8CcSq2 jLW8Vn3CaKsJIASmJbWiUXIH0iCmTe9uM071tiRhmmifNcX/9RHzR/dG2ZsT3PdhvWwq cHKA== X-Gm-Message-State: AOAM530UMtJJEoZiGkx/s8gA2JbQcuN5qaYofu42ouhTujnRryCTyPrA JnC85+rdIj2e8FJTLWSEugsadDkS X-Received: by 2002:a05:6a00:801:: with SMTP id m1mr6223073pfk.200.1591304533827; Thu, 04 Jun 2020 14:02:13 -0700 (PDT) Received: from octofox.cadence.com ([2601:641:400:e00:7571:e536:944d:12bc]) by smtp.gmail.com with ESMTPSA id l63sm5617281pfd.122.2020.06.04.14.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 14:02:13 -0700 (PDT) From: Max Filippov To: linux-kernel@vger.kernel.org Cc: Josh Poimboeuf , Linus Torvalds , Max Filippov Subject: [PATCH] kernel/modules: fix build without ARCH_HAS_STRICT_MODULE_RWX Date: Thu, 4 Jun 2020 14:01:15 -0700 Message-Id: <20200604210115.16826-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On configurations with CONFIG_ARCH_HAS_STRICT_MODULE_RWX disabled kernel build fails with the following message: kernel/module.c:3593:2: error: implicit declaration of function ‘module_enable_ro’; Add empty module_enable_ro definition to fix the build. Fixes: e6eff4376e28 ("module: Make module_enable_ro() static again") Signed-off-by: Max Filippov --- kernel/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/module.c b/kernel/module.c index bca993c5f1bc..a74a29001814 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -2038,6 +2038,7 @@ static void module_enable_x(const struct module *mod) #else /* !CONFIG_ARCH_HAS_STRICT_MODULE_RWX */ static void module_enable_nx(const struct module *mod) { } static void module_enable_x(const struct module *mod) { } +static void module_enable_ro(const struct module *mod, bool after_init) {} #endif /* CONFIG_ARCH_HAS_STRICT_MODULE_RWX */ -- 2.20.1