From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754652Ab3LQQUV (ORCPT ); Tue, 17 Dec 2013 11:20:21 -0500 Received: from charlotte.tuxdriver.com ([70.61.120.58]:53067 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754340Ab3LQQUT (ORCPT ); Tue, 17 Dec 2013 11:20:19 -0500 From: Neil Horman To: linux-sctp@vger.kernel.org Cc: Neil Horman , Vlad Yasevich , David Miller , Greg Kroah-Hartman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] sctp: Consolidate and ratelimit deprecation warnings Date: Tue, 17 Dec 2013 11:19:57 -0500 Message-Id: <1387297199-14363-1-git-send-email-nhorman@tuxdriver.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1387205049-22752-1-git-send-email-nhorman@tuxdriver.com> References: <1387205049-22752-1-git-send-email-nhorman@tuxdriver.com> X-Spam-Score: -2.9 (--) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SCTP protocol has several deprecation warnings in its setsockopt path that can be triggered by unprivlidged users. Since these are not ratelimited, we can spam the logs quite easily here. Since these are all deprecation warnings, and that type of warning isn't uncommon in the rest of the kernel, lets make a common pr_warn_deprecated macro to produce somewhat generalized ratelimited deprecation warnings easily Signed-off-by: Neil Horman CC: Vlad Yasevich CC: David Miller CC: Greg Kroah-Hartman CC: netdev@vger.kernel.org CC: linux-kernel@vger.kernel.org --- Change notes v2) Converted to use a pr_warn_deprecated macro v3) Converted to use a DEPRECATED macro with regular pr_* macros