Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp309662pxb; Tue, 19 Oct 2021 03:26:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPqGvXe5HWFDHvPoVleyMoU7xsmo313YCtawYKTDMXomh2qW5oiJ+73oa1RDpUpBIeOHSi X-Received: by 2002:a17:90b:3b4c:: with SMTP id ot12mr5445336pjb.51.1634639208889; Tue, 19 Oct 2021 03:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634639208; cv=none; d=google.com; s=arc-20160816; b=n9D6k2aHDGuCjOtg+MUs9duVwWBh6NxgTryPdw8zltXOmvZz+F+UOl8zy0gpg+3Ui1 Ldam3REssL8ni+tEgnDI+B+1b16iXIsjgZCojY1VrCIRv/pluXYjhTtcaBn8VHOZTse3 O5BwKOogIIu63RZWxCMmtT18OoBWj29QzZDakHl9Xr09RL1TvN+U9jUXOHUbeTlQAxZZ 6RxLE5GpQeEoJdA3ljfTZRiws9pVUNZwz89uZ28IX3I1CoOVIQg30xVuv8hWmtJkKFw6 JwUDhPTxnungiB16XmQSPORl0H3wMh4PIzrigjgBshr42D3m7QaHBo5RZXZU4oiXAaSM EIAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=XSNi7yamecy1nFNNU+wxCR1sru0F03cY54NmeLmtaUY=; b=lVyhLgNTRQ2B9u3eNIxL4p6B1jy8iuO9jXCxUYmiED8z7mHA3N0v9TzqKodz+Fi1Nu hwbqis4xPNw6256dymyXlbS8MdsWbguQXDZ+GuhTELQ9Orir3UpA+QOk7fSolji4Q5S9 ifoheFr+mrUOdvEaaGecdNWHjSI5BTHoOEZy1nOWC0wA/MgTxkJHMUDLleYdnsM1kDgv w+aO5IvOu5OQH8FRjJSKUuRXzsa01VGWSohePld0CRgVtdMUnfvnVxGGS13ISvE0ADup o4WtxUDgYaWtCx1VZpviPWcOg/nkZqvEp5dmqN/xYeTUjYdTRuC1AF7D3rw6U1RMunkL /Vjg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si21069870pfk.63.2021.10.19.03.26.35; Tue, 19 Oct 2021 03:26:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234914AbhJSK1N (ORCPT + 99 others); Tue, 19 Oct 2021 06:27:13 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:57664 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235187AbhJSK1N (ORCPT ); Tue, 19 Oct 2021 06:27:13 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R391e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0Usuq-co_1634639084; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Usuq-co_1634639084) by smtp.aliyun-inc.com(127.0.0.1); Tue, 19 Oct 2021 18:24:59 +0800 From: Jiapeng Chong To: damien.lemoal@opensource.wdc.com Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, chongjiapeng Subject: [PATCH] scsi: ata: make ahci_sdev_attrs static Date: Tue, 19 Oct 2021 18:24:42 +0800 Message-Id: <1634639082-1007-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: chongjiapeng This symbol is not used outside of libahci.c, so marks it static. Fix the following sparse warning: drivers/ata/libahci.c:134:18: warning: symbol 'ahci_sdev_attrs' was not declared. Should it be static? Reported-by: Abaci Robot Fixes: c3f69c7f629f ("scsi: ata: Switch to attribute groups") Signed-off-by: chongjiapeng --- drivers/ata/libahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 28430c093a7f..8a6835bfd18a 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -131,7 +131,7 @@ const struct attribute_group *ahci_shost_groups[] = { }; EXPORT_SYMBOL_GPL(ahci_shost_groups); -struct attribute *ahci_sdev_attrs[] = { +static struct attribute *ahci_sdev_attrs[] = { &dev_attr_sw_activity.attr, &dev_attr_unload_heads.attr, &dev_attr_ncq_prio_supported.attr, -- 2.19.1.6.gb485710b