Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp387157ybz; Fri, 24 Apr 2020 02:07:28 -0700 (PDT) X-Google-Smtp-Source: APiQypKLThwrItnTt/E6nbuX4j2Uki8bwQaXah4YC4/Or97ABS6wKFf4Xh6tswZdA6DCkkRrxwx8 X-Received: by 2002:a05:6402:1841:: with SMTP id v1mr6009286edy.182.1587719248712; Fri, 24 Apr 2020 02:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587719248; cv=none; d=google.com; s=arc-20160816; b=EvzUHG84yyZeJjsMtnpfzRMZHzKNKlCURLEu8UW5oONlTTKjfCmBVtEU31J9WZC7XF x0HoSSDhdCWj3UKa7vlT58/VAeVVw42vl2X8CCvMsCizCNbtUIIB2TDI84KT9Rv1LIm/ DmvKDHJj/GqBz0vQYCAEMdVAe7aKrHzMzg/4rYwILBoLAwQiLMLV4ptCkODnzwxqVKcW +rjFWd8JZQnjBGoJ4pfPv9VM48/gugqt46A4CMDlS6a6ZOo0cZOB2V/IxcbiU8utC4gL ZHz3aBevsnoC39SUDXsrDz0tXBJGdvcOYEHxILR48E9E1y33EDBE3dfKBEhKrky9kSR8 2rew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XqYO6c5jBg8Uh8bxlY2vfFoVsOj6Hj+2rfJvI4ki9Qo=; b=zf/h8bLOrudrCaFUSpHeJv62QC20/vFfcLDgbpgz3dyw3IqKw7CrMx3gv0ZNLw5a9E +IlNI5ozvU8J0DyPb9O9p040lKnss0u3mfOi7XdHXJ6sO9u78OxqdNveSnJQuSH7rUdA 167vQseN9LuqdAJ4gocK/Ax2hrOVHnedAihbuVtL3thyNsH1VWlX/vo2B+Maw5hDiO9z yrrjc9Jg2IN6mvsxf5P+Ko40NNZRJYAsTkn3CXSxw+191bkvRnLLf4+LehSIiGXDaXPK QOhGkBbvsJILhAMJrOM55rcoryJHvsStFr3aTP2z67AMkVyoLMTZRcC2PaScofI9N0bj UK8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cFul12WG; 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 me24si3008275ejb.326.2020.04.24.02.07.02; Fri, 24 Apr 2020 02:07:28 -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=@kernel.org header.s=default header.b=cFul12WG; 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 S1726723AbgDXJEk (ORCPT + 99 others); Fri, 24 Apr 2020 05:04:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:47980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbgDXJEk (ORCPT ); Fri, 24 Apr 2020 05:04:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 54B9220724; Fri, 24 Apr 2020 09:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587719078; bh=jCahtMZDkUSZ892I9UBU1wHBjYA6nRaxDDRtlKaup54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cFul12WGq9cotU8aEAKhwmbXTsYrIt2Z2j9dESoqn/jQEafOAHy5bW3MV3OzBE9WV HgKQezXniJM1e1bI0bPxYrejPgbnSSdvcMlrmBWzW+RwdxK8lB04V0POfb61Tgmb+X YpjB7moGqdvONMjDs0WFIWfNnZdPPEpxQ5kWWeYc= Date: Fri, 24 Apr 2020 11:04:36 +0200 From: Greg Kroah-Hartman To: Paolo Pisati Cc: Jiri Slaby , Dmitry Safonov , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sysrq: export sysrq_mask symbol Message-ID: <20200424090436.GA358113@kroah.com> References: <20200424085347.40185-1-paolo.pisati@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424085347.40185-1-paolo.pisati@canonical.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 24, 2020 at 10:53:46AM +0200, Paolo Pisati wrote: > 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: Already in my tty tree, will go to Linus tomorrow, thanks! greg k-h