Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4339417pxb; Mon, 27 Sep 2021 14:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGPlUljUoTUn8k/URRgDgMIAQexTBTs6y2OL+TVvgIEGSR64A9Tl655echyu0Lf7t9ihCO X-Received: by 2002:aa7:c952:: with SMTP id h18mr3163841edt.18.1632779916632; Mon, 27 Sep 2021 14:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632779916; cv=none; d=google.com; s=arc-20160816; b=yOOrbleMGnisa+OxfjXAUw4WPDONEaqlW7NiZDzWXUvel6fdwRjwKAG8PE7YllCc39 +o/tutt1fTIQdVAaCAXtKGZZgKh7pIUBDYnNEi8e24YmgJP74aKL30qZ3ZxAcf3Bsb8G V6mMGLrw5REuhqEhP1pARpHcCy4+hZoWSBpr5MMt3r8L5KCgUlisNNC72T/64oGUQU14 Us+Qt9TMSJBErazXHdRP91/iuMt6ObHTMxjCIIm1Kn2ygjW07mGdgV2aUEaDrDusP5io nftG7cf3tZHDIr/aqdm6zr7vRvtM718QnqxomHMkBO9OTUWzcsVPKNBNm3KVvo4AKR6o 6wVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hGX2uraOWKcbdqvQEGEcWfwcUwznDEuW9gnPoVw/EgI=; b=rnc1Wms6UCRbx/0LlHbFexhN3SYiSjeKB7Yf8DPSyCv3s2anOF1aLPnbb2aieFaNxY e2hKKh9jLZWYUbyoMKmwV9MAbCpw7yEr0YPVTgzNqFxp6PCKUTiq/OFs3k5J7Y1WcVbw RHKcZsTx4LT0AIupwYOapYbxGVUAWweDbacg8LOdi7rmk5mI4RUzmtqBle+0GBHlDRRV nJvgvwrfDenkBC5klcInIG3yhVlpDAYxNh1UsVp3p2xYW6o8CY4Rx/SQj63gvSrQj7H0 BEGmGOR+pCEIOAI75xZozZQmZWozfzjpPjUMJ4TXb6Vlwm40/ZB7j9gK8pQ/s1RSooRT wi8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=shlhIolo; 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 c15si830015ejz.158.2021.09.27.14.58.12; Mon, 27 Sep 2021 14:58:36 -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=@infradead.org header.s=bombadil.20210309 header.b=shlhIolo; 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 S237426AbhI0V6b (ORCPT + 99 others); Mon, 27 Sep 2021 17:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237393AbhI0V61 (ORCPT ); Mon, 27 Sep 2021 17:58:27 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39B33C061575; Mon, 27 Sep 2021 14:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=hGX2uraOWKcbdqvQEGEcWfwcUwznDEuW9gnPoVw/EgI=; b=shlhIoloA5/y4cBG9UooN5GbSW ijM03Fm43/Qu54nJagQc7sk9etQwr9ldMXJEaFMwzQXMNAvsW52Kf0rw2Y9laLR8m91A/lFLEz0CN Yxi7Kg1b+VGuyaM4x3jvbN27QM/lrppJjx0bPRbLhaAKUA9R+G+yPWZe30FFX32qeogOzH1gkRPCq JZW6FWNvYlpGbTiibFSEDKaY0+f4mMj1KwbO4cWptBfJ6r7EpHEwZZdiNWUYS4VSNG2Utp1afkYsJ nIopo5QnPbPeegK/ay3PZ0KrPf7eKryFohKiTGpy9Pi/fsLOmYGLPrEzSDuPqPsgMK20jaZ5u8Hx3 ER8gqQLA==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUycC-004Rxw-Hi; Mon, 27 Sep 2021 21:56:48 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Subject: [PATCH] s390/sclp_vt220: fix unused function warning Date: Mon, 27 Sep 2021 14:56:47 -0700 Message-Id: <20210927215647.11506-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_SCLP_VT220_TTY=y and CONFIG_SCLP_VT220_CONSOLE is not set: ../drivers/s390/char/sclp_vt220.c:771:13: warning: '__sclp_vt220_flush_buffer' defined but not used [-Wunused-function] 771 | static void __sclp_vt220_flush_buffer(void) so move this function inside the #ifdef block where it is used. Signed-off-by: Randy Dunlap Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s390@vger.kernel.org --- Sorry, I can't determine what the Fixes: tag for this should be (missing some git fu). drivers/s390/char/sclp_vt220.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20210927.orig/drivers/s390/char/sclp_vt220.c +++ linux-next-20210927/drivers/s390/char/sclp_vt220.c @@ -768,6 +768,8 @@ out_driver: } __initcall(sclp_vt220_tty_init); +#ifdef CONFIG_SCLP_VT220_CONSOLE + static void __sclp_vt220_flush_buffer(void) { unsigned long flags; @@ -784,8 +786,6 @@ static void __sclp_vt220_flush_buffer(vo spin_unlock_irqrestore(&sclp_vt220_lock, flags); } -#ifdef CONFIG_SCLP_VT220_CONSOLE - static void sclp_vt220_con_write(struct console *con, const char *buf, unsigned int count) {