Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp689956ybg; Mon, 1 Jun 2020 11:46:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFZFfSdupnoo1k6FtyIBqRD/N3S7XgZ4d6uSCifaTs/rx1WwuV/F3/evOCN8HUa1LS0DGy X-Received: by 2002:a17:906:4088:: with SMTP id u8mr21440081ejj.422.1591037161106; Mon, 01 Jun 2020 11:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591037161; cv=none; d=google.com; s=arc-20160816; b=wopYxg73nop3mzBA4b1cCd5FrGPtojJc4Dz6HbtvVqsNMIqdHVTLhfJtMgnGIj7lKH yQzPc4yp/0rX70A5I/eCkl5y7NMekmcwLUf0TzDqSYCt7xtTg8KcRYVT96J9OI5ldJTu RRH5ACqT6uuINXCLMIW7H04jVztR8DW4qREBCQAtzK4P5hLf4XQH5vqn5tIz0xpJYiJJ pE06G7qACKH/omK43f9P6UiTJPKEwT/teqpiFExKMoKTS+4y54uEvini26X650Ji4MlA q6y9y275R5WWhlOcoRAFM/CelcIgF+yB2kzct1gSTfA6GWy2vRhqV+Bw3HplrweKsXUe 3lFw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HV3dbnto+zMF+YknaSTdBqhNlzEgaf0Z2PowHj+/cEY=; b=WkrUMeduTFrORQn9734b+ouK2a0indP9DFtkmEtXPGon1tyquLLBtQJIMXkEg/QN4F VPxUKvRIa943R88UJSZ5KS8SI9RfZKsxD6m/zmFEEIxrEVpYg4It4d1cQMSgdQYod/Py 9wX+irSz11bvfDRH7NCqcxC/9vKPl38HDLnf4LK43cPvrZxyoS8E0kxc1G2ovJn1QRW6 XfwD31p0yCOVaBGOcaBr1qJK/Gc/9uQxZ+LTHERvhEul3FlYh1jDHsjrk60U8woYummR Hmsd7ywu/ZENSRbjuVS69UoHc2pM5hBJC8mxxPyIH8eArS5wOJIicGV7RYbAMj7u0PTZ fhWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K5ZFyJ0H; 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 bm10si199669ejb.507.2020.06.01.11.45.38; Mon, 01 Jun 2020 11:46:01 -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=@kernel.org header.s=default header.b=K5ZFyJ0H; 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 S1730310AbgFASno (ORCPT + 99 others); Mon, 1 Jun 2020 14:43:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730077AbgFASLS (ORCPT ); Mon, 1 Jun 2020 14:11:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A0D1F2065C; Mon, 1 Jun 2020 18:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591035078; bh=RZgud379woqQfPViLyVEe4pZrasNvkKO0kuSoSCnJQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K5ZFyJ0HsLuNME727chRH3Nsxvtys8d47+Gi7eicCc7AjTD3YbMorfqc5hayEEXSA 1OL3ThBEzIrSHQhTAw4oaJu9IzFS+giePi7O0cOy7tre5T5NfypbyHRCduVNsEdTyN 5eus4KPxv3cuDNOGkQscOEWO1vIZhc4aHGrhnqXk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Pablo Neira Ayuso Subject: [PATCH 5.4 141/142] netfilter: nf_conntrack_pptp: fix compilation warning with W=1 build Date: Mon, 1 Jun 2020 19:54:59 +0200 Message-Id: <20200601174052.294153462@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174037.904070960@linuxfoundation.org> References: <20200601174037.904070960@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pablo Neira Ayuso commit 4946ea5c1237036155c3b3a24f049fd5f849f8f6 upstream. >> include/linux/netfilter/nf_conntrack_pptp.h:13:20: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] extern const char *const pptp_msg_name(u_int16_t msg); ^~~~~~ Reported-by: kbuild test robot Fixes: 4c559f15efcc ("netfilter: nf_conntrack_pptp: prevent buffer overflows in debug code") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- include/linux/netfilter/nf_conntrack_pptp.h | 2 +- net/netfilter/nf_conntrack_pptp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/include/linux/netfilter/nf_conntrack_pptp.h +++ b/include/linux/netfilter/nf_conntrack_pptp.h @@ -10,7 +10,7 @@ #include #include -extern const char *const pptp_msg_name(u_int16_t msg); +const char *pptp_msg_name(u_int16_t msg); /* state of the control session */ enum pptp_ctrlsess_state { --- a/net/netfilter/nf_conntrack_pptp.c +++ b/net/netfilter/nf_conntrack_pptp.c @@ -91,7 +91,7 @@ static const char *const pptp_msg_name_a [PPTP_SET_LINK_INFO] = "SET_LINK_INFO" }; -const char *const pptp_msg_name(u_int16_t msg) +const char *pptp_msg_name(u_int16_t msg) { if (msg > PPTP_MSG_MAX) return pptp_msg_name_array[0];