Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA990C433F5 for ; Thu, 21 Oct 2021 01:37:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 950E060EBD for ; Thu, 21 Oct 2021 01:37:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbhJUBjr (ORCPT ); Wed, 20 Oct 2021 21:39:47 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:13604 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbhJUBjr (ORCPT ); Wed, 20 Oct 2021 21:39:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1634780250; x=1666316250; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=jwOrXSWMi/h8yhJ2POQSyR+DIDfPu/1xNtKYNmwPAro=; b=Y0dy+Rk26CSJ7Hki8RttpBuz97Fu8IVa933hgZnIG57lZJnZcHq1EZ5u 6mvGDJtsDtfycn7+R+fmhgTLnteVfYAfsolOtyQrmdeLCKKCK/4JNOaI5 t6mKf3zpOX05t08dNmm7JEM2MBfqzUc8HTGUiRZk8JzuldU8567yVhqbc 7pOxArtF4w2xcTiJEMhPwCGDEBQGBP2Z6xQDjmnjR+mVmFRqUEL/15q5R RnLs4n06L6wieuTzt5hoTdTw/xjrHHidC1ACHZPYaD1AFY3WxRW5SbkFw CHi2ZH5/6rmT4RtmDFkv/tmNgeVcej1MpXpYCraE+WIPuDKXWaQo5ecgW Q==; X-IronPort-AV: E=Sophos;i="5.87,168,1631548800"; d="scan'208";a="183467349" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 21 Oct 2021 09:37:30 +0800 IronPort-SDR: 3wUmckiFZ72zXiaVhPRa29scevm1o2RKXxbLgf3ImrjChMh8tdD3EeQM1YOkh1GeSBkv598c7w wvOmjwDc6CaTDDje5QL3Nk9v/S/l4DtH3SOQ5TzuUP8catpL8EVIzB0hGL92NbaYAV8UMgNjvm z17mJXiUGhf6NiVXVEa8zZweCLsvzJ+ElCeNelh5Hkg6Ekzi7GjEUQpuEgpLTB6hNUA9tVy9Og AN+/cKTsfwO/91i6WeTji1gcyM/s48hJyKsXhQoHfPYGwwYuGL5MZF93HyXr4T1dDlIV1ZgeKp X5qyfxBqdbSV36/ZgtGJTRgi Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2021 18:11:35 -0700 IronPort-SDR: 2vJFRlBINCGdTdiN9H+CqtiH9SWtzq5UYVOjiMi+UIpr+8RuBVLPT8X38BT5SgpOCHSMwzULDo XJNvg1yQy0Qu8n0UIEfMIAaqcpxVHXBnmxy7+jawweTfGjQIBj9NNhzJNrsbULg7SyS2iE8GDD n+NbdG8GfOVH1mauCj81s6Cmkh9sJHxJRZEJlIojAP8+4XO5TPuEUjvgb2X2rQ1xYR1dBMp6rM ssY5OeeOfEw4m2JkDl1APtUmWmDdt1aoHqAdD7Ec4lIrnINdFOa5y9m+yGGrC0RhHWvMvkNVJD pXo= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2021 18:37:32 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4HZVTl3Nmlz1RvmD for ; Wed, 20 Oct 2021 18:37:31 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1634780250; x=1637372251; bh=jwOrXSWMi/h8yhJ2POQSyR+DIDfPu/1xNtK YNmwPAro=; b=K6Qu8WOl7wmxvDxE7eQjTqZkkrCRYHqVUmf8xMBxpSG+k08iuXU IqIVntaUXvS8CJz7cpVorzw7BK9W9ct5XqNjMUWOrDwmeNowdUolaouWBOyI+98I VxQtpnY7FziMRdXh90aTKdkeOKQdBaSUCEcnagM+/aixOuyFuHIzZNHJHsky8J/l jyB2tQPGvBdu1pvZpwsUy4YxE8YWR1pxXvyeKugOiSALLGmqpXV+BsHKkO/UzIeB Yd9nBbXcbHrxfXqvlPAMcLNdH4BsLyVhGBBoj7r91MytHrr/LxjecD7v3ay3pyFc 9CxCDSrxbMjxIDB8PU27N85BdCv35HhWFxA== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vYJ5A6GuEY-e for ; Wed, 20 Oct 2021 18:37:30 -0700 (PDT) Received: from [10.225.163.67] (unknown [10.225.163.67]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4HZVTk1rT3z1RvlZ; Wed, 20 Oct 2021 18:37:30 -0700 (PDT) Message-ID: <42eb2c97-7ebd-b369-5fd6-ba342cb3c89b@opensource.wdc.com> Date: Thu, 21 Oct 2021 10:37:28 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] scsi: ata: make ahci_sdev_attrs static Content-Language: en-US To: Jiapeng Chong Cc: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, "Martin K . Petersen" References: <1634639082-1007-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <1634639082-1007-1-git-send-email-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On 10/19/21 19:24, Jiapeng Chong wrote: > 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, > Jiapeng, This patch does not apply to the current libata tree since it is against the latest changes queued in the scsi tree. After fixing the patch title, can you resend this patch to the linux-scsi list and to Martin ? -- Damien Le Moal Western Digital Research