From patchwork Wed Nov 4 19:35:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1394501 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CRH8C2kYhz9sTK for ; Thu, 5 Nov 2020 06:41:15 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=wQEUFgF4; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CRH8C25hJzDqfr for ; Thu, 5 Nov 2020 06:41:15 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2a00:1450:4864:20::341; helo=mail-wm1-x341.google.com; envelope-from=lee.jones@linaro.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=wQEUFgF4; dkim-atps=neutral Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CRH352xYHzDqdG for ; Thu, 5 Nov 2020 06:36:49 +1100 (AEDT) Received: by mail-wm1-x341.google.com with SMTP id c18so3512906wme.2 for ; Wed, 04 Nov 2020 11:36:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sW45qqqQ6addDuh9wJMdphmMJUrhr2wEdPzjio8U9Vc=; b=wQEUFgF4ft5oi40ft9oy0bhvwfOdzDGjDBQ2fN+SdQlJfJkX4r7TwxYmkN+KP3GKDd LsgCPgefHaUlqOeA/qv4qxZDrkGs5AiQ0cWMRRVNnjniTVbXT62KAywGPD5My9rthOSm Wrixjs4a/HrBE+15gf2Y1suPR4vriY31mY8VmG4H4PLLx9rD4L7b+F9R4CbJaVbOXru0 uRPRENrjej+ej4wW8TpmeUl6Ux3P3uRoJzL3kIeasmK0vn/SO0n47mgK9Ck3ed8n4bSo JgtLWi13TuJIt4UfgUH6hOkpEPoycwlNj0hjAKUL1eHeBEHdo0lIovfcLeONIUAllXhT LBtQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=sW45qqqQ6addDuh9wJMdphmMJUrhr2wEdPzjio8U9Vc=; b=hejkekDDscFSj4oRC0RgjY4i24JajQDedzkqVm2Fkl7LSc7cPcIm2qw5nMo01G0Vne ihVvUVs6YFw7MG0hLq5IL8kIV9QGx3glIt43yX4t04058pYozNvOeN1cYSNIAiut5mlt 44c019FJgc3BiThHRZy6kfyy/JYCiiTxEV3YVgQ9UeWXLk/YMxKWmUv9B6qT8O/vsasQ APNZmPQJ+qcp0NPCBT96ukp/X6AAF34BJQRbkxD4pFwDU4cdVTU0NkSSVCv15xu0sZ2J aDE87ZJNmbC+IbF1f5X8ETp4OJFBMG2ZJr0jS1B9E0StHaBOKJaF4BqO6MSVFaGOtb22 /8xA== X-Gm-Message-State: AOAM531z/vjHrmei5+1aXMsTt/LM5HG273CqmN19y+ZMCDcnHvKUb9QT gamHzdogG38cIhNCj5jNkFH7/g== X-Google-Smtp-Source: ABdhPJzS1GNCL1q4lGL4YRttHLZ6psOrCrvvSmz+bUeyN+dq8yTpxhmAygyPOyuFG9pbUEAALMHMXw== X-Received: by 2002:a1c:4d14:: with SMTP id o20mr6094659wmh.72.1604518604614; Wed, 04 Nov 2020 11:36:44 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:44 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 31/36] powerpc: asm: hvconsole: Move 'hvc_vio_init_early's prototype to shared location Date: Wed, 4 Nov 2020 19:35:44 +0000 Message-Id: <20201104193549.4026187-32-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104193549.4026187-1-lee.jones@linaro.org> References: <20201104193549.4026187-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, Paul Mackerras , linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Fixes the following W=1 kernel build warning(s): drivers/tty/hvc/hvc_vio.c:385:13: warning: no previous prototype for ‘hvc_vio_init_early’ [-Wmissing-prototypes] 385 | void __init hvc_vio_init_early(void) | ^~~~~~~~~~~~~~~~~~ Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones Acked-by: Michael Ellerman --- arch/powerpc/include/asm/hvconsole.h | 3 +++ arch/powerpc/platforms/pseries/pseries.h | 3 --- arch/powerpc/platforms/pseries/setup.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/hvconsole.h b/arch/powerpc/include/asm/hvconsole.h index 999ed5ac90531..936a1ee1ac786 100644 --- a/arch/powerpc/include/asm/hvconsole.h +++ b/arch/powerpc/include/asm/hvconsole.h @@ -24,5 +24,8 @@ extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count); +/* Provided by HVC VIO */ +extern void hvc_vio_init_early(void); + #endif /* __KERNEL__ */ #endif /* _PPC64_HVCONSOLE_H */ diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h index 13fa370a87e4e..7be5b054dfc36 100644 --- a/arch/powerpc/platforms/pseries/pseries.h +++ b/arch/powerpc/platforms/pseries/pseries.h @@ -43,9 +43,6 @@ extern void pSeries_final_fixup(void); /* Poweron flag used for enabling auto ups restart */ extern unsigned long rtas_poweron_auto; -/* Provided by HVC VIO */ -extern void hvc_vio_init_early(void); - /* Dynamic logical Partitioning/Mobility */ extern void dlpar_free_cc_nodes(struct device_node *); extern void dlpar_free_cc_property(struct property *); diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 633c45ec406da..6999b83f06612 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c @@ -71,6 +71,7 @@ #include #include #include +#include #include "pseries.h" #include "../../../../drivers/pci/pci.h" From patchwork Wed Nov 4 19:35:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1394502 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CRHB13Cynz9sSn for ; Thu, 5 Nov 2020 06:42:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lBGC22hr; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CRHB130xHzDqjY for ; Thu, 5 Nov 2020 06:42:49 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2a00:1450:4864:20::344; helo=mail-wm1-x344.google.com; envelope-from=lee.jones@linaro.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lBGC22hr; dkim-atps=neutral Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CRH364PdzzDqdv for ; Thu, 5 Nov 2020 06:36:50 +1100 (AEDT) Received: by mail-wm1-x344.google.com with SMTP id c18so3512956wme.2 for ; Wed, 04 Nov 2020 11:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zxBTDWs68qW2IKMyEc77XRI2Jnwwebqtmwz2IV/xXfE=; b=lBGC22hrQ40oIvqXRErxf0OYpYRByN+EoViOk/xvc/ZcFLq19660h8+8xXVsiu9vud +/CliTSp2aP8RZ+UvcpoXEY5DopYhvMr2BCPDjYw9pF6/ehngNnezDgWTPiCaGK105bv rGlbQkZVvkB7ujPAREYsSgjeYk7omOrHtr6mftUmSAYQJB/i6OIRHZrNiqGPB4gh90R/ XGzS0cShqv30RMA3wQJeeugIKOe1F+nhFGAb9p2Y71kCD+yk/jpQ2LBCMLqnPxSeihKH RtOfR3/LIkVTYtur3KydW9GjMbmy6l46Tl6UvV4MTu+bj0+tVtHSsLhjGvQu/OOhLgGx fFGw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=zxBTDWs68qW2IKMyEc77XRI2Jnwwebqtmwz2IV/xXfE=; b=QHCe2ZeQlk3vHxxiuSI5SWHwrFgnJSmLjqKWIBjDRbv7+0gtCYhrFa4G+UqL3obv/A kpW50ZGvsb/inaQgx1cs/YFvkj2ZLK5FQifgZgc8QrVcyqv4ngp8sgfMbnR9Fx3dvLNN 7kfxV1b1zO31IRW5GqqRa8GYYShuKP0iNpJEuBVpMfdMNpoEZLDZ9NFi2HK2W4Xf6KHC W9QT3TVHWtvIT9Jus+9xrjWeFQaTT1C4z2wIPDCBI2HMZ2SdvdE0ESAst8Pq+I76//Q6 oOZ4B2A2uX7V/kGNd5Sug7NpnWqyVQI5BQH5Sqz/xiVXSKc7cyIEvi59IQyO/ixnl1NY QtDA== X-Gm-Message-State: AOAM532Nyc/Kwt4FCV2OTtcvEHRfbuLTAseP4hlf/712R5AmEC0ypxNt 6pl+fgDAHEsobGt2zO9pOjGjWg== X-Google-Smtp-Source: ABdhPJxXR1wM5qdy4HdVNYzdft1GlgyNDm7GFF04Vwdmpm24W7EfG3N0V4cq/CqyRxar/qGpno05eg== X-Received: by 2002:a1c:1f91:: with SMTP id f139mr6057124wmf.187.1604518605931; Wed, 04 Nov 2020 11:36:45 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:45 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 32/36] tty: hvc: hvc_vio: Staticify function invoked only by reference Date: Wed, 4 Nov 2020 19:35:45 +0000 Message-Id: <20201104193549.4026187-33-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104193549.4026187-1-lee.jones@linaro.org> References: <20201104193549.4026187-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Kroah-Hartman , linuxppc-dev@lists.ozlabs.org, Jiri Slaby , linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Fixes the following W=1 kernel build warning(s): drivers/tty/hvc/hvc_vio.c:181:6: warning: no previous prototype for ‘hvterm_hvsi_hangup’ [-Wmissing-prototypes] 181 | void hvterm_hvsi_hangup(struct hvc_struct *hp, int data) | ^~~~~~~~~~~~~~~~~~ Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones --- drivers/tty/hvc/hvc_vio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c index 7af54d6ed5b84..798f27f40cc2d 100644 --- a/drivers/tty/hvc/hvc_vio.c +++ b/drivers/tty/hvc/hvc_vio.c @@ -178,7 +178,7 @@ static void hvterm_hvsi_close(struct hvc_struct *hp, int data) notifier_del_irq(hp, data); } -void hvterm_hvsi_hangup(struct hvc_struct *hp, int data) +static void hvterm_hvsi_hangup(struct hvc_struct *hp, int data) { struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; From patchwork Wed Nov 4 19:35:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1394504 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CRHFf3xsyz9sTK for ; Thu, 5 Nov 2020 06:45:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=uXVhNdK2; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CRHFc0mH1zDqkk for ; Thu, 5 Nov 2020 06:45:56 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2a00:1450:4864:20::343; helo=mail-wm1-x343.google.com; envelope-from=lee.jones@linaro.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=uXVhNdK2; dkim-atps=neutral Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CRH385bQWzDqdv for ; Thu, 5 Nov 2020 06:36:51 +1100 (AEDT) Received: by mail-wm1-x343.google.com with SMTP id p19so2557135wmg.0 for ; Wed, 04 Nov 2020 11:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xSLrFShdIRGu2Z0l5VTYddY/Kvq8FZAdgHuY+BxUcAw=; b=uXVhNdK21Wddb2jNKS1C3MSNolc+cUuO83JkVAMzjCfcEK2rXqEZm/X1pgBv2scGnk +zTIi5I0E4UUj/SWhQfmDr4tTemUDgmD+vqMldqbc5VWlLHJw2VznOLL6cQQ2riRvOjG Oz3R1W52EjItgciKCtJDyJKyo05tCZUvncTXKz9jxULN2eOCWOXSpg/nn1SsPqc+TKi2 XZwrXq8AJJjdtvwzfzghNkV7WmH/DZmphK+Ic4G2O2tM2X5o1FnlnsBABertwo8bI23y X6giOXaKIJ33PQGAg6tdVHGZfQVQhSn2ryN1HGPgk+bdVsnkAZG+Q6LnLqFwBGp34hPA vlUg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xSLrFShdIRGu2Z0l5VTYddY/Kvq8FZAdgHuY+BxUcAw=; b=prPS9NjgPIxIsOel+wZO8eHX39S00uZEzf2/co8PplhtF/FCdu9JyiNCP25PVJOcuJ SPpc1UOt9PcgHrOX2NOBdFmB3JxHCw+NjLzRpmZoswO2iSJl92fmEXthzfamW7Vgv5ZA t2+hPJCKEGs8tDj+/Y24MZjZmCeUSEXk6bsjQwzzSE9bMdigsjTYHFhayHcqGUx/0J1K GQmVlKAl+ygiwLY0y+XqAVvQiLuzE40HNIsxi2gac8nUjZDUJjgLD4uQDiPZrMML9r+I 0N2FvVhLU6vlpTF+uGT9FLGJ0GVTC7mW5dLaIJmR042A0jEdGv6gybKGNmVtpC58Ogwu Ot8g== X-Gm-Message-State: AOAM533HQWY9WIh64jrQG9HzU44HjbHNYTnXD8Sg3S5ercMWK9xqZL79 kj+QP/VfQFzOtDZz3lc8UXW+ZA== X-Google-Smtp-Source: ABdhPJxv4RJjIe6ZQcTMccVOlCyU/O+jKiSTg54znUrsoQWEPdWdSKIPcsjztIYwEOZvLvE96ySv+A== X-Received: by 2002:a1c:f312:: with SMTP id q18mr6307261wmq.30.1604518607199; Wed, 04 Nov 2020 11:36:47 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:46 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 33/36] tty: hvc: hvc_opal: Staticify function invoked by reference Date: Wed, 4 Nov 2020 19:35:46 +0000 Message-Id: <20201104193549.4026187-34-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104193549.4026187-1-lee.jones@linaro.org> References: <20201104193549.4026187-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Paul Mackerras , Greg Kroah-Hartman , Jiri Slaby Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Fixes the following W=1 kernel build warning(s): drivers/tty/hvc/hvc_opal.c:106:6: warning: no previous prototype for ‘hvc_opal_hvsi_hangup’ [-Wmissing-prototypes] Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones --- drivers/tty/hvc/hvc_opal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c index c66412566efce..056ae21a51214 100644 --- a/drivers/tty/hvc/hvc_opal.c +++ b/drivers/tty/hvc/hvc_opal.c @@ -103,7 +103,7 @@ static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data) notifier_del_irq(hp, data); } -void hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) +static void hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) { struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; From patchwork Wed Nov 4 19:35:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1394503 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CRHCg4yfPz9sSn for ; Thu, 5 Nov 2020 06:44:15 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=pX29kLlm; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CRHCg4KfbzDqlP for ; Thu, 5 Nov 2020 06:44:15 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2a00:1450:4864:20::342; helo=mail-wm1-x342.google.com; envelope-from=lee.jones@linaro.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=pX29kLlm; dkim-atps=neutral Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CRH386RrDzDqf5 for ; Thu, 5 Nov 2020 06:36:51 +1100 (AEDT) Received: by mail-wm1-x342.google.com with SMTP id h62so3434948wme.3 for ; Wed, 04 Nov 2020 11:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ErfYpYEPgr7SyR0IGrTLDHOPTVsMeF+NG57/GEyOHB0=; b=pX29kLlmBcSPTSQCXTO8Lo9d4QG+nqnnImw6YFxmstscNqOOswbExguUzzT4L2axlU D3GWk5jA11ZzA+AZVtegLCVhl2Ob2ZmAEEHVzMHCsciCYwyQTL8h89K8WzLvAsv7TRcu 7yI+7qd87nij+dGvWnf+2yyWANiI/xOXRymlotH13o1iY4W7M550ffyUTs+i/hqzxRcZ TKhz+VRg0g9MO6Q9omYUAHnyYyG0b/tNB7yPcru/BSqEkR7LGsnBTwhTnSMhBAoFeI05 ZFKQqxZhOGvRVRNlQ6UmnNU504R2+m9kxBQlMwaHA65WTwkPAt9WKivfMsX/iLNdWsoh CY8A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ErfYpYEPgr7SyR0IGrTLDHOPTVsMeF+NG57/GEyOHB0=; b=SrJdjEmbqijaW6iLzYyeTniakMGSbN7ojAJpbLuhsDVi0a8+/0bZUYsM1hJrdwzEqX 7VijYgr5McfkRa+rtVtPxs+i7UYYy/SzwjuPIJRroVk7h3by1em/Yzb6nRN1CDvkUD+r AozbB2FZCD2AjWuog5oM0BAB2SILpseW55vDuS0Fd5A4llIGCJUaiMgTCxAkse+okrFi 3VvYJ4IkXZze+p1pYSlzrljNUfArDNX+UGnpNcCodje6nXHetYaDw7tLIcXR5dG+0TXd 5pE6+5PL3JgqG7cezD9IE1Tl2aUK6ayz2LUY5N7lHh3XRv48jSaKFFBVVBa7ljya3agN a3Pg== X-Gm-Message-State: AOAM532MvvzD4QhaZgnpBdrV0gPhZLqvEKMvUwx1a6fTkFFMqqR2P5oW 4TsKmykCEm0ONpE8p4AWoDeS3Q== X-Google-Smtp-Source: ABdhPJztfIELyaPKKHSKpD48Wccw9fHxSvlItbhEYnm/xRNIcnSe+Wnjs2/1thwCJMJZLY6LsZDnhw== X-Received: by 2002:a1c:a90e:: with SMTP id s14mr6477604wme.46.1604518608351; Wed, 04 Nov 2020 11:36:48 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:47 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 34/36] tty: serial: pmac_zilog: Make disposable variable __always_unused Date: Wed, 4 Nov 2020 19:35:47 +0000 Message-Id: <20201104193549.4026187-35-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104193549.4026187-1-lee.jones@linaro.org> References: <20201104193549.4026187-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Kroah-Hartman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Paul Mackerras , linux-serial@vger.kernel.org, Jiri Slaby Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Fixes the following W=1 kernel build warning(s): drivers/tty/serial/pmac_zilog.h:365:58: warning: variable ‘garbage’ set but not used [-Wunused-but-set-variable] Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linux-serial@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones --- drivers/tty/serial/pmac_zilog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/pmac_zilog.h b/drivers/tty/serial/pmac_zilog.h index bb874e76810e0..968aec7c1cf82 100644 --- a/drivers/tty/serial/pmac_zilog.h +++ b/drivers/tty/serial/pmac_zilog.h @@ -362,7 +362,7 @@ static inline void zssync(struct uart_pmac_port *port) /* Misc macros */ #define ZS_CLEARERR(port) (write_zsreg(port, 0, ERR_RES)) -#define ZS_CLEARFIFO(port) do { volatile unsigned char garbage; \ +#define ZS_CLEARFIFO(port) do { volatile unsigned char __always_unused garbage; \ garbage = read_zsdata(port); \ garbage = read_zsdata(port); \ garbage = read_zsdata(port); \