Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp356811pxk; Thu, 17 Sep 2020 05:08:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9twbnxUg4wNgApoMtouIMVbr4P/JHbWXtPf2fLbc+2hFNGs0SxBur/SdXOVQ2z+qAc3nc X-Received: by 2002:a05:6402:489:: with SMTP id k9mr32053063edv.287.1600344501026; Thu, 17 Sep 2020 05:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600344501; cv=none; d=google.com; s=arc-20160816; b=YAXnv4HTCyq7CoX/ryQXGnAt2FK1xsDi6G70pFPrBYk1HaqRIlOV42/NlG34Zd4bIn DzUTlywwqVhJ6uWaN4DivVXD8VQWsggAirV7cDQ57i8UYixfLSMGqoHwfeyibB6AN5nX 4oKAP19uDE6v48vMzEPqHKxVNCgkkdO6KOnFTvIkYD0rvGRUexnNdqNOeXP1b4WezYBZ ldr+isMAgIuTrDJL5uaPjp0faa0hlWjSAgS36vlR4lgmyT1Y0LNcoXpIwbV9igtol0b1 83yKiQnapXlOv2DO057MbAmWnsOJ0XWix7mFYetTh3RFfhJ/RKIKURjXbXS7zuU2NZWL 8MUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=ku1lpyColrlljHnRBPvYOu4U7DpxsneM+J174Jc8mJM=; b=LwEQlCHEWw0tLpCvL+w69xr0XoWeug/Ih4VQII1rDhtOEg7xz5DiiObT3zewzmF2pg Jr6MroTqfaezC5xkgiPdswTtHSl6NUFE+y36zSgB/YWhRgbc3gJW3S8Cb1Eju0BWA6F9 uHXxcRfwkrCF7kySgl9CTo3LbisU5jSKpkfNd2tHjC94bLVXMRmFDgX0UMDjBvtkVUU3 ew85uGdwcUl5Gx3JLrS8kbujkK8n5pO6F98Zpl+bSHWC6sQQmHJ2vonTVSbhQw5ghgSa esIjR6aOAfU/wbjZMfqW3LxvdW5XkeNnkLBJYZRs3GroY7jxQ6Uhsu0K29bjZgZjD6M9 hJqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=K1UY89jC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds2si13803414ejc.117.2020.09.17.05.07.56; Thu, 17 Sep 2020 05:08:21 -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=@ellerman.id.au header.s=201909 header.b=K1UY89jC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbgIQMEB (ORCPT + 99 others); Thu, 17 Sep 2020 08:04:01 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:51069 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbgIQMBt (ORCPT ); Thu, 17 Sep 2020 08:01:49 -0400 X-Greylist: delayed 382 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Sep 2020 08:01:47 EDT Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4BsbCK5G3Rz9sS8; Thu, 17 Sep 2020 22:01:01 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1600344062; bh=drKiJPh6uUahqNiKyElUeAZk2wIXu3ZhA3NKB9nCYcw=; h=From:To:Subject:In-Reply-To:References:Date:From; b=K1UY89jCixp72jlWeIPSfpOB7vyiQ2pwGnUFVvsf0B2FOmy7/yaCzh6UCT7p5W/Yw 70F9JkRP1E9jKlutDTKywLjjzj6Z7rg+8fYmE/G3k7D7HgEbb3MZ+NwOlLDgTRQYUZ 1EkTImlGWMYYzoDYOlmr87dXl+80hpg4SFZC85Sh4waowIocEYUUT+DLl8FpyH4Lg3 7gvv3s+HIp1yRZ6pXo3wGCKVhpn7poXOIMnY9q3+HVTGh4Fj4eGnUUF3YyPN+AEAHi HPh+GRDX7d+HzQwYacuaSKo1D3gk/4OVThEvPTzsv/53OHblkyoZq4enad7HsrK5Ys CKSIckbWyg/Gw== From: Michael Ellerman To: Wang Wensheng , davem@davemloft.net, benh@kernel.crashing.org, paulus@samba.org, linux-ide@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] ide: Fix symbol undeclared warnings In-Reply-To: <20200916092333.77158-1-wangwensheng4@huawei.com> References: <20200916092333.77158-1-wangwensheng4@huawei.com> Date: Thu, 17 Sep 2020 22:01:00 +1000 Message-ID: <87zh5oobnn.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wang Wensheng writes: > Build the object file with `C=2` and get the following warnings: > make allmodconfig ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- > make C=2 drivers/ide/pmac.o ARCH=powerpc64 > CROSS_COMPILE=powerpc64-linux-gnu- > > drivers/ide/pmac.c:228:23: warning: symbol 'mdma_timings_33' was not > declared. Should it be static? > drivers/ide/pmac.c:241:23: warning: symbol 'mdma_timings_33k' was not > declared. Should it be static? > drivers/ide/pmac.c:254:23: warning: symbol 'mdma_timings_66' was not > declared. Should it be static? > drivers/ide/pmac.c:272:3: warning: symbol 'kl66_udma_timings' was not > declared. Should it be static? > drivers/ide/pmac.c:1418:12: warning: symbol 'pmac_ide_probe' was not > declared. Should it be static? > > Signed-off-by: Wang Wensheng > --- > drivers/ide/pmac.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) TIL davem maintains IDE? But I suspect he isn't that interested in this powerpc only driver, so I'll grab this. cheers > diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c > index ea0b064b5f56..6bb2fc6755c2 100644 > --- a/drivers/ide/pmac.c > +++ b/drivers/ide/pmac.c > @@ -225,7 +225,7 @@ struct mdma_timings_t { > int cycleTime; > }; > > -struct mdma_timings_t mdma_timings_33[] = > +static struct mdma_timings_t mdma_timings_33[] = > { > { 240, 240, 480 }, > { 180, 180, 360 }, > @@ -238,7 +238,7 @@ struct mdma_timings_t mdma_timings_33[] = > { 0, 0, 0 } > }; > > -struct mdma_timings_t mdma_timings_33k[] = > +static struct mdma_timings_t mdma_timings_33k[] = > { > { 240, 240, 480 }, > { 180, 180, 360 }, > @@ -251,7 +251,7 @@ struct mdma_timings_t mdma_timings_33k[] = > { 0, 0, 0 } > }; > > -struct mdma_timings_t mdma_timings_66[] = > +static struct mdma_timings_t mdma_timings_66[] = > { > { 240, 240, 480 }, > { 180, 180, 360 }, > @@ -265,7 +265,7 @@ struct mdma_timings_t mdma_timings_66[] = > }; > > /* KeyLargo ATA-4 Ultra DMA timings (rounded) */ > -struct { > +static struct { > int addrSetup; /* ??? */ > int rdy2pause; > int wrDataSetup; > @@ -1415,7 +1415,7 @@ static struct pci_driver pmac_ide_pci_driver = { > }; > MODULE_DEVICE_TABLE(pci, pmac_ide_pci_match); > > -int __init pmac_ide_probe(void) > +static int __init pmac_ide_probe(void) > { > int error; > > -- > 2.25.0