Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp195298pxb; Wed, 18 Aug 2021 19:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTItCzb7St65K0IhJceMmySp4goORxwlA2T+QGHzBZFaym2fPnRSoOGw/uBQDOY9a449IN X-Received: by 2002:a02:5bc5:: with SMTP id g188mr11139756jab.136.1629341550668; Wed, 18 Aug 2021 19:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629341550; cv=none; d=google.com; s=arc-20160816; b=AxgRgOXr8VpAMfLC7ewa6r90/kX9MJggVPCiA69cYzqJ1ht1/iDOsxMpRfzrRNznfH 6ngHkT/w1EQHJSe995wmrVCuHxMV2X36dAdRN7UgZqkrniZOnpyIbDkzLRH0RLsmgndo el8RCs6aZZl/PiXIUYs1NHGa8qnNX5WGe7e42gE0dUbLq72tqMjmu419tGJO13EofYw3 /Cg7BdeZe4m7HLSuEIpZ0lFUjIt6ZBWqbl2osc5t3FYulO8qS6sjfMavqhEmqy1Oco+3 rnwfJQWLqkXoPvYyZayRBcEueaickVC/wMOUtyGmXmbvTva6RHgst2Xf1Z9XY6YdLd1F IvLw== 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=sHJ6xIxDt3XA246U2lV+K6FnAovAAMr3EploK9JC5Ks=; b=NdieMPggOWG7vehOjXUBMN18VmgVRzRWM4VghmZdRNV9+6JWeCB0wNzyKxJshi7Z2R 4KlYHZIpxQV+GXI1oSxpEDO2/Sf3Z9KpJr6YPiD/uNNV2F82NB3FlBbqmx60t+sJZiO4 yUPcMQizWH4G4UyTLXQHmb98ZgLLSDyUQr+23XsCGb7+xqSeAEvPKFkggiVYDZlfUaRf B+rMKFLXu9Ji4qC9S7wsuFGCLwlxRMJdcc8fYs76Cs6Fx+ZwEhpgr4BvuzHfNnY8zmLj twgEAR9aw1S3qcLtEbODSYv1npshBV9NK21YYhoM8+kqV7OPn9yQFlzDOFEbx+dryjMv smzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a7KK94iC; 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 m8si1781468ilq.88.2021.08.18.19.52.19; Wed, 18 Aug 2021 19:52:30 -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=@gmail.com header.s=20161025 header.b=a7KK94iC; 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 S236194AbhHSCv7 (ORCPT + 99 others); Wed, 18 Aug 2021 22:51:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235853AbhHSCvo (ORCPT ); Wed, 18 Aug 2021 22:51:44 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F6BAC0613CF; Wed, 18 Aug 2021 19:51:09 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id l36-20020a0568302b24b0290517526ce5e3so6808882otv.11; Wed, 18 Aug 2021 19:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sHJ6xIxDt3XA246U2lV+K6FnAovAAMr3EploK9JC5Ks=; b=a7KK94iCAmI+6eXFYg75GNAI0bmgDA59ZXccCeX+9omBlPmR2885dUYbm5qktM9uMU wjKBRRBv/sPXB1EQVOQAxTFj1949ZxnF1OI0d3xHzYW+4liJVf2Y7LVdYPBPSdh9f4zy SGe+JhLOjC/JrkHOgW7ibBlf56WxpCmi8BtX+eiG8pKDzshXPXFfPU1woigl34w9G/bK 7sh0st3vvQdWpkqX7NfVvRz6dQEtx6KUp8m5rz1tOLxuEBpW6HZHKdvKM7jiLfu4mlBs NkV4i5iuYuOaLponvku/SuqrQ1cStxcFpkqV8Vyod9nNykVXz/T4Q2PanWAU0jUqJq1w jt8A== 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=sHJ6xIxDt3XA246U2lV+K6FnAovAAMr3EploK9JC5Ks=; b=BEgNMwBlJ8c4QVpKWJ+nY5bflJSbLyynVv5SGaBz8opNY4M9tK3BnVYMoiUN0hcTtP uoyWKdafXJn/RTqgv0tgMkjylGuadQEI6un2zuV4UGqPwJTiS10bFWS+QNjh29rNxKBZ /oI7D99hlqcXucA7lqOIn+PQY2xZ1MYBODSEsU/QhF5yg/x1CdDuxFXg4G8BUAlTaZaU kxqA7OBlbzOqNOfYE7CN+5/hFTPi/QGQX8as13/ibfOv2j8adm1hllsuaoBOdXLcYlVW 4FKLxzkt4rgXpjUtRAfFbRz0Cj9kWj7pj+BOEQTTluRm/ksnkMUKUmbgAcbK7pqoBcOc Trng== X-Gm-Message-State: AOAM532RX8D9zsU9Gt6ZWbsvpyNWikXTrl2u6JR4SAE+cUuFg2cZwcLu X5dT4Z+sf3nNxOaw2cav0cG+HfC6Gm1UPlA/ X-Received: by 2002:a9d:2de1:: with SMTP id g88mr9980024otb.84.1629341468225; Wed, 18 Aug 2021 19:51:08 -0700 (PDT) Received: from ian.penurio.us ([47.184.51.90]) by smtp.gmail.com with ESMTPSA id w15sm156792oiw.19.2021.08.18.19.51.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 19:51:07 -0700 (PDT) From: Ian Pilcher To: linux-block@vger.kernel.org, linux-leds@vger.kernel.org Cc: axboe@kernel.dk, pavel@ucw.cz, kabel@kernel.org, linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org Subject: [RFC PATCH v3 06/18] block: Add LED trigger pointer to struct gendisk Date: Wed, 18 Aug 2021 21:50:41 -0500 Message-Id: <20210819025053.222710-7-arequipeno@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210819025053.222710-1-arequipeno@gmail.com> References: <20210819025053.222710-1-arequipeno@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Needed by ledtrig_blkdev_disk_cleanup(), which removes all monitoring of a block device by the blkdev LED trigger when the device is removed Signed-off-by: Ian Pilcher --- include/linux/genhd.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/genhd.h b/include/linux/genhd.h index b26bbf2d9048..66e2760702cb 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -168,6 +168,9 @@ struct gendisk { #endif /* CONFIG_BLK_DEV_INTEGRITY */ #if IS_ENABLED(CONFIG_CDROM) struct cdrom_device_info *cdi; +#endif +#ifdef CONFIG_LEDS_TRIGGER_BLKDEV + struct ledtrig_blkdev_disk *ledtrig; #endif int node_id; struct badblocks *bb; -- 2.31.1