Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2015514ybt; Sun, 21 Jun 2020 06:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3HhlYpFQSfnySbWfLGBAAYu1FRxF3wcvysPnwJb7Aym33RPs3casi+Ws6My5YGSf5PQGU X-Received: by 2002:a05:6402:129a:: with SMTP id w26mr12869117edv.41.1592746909188; Sun, 21 Jun 2020 06:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592746909; cv=none; d=google.com; s=arc-20160816; b=f4aIsLPwr1q2w7D2CXaSTfwJFt1lKJdN+GBWxEdDY8vxo0y8pKwLp1xYxWdlu+rV5b rYmrS2Nob/R+UHvzZ+uWfKeaRBUzO3Fqb3VZGb5DA1+F/IKI4hh8Prd/58Jap1FvqzE2 LZI0VjtCIX7gxIEqeX/UUaa5V4CtJpj8xUllZgc4usBvyXAchKADi+RIMgrxdFDQS2NR UwFBM7syjz7S7ZqQVYXKe3NrlcqFN6nSmtDs1kSPBnyWCMf/Lpu0T7vq6H0naKB6sgHz oBJsxKTfvY/BhudW5k546Tu5a+eslTZBnvL3rvxPeRRWLxfil3yIZd1ThUiq4PAzp2dB BSBQ== 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=7tkH8QeToW+8a6ShjGaQW1Fds8XY8tcuZxETlCNYIRM=; b=MwgHqGmNKd/VavfBAMgK2QC6jXZD23PdhnVNPPyzbQM9lg6k9WkpYIfngG3HDpCrVN 7YcGw3kC9BYf859TM0dxvR4ZqppyZPSEfCOXaXhi3PvECo6tWDdk8lgpBY1300Yw+wdL G7tGPb9lAcexmJR29mk8jAX3ezilPlcCi4KXlzHVoGpdCj3t8WTtB/2e6sW6One21NHP kPW6dL0umFWsLxGqQDcXuMv7h6mbHKEr0t5eixpJeEwUAvSAMv/LrAO5m+P73vPe1Egh Py4X4NDI56uOxQA+ngV3DEywnCl28HvENbcdj2FbunwFxr7VtvT8gaceSDsekAOlOcsG 6m4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=alh45zcr; 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 v1si5282409ejd.249.2020.06.21.06.41.26; Sun, 21 Jun 2020 06:41:49 -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=alh45zcr; 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 S1730135AbgFUNhQ (ORCPT + 99 others); Sun, 21 Jun 2020 09:37:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729658AbgFUNhP (ORCPT ); Sun, 21 Jun 2020 09:37:15 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69CD0C061794 for ; Sun, 21 Jun 2020 06:37:14 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id n24so16334928lji.10 for ; Sun, 21 Jun 2020 06:37: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=7tkH8QeToW+8a6ShjGaQW1Fds8XY8tcuZxETlCNYIRM=; b=alh45zcraetkOFPQltefTOxLaVWUXT5ZyQoB3Jn4Oi76e0qR5hKeSD1ylRN0pmmDeu 0+F5JJ7s797Oyv++n9YuHyS2liRyDXFh0H35h4cpkN5meAyToWMvlTT/Ow6A98sU76O1 pXxW/xdOnlzIE9Td4bogP1viY8jCyJSSE9ldljU8/SvOJFDxrosrKiuu42zM6uUKnoZE bSTZ3kkiNhSZxNlRUdN1wg6mmXvw1QnisZlgO2r3IFGxB+gxXMqyhWVYt9j2U/Umk360 cwffW+iz3nbcK/6qKsTbABx6DE/TlTYYN2IkGXZ8bG67Z/GSqbNnMYaiNHktv8D7YIwX s9dw== 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=7tkH8QeToW+8a6ShjGaQW1Fds8XY8tcuZxETlCNYIRM=; b=DI4VTgbKMndkp6gU89z8X9VCZVAqYQ0iKTGsKDfVRqwc4xaxs9/+2cjHaz97j3wH9P evIzLF5KAUXZ9sDqi0IGXZ4mc7bVS1zz39x1cnW6m/4w+1N8SSzKuvnC4zaxJTI2hkgt eHpViWlXTVMq3qS47O2DsJXBQsF63OROYKOPtzZ9jXt6gOFWPOTJ8/dRI6gLBGmLVFwH 6CKzQMMsx0S9pztQxixNGC0hhsktJ4jv2YzOJqY9+MOXuev2p7wQaqvnqDRc2nSOR1CL vR4/zFi3OHoCDb1TZfi8EIU7fPsPjTea2LdsxkILydMBADEAkt/VKiY07Ar4Tf7Y4556 N+cA== X-Gm-Message-State: AOAM531/nk9RTS+N2NGo/dut2MB9UpZNLSVWSa1+fmiCrbyx0lfZofWH SN7fwqx0UJlzhS/nPdtqDucPEN5BOlRdUA== X-Received: by 2002:a2e:92cf:: with SMTP id k15mr6465154ljh.333.1592746632626; Sun, 21 Jun 2020 06:37:12 -0700 (PDT) Received: from pc-sasha.localdomain ([146.120.244.6]) by smtp.gmail.com with ESMTPSA id w20sm2165077ljo.68.2020.06.21.06.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 06:37:12 -0700 (PDT) From: Alexander Kapshuk To: linux-kernel@vger.kernel.org Cc: christian.brauner@ubuntu.com, oleg@redhat.com, ebiederm@xmission.com, akpm@linux-foundation.org, liuzhiqiang26@huawei.com, joel@joelfernandes.org, paulmck@linux.vnet.ibm.com, asmadeus@codewreck.org, alexander.kapshuk@gmail.com, kernel test robot Subject: [PATCH] kernel/signal.c: Export symbol __lock_task_sighand Date: Sun, 21 Jun 2020 16:37:04 +0300 Message-Id: <20200621133704.77896-1-alexander.kapshuk@gmail.com> X-Mailer: git-send-email 2.27.0 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 Export symbol __lock_task_sighand, so it is accessible from code compiled as modules. This fixes the following modpost error: ERROR: modpost: "__lock_task_sighand" [net/9p/9pnet.ko] undefined! Where __lock_task_sighand is called via lock_task_sighand in net/9p/client.c See https://lore.kernel.org/lkml/20200620201456.14304-1-alexander.kapshuk@gmail.com/. Signed-off-by: Alexander Kapshuk Reported-by: kernel test robot Link: https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/TMTLPYU6A522JH2VCN3PNZVAP6EE5MDF/ --- kernel/signal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/signal.c b/kernel/signal.c index 5ca48cc5da76..2612b9098cbd 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1396,6 +1396,7 @@ struct sighand_struct *__lock_task_sighand(struct task_struct *tsk, return sighand; } +EXPORT_SYMBOL(__lock_task_sighand); /* * send signal info to all the members of a group -- 2.27.0