Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp416251yba; Wed, 24 Apr 2019 03:36:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2NYUlkEwiMzPMpklnwm4YM9j8kX4nV2Foil7lxAatIRIoizaHTWorBw98x+GVNcijNKtg X-Received: by 2002:a17:902:868e:: with SMTP id g14mr14053932plo.183.1556102179872; Wed, 24 Apr 2019 03:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556102179; cv=none; d=google.com; s=arc-20160816; b=avgRdN++fQO6sIAv5i8UDb/KGsQ03urMmYDoSmidFtONuv8GNdlOezVvSDL27Umr69 DcOO+36AX/1MSDY2GwdO378VairAj2YkiYtAWSFuvuBjGK3nDFKYJLs/Iy8X00F1YzmN l7y166cjgEW9jerEgZh4NeWw8h68M8Dp0vyaifBRk6Ka1OICthI1hJZspkIeKiETqMWo wIr17ynNSMZlpnYf2INltrqYRPrWIRW5duL+wvwVguWdsdbApYFOJ72FYFsD9GJfO5qW TiNFdswdLPyx+oPQq5j81NHGeeEKxmLFltXDZ+t03PL7k0JcxWLYngG22U7QqNJNrw2+ Ri6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=ZlNYy+qpDXH6R3m7bKHQ3DdS87/wYlkMTICW6hJPd0A=; b=GZ3T8sjXxX+t0Eq6K5+rLB6dhxBj/7KAZSDhRJ18nfFy8z3ILtwg095XpXlO65okyU uMSB4VF+JV/oLyJ3V+efLR5Fy5ysmWHR0XWCjkb3rFa3/K5JbPZ3lsOrXdOTuZ/x42Gq DEjLoVPTGfp1Jr0Um6fw8NqF0ghinFwrMPXeMCnc/HEUk50Mn3ir7BmPkW0GTjr2adyg l6U8q3hVYY1tS5nd6stgtO4UEVcupdZ+pz9stN32qRyqrYkpPdjstXAYlkACukQYtSsC cOemHwb8h/0fPAiTq5zbM8L6wS8TdaF8ubfGWV9jLmboXXbBTKPSTVb8sn9XktuENkos NOxQ== ARC-Authentication-Results: i=1; mx.google.com; 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 a36si17639665pgb.165.2019.04.24.03.36.04; Wed, 24 Apr 2019 03:36:19 -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; 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 S1728759AbfDXKfB (ORCPT + 99 others); Wed, 24 Apr 2019 06:35:01 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:42655 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728447AbfDXKfA (ORCPT ); Wed, 24 Apr 2019 06:35:00 -0400 Received: from orion.localdomain ([95.114.95.254]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MvKGv-1gSvZC2CyP-00rHys; Wed, 24 Apr 2019 12:34:51 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: axboe@kernel.dk, linux-ide@vger.kernel.org, linux-nvme@lists.infradead.org Subject: [PATCH 2/3] drivers: libata: introduce sysctl directory Date: Wed, 24 Apr 2019 12:34:40 +0200 Message-Id: <1556102081-11820-3-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1556102081-11820-1-git-send-email-info@metux.net> References: <1556102081-11820-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:H1/Uq2LSUgMGcAi8IOWYcZdUmY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.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Register a sysctl directory for libata, so upcoming knobs can be added here. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/ata/libata-core.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index adf2878..d3044c9 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -176,6 +176,21 @@ struct ata_force_ent { MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); +static struct ctl_table ctl_libata[] = { + {} +}; + +static struct ctl_table libata_dir_table[] = { + { + .procname = "libata", + .maxlen = 0, + .mode = 0555, + .child = ctl_libata, + }, + { }, +}; + +static struct ctl_table_header *libata_sysctl_header; static bool ata_sstatus_online(u32 sstatus) { @@ -7059,6 +7074,8 @@ static int __init ata_init(void) goto err_out; } + libata_sysctl_header = register_sysctl_table(libata_dir_table); + printk(KERN_DEBUG "libata version " DRV_VERSION " loaded.\n"); return 0; @@ -7072,6 +7089,7 @@ static void __exit ata_exit(void) libata_transport_exit(); ata_sff_exit(); kfree(ata_force_tbl); + unregister_sysctl_table(libata_sysctl_header); } subsys_initcall(ata_init); -- 1.9.1