Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp376786ybz; Fri, 24 Apr 2020 01:56:01 -0700 (PDT) X-Google-Smtp-Source: APiQypLHp4WiBHJo9rX3E+fRZwHMwyNqYesMPZr54T2wsaRuYEW/jk2a+oHB2AbC4kVMr2Vzhxqk X-Received: by 2002:a05:6402:1d1c:: with SMTP id dg28mr6095998edb.315.1587718561359; Fri, 24 Apr 2020 01:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587718561; cv=none; d=google.com; s=arc-20160816; b=CK301reeHfa5HfScqMNxDs5B+xAzpJW7PucOKad6wvWqXR3SAsbUuk5x9qLUUS+/8K dGZx501f0DzmPnqu9z/MCxihxEauwyPzKxHgbjGBkJ3OZRxBIGPuC+YydTwh2synUes/ KDJ5QvPLWOi7Z+R9Q8oXhZ4roiEY7OLdEJmCMFyooqbyx8Vi3mDYht86XZ4wwSQSs53S 9fOm9SjDoXSN8tLGmQm5EQGPhR3PACyHHPIL4nRHbrEdN6ZeeKPz2oWwJGc/8+5k8aLM EZsgeNlRQ9zbM+miEKd63tQYx+pAxNDRghh+vALIPLFTwgKzF5eq6YzdzF7A2LEyJnJy eiow== 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; bh=Pfnb75X6Ko0tRU1BuTwtOj8k53FOZMyaqvfTJqJIY7w=; b=k0gb7piDb5xvTfp5UvRS10bMqJ2mxtYi2wNyyrM/R2BpyvTE8MDrbVUjT1aveRCpND 41qP3ar3/JAFCcbxc7UlssZMQ/vM2VtwYHUK9UOKswXMa8dU1cWvmwvMEwMlMMhhJM1X 04R2pNmdjQI2L5PjzC/XcjtlnjnCAqz4gwxUtyO+egrq71lCjTaczw1RKV3SuKudrPaT Jy9fbZ1LIi2AVOaEUcQF+fI0WuBricgZuKjE4X9IglQkGyqhpl1+t7Eecsd2GF5VNs96 bYVEyqAfno1zB4/jpDzUhtXYnJFR1ntHmE4fMROxYB9vf/0ELC6NK5nQW2Rv3KTORiWD EWww== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si2829741ejm.361.2020.04.24.01.55.37; Fri, 24 Apr 2020 01:56:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726722AbgDXIxu (ORCPT + 99 others); Fri, 24 Apr 2020 04:53:50 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42814 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbgDXIxu (ORCPT ); Fri, 24 Apr 2020 04:53:50 -0400 Received: from 1.general.ppisati.uk.vpn ([10.172.193.134] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jRu5j-0007TW-Fp; Fri, 24 Apr 2020 08:53:47 +0000 From: Paolo Pisati To: Greg Kroah-Hartman , Jiri Slaby , Dmitry Safonov Cc: linux-kernel@vger.kernel.org Subject: [PATCH] sysrq: export sysrq_mask symbol Date: Fri, 24 Apr 2020 10:53:46 +0200 Message-Id: <20200424085347.40185-1-paolo.pisati@canonical.com> X-Mailer: git-send-email 2.25.1 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 Commit "68af431 serial/sysrq: Add MAGIC_SYSRQ_SERIAL_SEQUENCE" breaks the build if CONFIG_SERIAL_CORE=m: ... ERROR: modpost: "sysrq_mask" [drivers/tty/serial/serial_core.ko] undefined! make[1]: *** [scripts/Makefile.modpost:94: __modpost] Error 1 make: *** [Makefile:1331: modules] Error 2 Signed-off-by: Paolo Pisati --- drivers/tty/sysrq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 5e0d0813da55..cf49010335fd 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -74,6 +74,7 @@ int sysrq_mask(void) return 1; return sysrq_enabled; } +EXPORT_SYMBOL(sysrq_mask); /* * A value of 1 means 'all', other nonzero values are an op mask: -- 2.25.1