From patchwork Tue Jul 10 15:22:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 141519 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4021402ljj; Tue, 10 Jul 2018 08:22:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfH3QItouPgcbBrqz/yrKeQWhUW0HziykDd6JlR2aiDCURDnxefyqN7y+N0UyrMCiKp0CnB X-Received: by 2002:a63:4857:: with SMTP id x23-v6mr17489483pgk.30.1531236161731; Tue, 10 Jul 2018 08:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531236161; cv=none; d=google.com; s=arc-20160816; b=yDEoc4CEE0N+Sy5PVr1+m5L7voahBJ9Mk5Ye8NgLqZ4izoXK/HGUVzN5BlNY5Zg9pl PFvWJ8BQ4ycBWyPyhLU0QjufbysueCXAIXxfawmhTpiWKce1pZyn0Xg9xROIU8jGVGia r7n+t5QiCiuYNxnE2ZaiBrSm7IMHkuAI6QjqLjyczKC0jh2uiQeFXciN4mnvxV0GLYJn 29fbB3NjU3nu3tmY+uDOZ1GVbPDxbHBOkMcQYA1ItNxOxF+cnH3qM01sZbka7Ekqox2R gPhLrqr84xCPQcV/PMl41LdipHM670munmYVMuu2TqcOBBG3fND3tdMtEvM7uvyTU8Y5 5b3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ngZoTnQYKefiV6F+WHzjqPOq107IOKOrb8YJp2DHu4Y=; b=vFavHUvu3m4Imhnfo1EBUOvK/O1pIV0jBmTkPEC8TrXiD16V6MykUtCCRpuCDcrzQY ldJRqY5/0XROi/XDv11PHBf8t4Jrd0pDEcSWMFL9FJNBGICQCMh+XmBMMUn4Z3IvgVHW GJpnKW2i+YEKbhn5juAQ2Pqj1HMvjfs97OwTmKrpCSwpxrK0cb6UFGYeRse71UqP1XiP KP3xFaXNfMO9SWFJsRNMXNf7Pu+QDT8tIFb95TyP91TET7iHejCbQ/+u47z4F2zS4XKR ces50krSEy1FoiazCxiGtKXNCNdGX35oiFcSQn1toYjB5Ji7+LWtFK+hPMIWXEyYBy8E jEiQ== 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 y10-v6si16728315plp.5.2018.07.10.08.22.41; Tue, 10 Jul 2018 08:22:41 -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 S934059AbeGJPWi (ORCPT + 15 others); Tue, 10 Jul 2018 11:22:38 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:52231 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933359AbeGJPWg (ORCPT ); Tue, 10 Jul 2018 11:22:36 -0400 Received: from wuerfel.lan ([46.223.138.35]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0M2dAz-1ftTNn3IEn-00sKDg; Tue, 10 Jul 2018 17:22:18 +0200 From: Arnd Bergmann To: Petr Mladek , Sergey Senozhatsky Cc: Arnd Bergmann , Steven Rostedt , Dave Young , Namit Gupta , Nikitas Angelinas , linux-kernel@vger.kernel.org Subject: [PATCH] printk: remove unused suppress_message_printing() Date: Tue, 10 Jul 2018 17:22:10 +0200 Message-Id: <20180710152216.2393454-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:mC9H8IdobZU41vI5YvPRMBV3xaOW2ZprvcdNkbTq0MmqyTKqUEY uF1JgcNBc3pwacuwyglvEHimngSmVD2Aqnvbm51R/RP5SlCHT3DSp3xthQo8MqJfGElZEXn GXW2TFsrQK5RfiKKCud+8L5cRbTTRxcwiaUEQXk45Q9GoLV0ZLtW8kO3gOPvLBBy088Sg2W Ifa6PKruQHs6bmUELL4Vw== X-UI-Out-Filterresults: notjunk:1; V01:K0:6htTifwGRLM=:7s0q7wBCMeEAdSERy834/7 WtJhq7c7wYXI0XL+6640GwgNlbmEUJwOQPHoJ4J1Pl61fjuIkJQLC9XHCw9GVcSULRfssVZlu VCyW4RGTokGa+y2lbHdeci4AcgtsaqiIkhHCEdy8bh69mBzf87DaT59su2/ZHbGnfFNov7NQu 6D/koqKhD3sFb1btOhSFk+KdnYoki/Fj15rSLdZ6E9P8DtIoKCkL6GDY7b5p+nvPLfppb3DUC q9mwOi/8xqRY2mhuJipJQkyDkoPwDlu9cklPxRNDaVgNIAU+spyylRRKlY2Akbp+YL2IL/3FD F3jcmke2x06A78aeCcsr+Z1C4tGu7TPReh1ljIUfzXFeZuUQDUguDTTdyMbYyumHnXdID3tdP BDbw0Bx6qlCr5SO4fcm0NiqQOZHLPzIarIyL1XpKrxUgbOaKV3F2PhfNr+5zj2vNc6b1AqufZ C/SPyDIz8mdkxwXyP4wihxvS//4Nh3ZIRok6ntJCWtBqHadEiqjnjtp0bvbK6+Zfss29AmsPX mwJ2xm+99AR7L53wOuyB1jqlwuSlXFfYDWb5QHozTThjNa2vXvmYjTm6ooV/YbENRDi9SR6MX 4FSKjevsEtT6B+BaWxbAV8McHnFgCzFKOOt5Vi/wP5YdLAvXyZfybmDrl1Uda1xXzO2hSC5gC qAm6chXK0BbduOhjadtQ1/lPgYFHZ3R6A/FYqdr/iIrz1pEPMtO+Xx37PnjdArf1WzhQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Moving the call to suppress_message_printing() into the '#ifdef CONFIG_PRINTK' section means that the alternative definition is now unused when PRINTK is disabled: kernel/printk/printk.c:2033:13: error: 'suppress_message_printing' defined but not used [-Werror=unused-function] This removes the stub function. Fixes: 375899cddcbb ("printk: make sure to print log on console.") Signed-off-by: Arnd Bergmann --- kernel/printk/printk.c | 2 -- 1 file changed, 2 deletions(-) -- 2.9.0 diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 4ca0f9bca82c..e015ac4ee367 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2030,8 +2030,6 @@ static void call_console_drivers(const char *ext_text, size_t ext_len, const char *text, size_t len) {} static size_t msg_print_text(const struct printk_log *msg, bool syslog, char *buf, size_t size) { return 0; } -static bool suppress_message_printing(int level) { return false; } - #endif /* CONFIG_PRINTK */ #ifdef CONFIG_EARLY_PRINTK