Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1409555pxb; Fri, 21 Jan 2022 18:01:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9akLp1wOCe/5YlRo6KpKyOiMvVmGDph2+2hHjnazjzQNGdpntXLjtnvu5Av3es/nt91I2 X-Received: by 2002:a05:6a00:1a15:b0:4c1:ec02:640 with SMTP id g21-20020a056a001a1500b004c1ec020640mr6047015pfv.81.1642816876788; Fri, 21 Jan 2022 18:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642816876; cv=none; d=google.com; s=arc-20160816; b=FtslcF2UFE8B875v4986vwLDPKJBkNvK10q7Mlikerk8wYtb+nov8o10GwHYBD2fOg OS8LGytRqusqAKElnRGTvTUpnEPeTi6I11150zEPUxZW0xPKBIN+XiBEXKlLnBuVxQ0S eASJffb23SrUsyRJuo50M1+dwCI6k0UfNt0IlGpqPZYw6jhofRZ578r8tmfYrRY9Hg8O tOVyABxUgMWv4sKz7IH89z0NFWEAyvdnAc/I/PXsW58yaPrmSMkXjkCbCulbxOm6DFlA 1CNitn55XwDDPImhfA2l/ZMU+6vE748pjy3VcXtUFJ8klaosntNV+7Ex6pIXW163gimW kK6A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=X1prsGZ36V3LEOTvvkMgk2CqZfwnDb5j2wczkknGbpY=; b=H9CBnUc5I43AgBzd4uaQVQWlBOqs9SruKVICykWSbQNxpcUT2pGd8ZeuFx07xntrm0 /FpEPVBhLzT/22BNR7qpSgmpCp6cO9fX/DfXISvTgG2J9lEC7dEOgFht49bFUAWS0pQ+ G7F1bjd1hlDFCIdTKEhpYfW9Waon4nr7tIXdcUjV8zVAy4WIXYhzN6MWMhaVZuqwhrIu Bl4mR8w59w5E7cJdjkml/QHhTzpww2+YCfAKuD62GnKBKYk7Rlx7C0cQfzSWS0g4hiCP dseQqtlPbLdYv/HgZtiQUiNbRUFLop7x9TmLt1Nr1YEH5fuUOkkiIlcmiY139q0fHttQ YrKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=M7T75clt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si7152260plh.260.2022.01.21.18.01.04; Fri, 21 Jan 2022 18:01:16 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=M7T75clt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381844AbiAUQ5Y (ORCPT + 99 others); Fri, 21 Jan 2022 11:57:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380361AbiAUQ46 (ORCPT ); Fri, 21 Jan 2022 11:56:58 -0500 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA4DC061778; Fri, 21 Jan 2022 08:55:55 -0800 (PST) Received: by mail-oi1-x22e.google.com with SMTP id s127so14386942oig.2; Fri, 21 Jan 2022 08:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X1prsGZ36V3LEOTvvkMgk2CqZfwnDb5j2wczkknGbpY=; b=M7T75cltulYZ8dLhgYXj6Dqlc+gxskyEj1qidzGRzta8A7Ws3Zr9QSTdP2w/UtNCH7 1QfX8VMaNiOeO+aJ43N06CEVr1qHaj21QOWCh66A0Szq1y/o6Oho0NI9zlUO9u8pGT59 EtP8QRnBXkMWCZlGNXKyV/jcv7iIlxRmyq2P2drG6x93IlqH8s6xSoTS+N5MiAShuOnK SlwWVtPdq0Td7Ppi3b0Y9dJHAl1tIlUGE7SGv5WstOM27x3MWNCgph2FW0eLWUqoCkHb AHjTTNndE/ulSBROV/tV651tAmVP3ndCfgP7y8g9poS1Z2rpgmJo+BmCTYa/riabA7NJ VVwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X1prsGZ36V3LEOTvvkMgk2CqZfwnDb5j2wczkknGbpY=; b=pqq4I2WsK6LMCR52KFx3dYLimgloQDgMER59HG7/85zl9r0CumgBCR9XpWGYnxW04M +LXHBkyU9no/epRg0UwbBmX2Osw93MMJQRUMJA22mQdry/HoFo/10nklRvmIHk8DQTVK MYQXYzldlvZfHMkXSufHv172uwqOBuSIfZSPKcvPfw4OJwTflqLTsgx4jhQMkPqDmKeo 13dGJNjInHukhacbSnjanQLzhdAfdrWBqBDmUtafm9gxX2HnWHEgucQG/eaKoIpcdO2J R8CAQhyFE9S9MLmdH/L+lCjSjfjZc2sgCKFTDTXlvRp10aY2dG0sXts4C7sYofjx5cwM bKeQ== X-Gm-Message-State: AOAM532XaQykolbg6b6pXgEVh8HrGOJxLnrIJJV+/+RYZE6QvLO7WPzY EMrGlN6Jl2ST5Z9P6i1Adm0= X-Received: by 2002:a54:4097:: with SMTP id i23mr1255843oii.115.1642784154379; Fri, 21 Jan 2022 08:55:54 -0800 (PST) Received: from thinkpad.localdomain ([2804:14d:5cd1:5d03:cf72:4317:3105:f6e5]) by smtp.gmail.com with ESMTPSA id y8sm1089271oou.23.2022.01.21.08.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 08:55:54 -0800 (PST) From: Luiz Sampaio To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski Cc: linux-kernel@vger.kernel.org, Luiz Sampaio , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: [PATCH 28/31] net: netfilter: changing LED_* from enum led_brightness to actual value Date: Fri, 21 Jan 2022 13:54:33 -0300 Message-Id: <20220121165436.30956-29-sampaio.ime@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121165436.30956-1-sampaio.ime@gmail.com> References: <20220121165436.30956-1-sampaio.ime@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The enum led_brightness, which contains the declaration of LED_OFF, LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports max_brightness. --- net/netfilter/xt_LED.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/netfilter/xt_LED.c b/net/netfilter/xt_LED.c index 0371c387b0d1..eb66e12c7ff7 100644 --- a/net/netfilter/xt_LED.c +++ b/net/netfilter/xt_LED.c @@ -54,7 +54,7 @@ led_tg(struct sk_buff *skb, const struct xt_action_param *par) led_trigger_blink_oneshot(&ledinternal->netfilter_led_trigger, &led_delay, &led_delay, 1); else - led_trigger_event(&ledinternal->netfilter_led_trigger, LED_FULL); + led_trigger_event(&ledinternal->netfilter_led_trigger, 255); /* If there's a positive delay, start/update the timer */ if (ledinfo->delay > 0) { @@ -63,7 +63,7 @@ led_tg(struct sk_buff *skb, const struct xt_action_param *par) /* Otherwise if there was no delay given, blink as fast as possible */ } else if (ledinfo->delay == 0) { - led_trigger_event(&ledinternal->netfilter_led_trigger, LED_OFF); + led_trigger_event(&ledinternal->netfilter_led_trigger, 0); } /* else the delay is negative, which means switch on and stay on */ @@ -76,7 +76,7 @@ static void led_timeout_callback(struct timer_list *t) struct xt_led_info_internal *ledinternal = from_timer(ledinternal, t, timer); - led_trigger_event(&ledinternal->netfilter_led_trigger, LED_OFF); + led_trigger_event(&ledinternal->netfilter_led_trigger, 0); } static struct xt_led_info_internal *led_trigger_lookup(const char *name) -- 2.34.1