Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1027861pxb; Thu, 9 Sep 2021 18:24:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHQTzVqs+oebEtqnnx9rYkQxsiVAhM1iGHEt8dSRlMg04OjPZAcuH0r+rxJ3lJT9vrvNNC X-Received: by 2002:a6b:7519:: with SMTP id l25mr4891104ioh.169.1631237090868; Thu, 09 Sep 2021 18:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631237090; cv=none; d=google.com; s=arc-20160816; b=By/m+EdWphE54I057ODJK9oV96tjmcllGvm4PZXxTAa0nydU3y1lEb5ydSzA+D1jPK JnHvwPEuD1ZJ9jrmTFjpWadjQZHGLTrN4bmjtVl7kexMhi2uH+UEECmTuccePrizz4P0 C+CEaTsuh4C8a5Wb71ZBy007bu8wk5+H3qld5LJdxLvtvXvnNDLURaviUEVCJB+hfWOF /Yqoxfzc3e7xwhNt584xLB5UsC0lA6BV7WJo4JLP3fjblcotpJklXt8CMOIyJKOdKoRK SfnrgyZ6ybrODJaC0eS+N54XUA/eufb1FO76qF/MVA5xef2jk14ZCHt7gnMyGOQX503h gPjQ== 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:subject:cc:to:from:date :dkim-signature; bh=c8D7f3TRVBQkoL4+DeJ73Wu8jZEW6F7UuvI5jhEN5nI=; b=sVwbyP77iNFMFiT3gNTPX6N/wJ937R+MZVMu/D4NRP72/83Nqt+V4aFz2UtLbrPHA1 nxSn2Sr1C0+hbBfbxJlf8H7PbE8cuNKZJ3N6nDzSJwZ1uJkb0vgM98AzfXVlFtldSW4v qtt0jdgvApju3XqACAZQNNDbkROzKzYwNRdLMHOgMH+JAHr57bIxe7vqVwd7Y85rHiaG T2mHCXdFxLymh9a448R07IAO3o9oN1QsWMmadxp7uG+FL8exunzSXCD84gwN7CmcR2sn va0Zw5xIMIXGQ7kBG7DnSTPzwGfYHflaOJQ8/GpLDz2MnRy4BjsNJOrJgtXLIokhzaV6 /9Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DtsqBhaT; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si3203765jaa.58.2021.09.09.18.24.39; Thu, 09 Sep 2021 18:24:50 -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=k20201202 header.b=DtsqBhaT; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235975AbhIJBYn (ORCPT + 99 others); Thu, 9 Sep 2021 21:24:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:50292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235891AbhIJBYe (ORCPT ); Thu, 9 Sep 2021 21:24:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 83B0661132; Fri, 10 Sep 2021 01:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631237004; bh=bjv0+sDIcnJr3f5g4ivAnJlrxprFxDeF0YUsUjc9uPA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DtsqBhaT2vXKmR/ISV6bH08y38BrFh4PQUOIC3c+i9nVtPOM489gwLPmGJxuIrlVm 8w+pQu4y6opyuY5dUSewKH2uIu84B+2bX04+yz9RC/b8I1hErGgPKWSv/nmhr2KIy+ FIhjF/nS9lPrJr0Pe0grMaXfSiOwT2SM7KgePu5e95bilX+sLWnbJrze4l7t2H9DOY Tv44EpZgyC6KZZ48OqgTfZzCxwbZeLPDOUp5rcpE4lfKw2RP7V+DyGJ6CHOA/ATC51 7msxyoToe812/36TLklOneO6UyS9yrlcKGgJgX9iNYby5hlDwSF0qa16Z9mRzQXQv3 Za1vNwYjvYN6A== Date: Fri, 10 Sep 2021 03:23:19 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Ian Pilcher Cc: axboe@kernel.dk, pavel@ucw.cz, linux-leds@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [PATCH v2 04/15] block: Add block device LED trigger integrations Message-ID: <20210910032319.71b843d7@thinkpad> In-Reply-To: <20210909222513.2184795-5-arequipeno@gmail.com> References: <20210909222513.2184795-1-arequipeno@gmail.com> <20210909222513.2184795-5-arequipeno@gmail.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Sep 2021 17:25:02 -0500 Ian Pilcher wrote: > Add LED trigger disk info pointer to gendisk structure > > Call ledtrig_blkdev_disk_init() from device_add_disk() to ensure that > ledtrig is initialized to NULL, in case a driver allocates the structure > itself and doesn't use kzalloc() No, this is not needed. If someone does not use kzalloc(), they should use it. No need to fix other code here. Marek