Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2146248ybi; Thu, 4 Jul 2019 05:58:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSQbyoSrAGGnlAx41mwjGlTHUWvxtNqw6WNz6SL6J9BEVelcMgPEEyCUh2+mi55ad5mx3P X-Received: by 2002:a65:648e:: with SMTP id e14mr44262926pgv.317.1562245089528; Thu, 04 Jul 2019 05:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562245089; cv=none; d=google.com; s=arc-20160816; b=pnumJMJV9eAZfmwwCqrr1GJwNRhLGYjanIcpa0071zfLRimn0B+g+AWJR6pKcI2SnD RD/UM5xZJBy45fHu7vEDEWDWN9uP2YuL/tCIZdYO/uBSEO+7cC0lZyj+vZz5KkXPTCC4 Jxz9fwRJDpABqWhtGzNToPB+j4Bse7mARXNqm2o/O1UF+NaWrSPv7L1H0N5RTBPbXDoa PyhvZEAdzzRdVTefWJIQomVV9S/txkT7/MrAV9Cn9u1R9XiXePm9KE9DYUsn/Q/O+9V5 /KVZO9u6b6dYpj7bizApV4irrB9vle4/pZ2tu6QGNi3aBEAhgYsYDBGL47r+4cxuLGJa zvYg== 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=kZ8O9igfNu2jDct8fmpQWqIo3ibbuDI4N9jrgAm5kO0=; b=y6FCfLpmzBUEQDGmeNdhN/FMl5CVBbFSC1agukVXv8KeSV33ThFTaNdfLP6VMQ5eDy O3jCw7t8fXZ264yGs2FipvVGNDssVt26/pJh2OFn3zKiL8BewoIfyGZ0z0p/c4cnODev Agb6pute9N6uMUD71OmSrJQICi2bAdijD4yTOCDGAFi2hwdLReDty8JP0dpObmXRDG9q EfOCRV5ukHXJgPPSs6uBU75L/7wFrcTKfi9Qtd06j+ctitjOBhSFTD9IsPsN4TpCdM2o lRG6n6NylzLXIHzqN2gv256fTaMyeUuQS0ck5OFqDYs/lRwtOYcwBiLKhTzv4Q6Snl4N 7DGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si5625647pgb.374.2019.07.04.05.57.54; Thu, 04 Jul 2019 05:58:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727164AbfGDM52 (ORCPT + 99 others); Thu, 4 Jul 2019 08:57:28 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45889 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbfGDM50 (ORCPT ); Thu, 4 Jul 2019 08:57:26 -0400 Received: by mail-wr1-f67.google.com with SMTP id f9so6519434wre.12 for ; Thu, 04 Jul 2019 05:57:25 -0700 (PDT) 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=kZ8O9igfNu2jDct8fmpQWqIo3ibbuDI4N9jrgAm5kO0=; b=CxY0Y5JWPQHNIcxIAWi/VNOXRSsPZxOxZfFdflFrErMrJJsNCsN+WJqlhdB2CtbWOA gzQdPn8e6dsNWc59EFzJUcLiPDbR3C1AZ2pMaqBZHM5odLC0Ev2C3+fovL+4MyMhzw3g bpsO0g81fywBy3QD6ittzPOCzeE1AUlYghO0QRsSpYbTWgxO/fHgTdubpXg6Wqyq+IrU KUrpfwG9QHqg5iBMOlPxFoj6mgW+HmZhkIhyVm+A4v88vxFKEvQNgJr2bHz7xMl6yvdp gCZrajaD4AvDDeqtffTNLf4qGHvrUqnXe67Fnltz4P8KkiFPX6A/3MLGEb/E4VX1B9A2 MSVw== X-Gm-Message-State: APjAAAXL5CxTl8ox/SGDICApivN4fpxpzOJ5yCgnGxe2YaAWXHo+U5hu OqKmjgTPUeNbfsl48yNKER666p5x X-Received: by 2002:adf:d4c1:: with SMTP id w1mr27864346wrk.229.1562245044728; Thu, 04 Jul 2019 05:57:24 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id a64sm9819712wmf.1.2019.07.04.05.57.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 05:57:24 -0700 (PDT) From: Denis Efremov To: "Paul E. McKenney" Cc: Denis Efremov , Davidlohr Bueso , Josh Triplett , linux-kernel@vger.kernel.org Subject: [PATCH] torture: remove exporting of internal functions Date: Thu, 4 Jul 2019 15:57:19 +0300 Message-Id: <20190704125719.31290-1-efremov@linux.com> X-Mailer: git-send-email 2.21.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 The functions torture_onoff_cleanup, torture_shuffle_cleanup are declared as static and marked as EXPORT_SYMBOL. It's a bit confusing for an internal function to be exported. The area of visibility for such function is its .c file and all other modules. Other *.c files of the same module can't use it, despite all other modules can. Relying on the fact that these are the internal functions and they are not a crucial part of the API, the patch removes the EXPORT_SYMBOL marking of the torture_onoff_cleanup and torture_shuffle_cleanup. The patch complements commit cc47ae083026 ("rcutorture: Abstract torture-test cleanup"). Signed-off-by: Denis Efremov --- kernel/torture.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/torture.c b/kernel/torture.c index 17b2be9bde12..fbbcc4abe426 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -263,7 +263,6 @@ static void torture_onoff_cleanup(void) onoff_task = NULL; #endif /* #ifdef CONFIG_HOTPLUG_CPU */ } -EXPORT_SYMBOL_GPL(torture_onoff_cleanup); /* * Print online/offline testing statistics. @@ -449,7 +448,6 @@ static void torture_shuffle_cleanup(void) } shuffler_task = NULL; } -EXPORT_SYMBOL_GPL(torture_shuffle_cleanup); /* * Variables for auto-shutdown. This allows "lights out" torture runs -- 2.21.0