Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5849403ybn; Sun, 29 Sep 2019 07:03:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQVXhk7dMlhTaBoZczj/IenBVG+UPvC+kYFYFxd23XZZeOZLSAZj6163zx5jtIOzT9F+Es X-Received: by 2002:a17:906:828c:: with SMTP id h12mr15541918ejx.155.1569765793689; Sun, 29 Sep 2019 07:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569765793; cv=none; d=google.com; s=arc-20160816; b=X7nWBz1xBf057h4WEKMti/D2pDkqKILoJNZVuy023HiVTWByX3YTmWn+OMAGYSnMNu ceOljer+BbQRS+oc4xcmLbv2Ha2qrL+SR/ZxZBs9P6zp9YCfxyzBmquFg9vgxygdidoK JBZ9La8IBON9pxaDSrCMpC/BcLOdMLACum0h3NaEKPpsnaYFuhzbSVsha+ao7I1Nospi E0CQgLnDMTV5hjryt8Q4J6HsGbSGIcE6NTVXwh9XNefbuOdSAx1qd9tHR5CW5DYO4ol/ xnywDgmUOZdA9O7wm6JF1Ne7yBmLs/cQcsyRvSDqdHKyt+BvhCGaz/ngZTtJzfCKZxqr an8Q== 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=yxA05KmUjJlDLP64nigtqVR1A8PHOuA50+7RvjMI/aI=; b=z9PzKhhtjyfFQ3tSqA6aOsCRiOHe5dSiKq1eSInp2j0KzeOn1D4dsZrzgoDy62sFbR /S/V2+sb5shiLXexRC10XH6q1uj7XoG1q9BkZzi7/9eEsIR+r77cUe7dF+PbQaJIK49H zB/qm9wWscjWU88nKodqCpVJ1IYF3JmKD7UKux6XSnVRC94JK15TZLQpciunPoAn5fNh eaUbFxX4tTIq9yDUTZBSyz6Z42tOy9F6CCA0yDVc4XgHDOex0N5yYhuQHHa0Npd5NHea Si5Q9GuJIOi8+alzar99UGi92xiNSHe2Ih9KbweEufXOMehjpCF28Rt0Qrm31pkGu3WX e2+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BWRrPJvE; 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 f17si6578067edf.328.2019.09.29.07.02.48; Sun, 29 Sep 2019 07:03:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=BWRrPJvE; 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 S1729206AbfI2N74 (ORCPT + 99 others); Sun, 29 Sep 2019 09:59:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:41354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729090AbfI2N7y (ORCPT ); Sun, 29 Sep 2019 09:59:54 -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 E9B81218AC; Sun, 29 Sep 2019 13:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765593; bh=LoLT/BNnw/82HhhkcwYdCMddbzY+ZbKn7J/2db9xysE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BWRrPJvEZ5XmmkgUpES9MBOvmoSDRfnq4RABW7VDWfWPFdBqwl0a5ksfsBQ62rdWH gr826MijPNdlMlKUrVuaMKV6/2+0wfUi3xemT2XgfKj2Qo5s1UDE1kM5IHuIA5JWUg M4hli0IpBybsMic7CmMo6Yiny8YWI2ibejPMLz+A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Hemminger , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 55/63] net: dont warn in inet diag when IPV6 is disabled Date: Sun, 29 Sep 2019 15:54:28 +0200 Message-Id: <20190929135040.667958550@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135031.382429403@linuxfoundation.org> References: <20190929135031.382429403@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: Stephen Hemminger [ Upstream commit 1e64d7cbfdce4887008314d5b367209582223f27 ] If IPV6 was disabled, then ss command would cause a kernel warning because the command was attempting to dump IPV6 socket information. The fix is to just remove the warning. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202249 Fixes: 432490f9d455 ("net: ip, diag -- Add diag interface for raw sockets") Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/ipv4/raw_diag.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/ipv4/raw_diag.c b/net/ipv4/raw_diag.c index c200065ef9a5e..6367ecdf76c42 100644 --- a/net/ipv4/raw_diag.c +++ b/net/ipv4/raw_diag.c @@ -23,9 +23,6 @@ raw_get_hashinfo(const struct inet_diag_req_v2 *r) return &raw_v6_hashinfo; #endif } else { - pr_warn_once("Unexpected inet family %d\n", - r->sdiag_family); - WARN_ON_ONCE(1); return ERR_PTR(-EINVAL); } } -- 2.20.1