Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2070592pxj; Sun, 9 May 2021 14:19:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSR63qSONvQZmuaB0ew0VWp4zbeJf+4Fx+ZnbkYBLpNUd+A7FHT2fgvpVyismhjFD/Nhtl X-Received: by 2002:a05:6602:3426:: with SMTP id n38mr2611384ioz.3.1620595168860; Sun, 09 May 2021 14:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620595168; cv=none; d=google.com; s=arc-20160816; b=vFhM4M4VBoBRip/8fTBU/k51GlmjGUT/pb9uB6JRzDCHfTzHVNSvYOODfTHwT/GYdp 4q6MnQ1wEK9ab3DtmCCJkgLzh+AAgVyQ8nSjhi2IKMrJshHApgFBnhYX6Xw9yaNLm4PS lPd9KoiW5j7eStzPm1G9q/5IUSUolMq+jm59B+WO8JtjWk5aA9WyeqO5ZTuZA2tldYFn SBepZf/5Icb+7EAFM0efvr7QdfPl8qntjD7ibUZf9cNh+dB+N4DFjUvWx/+bck7VIJAG rlzaL+zKhd8nFNRIizIZLowYUivxDFso4an0kwXGPNCsto6xH1MLBpswuBNbGifTvAmd 6XRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rbwIn0tWgSdNhdH5lPly7AWTzAvikcCRK3NlmDTHFjU=; b=HWnU9OQp7bznCac8inqKdIVnF4Uyel30tkN26pMi71FV9uiVn2dbvESz40WLpAnuzg 2TeKqSGSJZ7YGejPiu3I2TrOmadcWUdapz1/tOl65N67t4IGlgXJF6bQdr0s0Tqwcfu9 xb4wN6AGHunbK7zvpZ+qcT024RPleeadh/W5NxmcQdhYwzmeq13tJM0W/hoVFfRU6Kng 3aVQ6pKcO/o5Vpv7G8WvuwXpuhzAzqzaW5rEC25TO9BnfBIRXpISaY1tG4kXefRDq9ua xF45DqzaP0hTTE+Bfvz+c6j52AEJvhlJxoH2IvLqMnLZ1Or01ZcxA8Xn2TxC2wHqmyE1 d0OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Q2P/aJfZ"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si14643215ioc.87.2021.05.09.14.19.16; Sun, 09 May 2021 14:19:28 -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=@gmail.com header.s=20161025 header.b="Q2P/aJfZ"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbhEIVTM (ORCPT + 99 others); Sun, 9 May 2021 17:19:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbhEIVTL (ORCPT ); Sun, 9 May 2021 17:19:11 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27CA4C061573 for ; Sun, 9 May 2021 14:18:08 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id z6-20020a17090a1706b0290155e8a752d8so8899785pjd.4 for ; Sun, 09 May 2021 14:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rbwIn0tWgSdNhdH5lPly7AWTzAvikcCRK3NlmDTHFjU=; b=Q2P/aJfZKZWxPibdU09rZbB0qLe+e0iNJq86pTd1bKHjeOHHyWyVq99HdnUtYBLmu4 /eeN3qr0F+bFjntQ+WXlA5Ppb6Vs/LYlw9bKtBGotJZ77IJuAlJX4VXb7by1EcS5Qwy4 vE+FR8UPqt4LEym7SUih26vGJupRoih6Ukwv7ZHQL9qJGSAwgJVmvwdZwIUQ/aGfXvkh XAbUG5tQ6kwSrD19/qzjnJQWtLcmQBStf9jqk+Mb9h0Okkw3ds66bpMPFKFTsQSAs9vL TxLdISFQfy2OzN/Xou9kXQdrIUoOQ43RdyeDlXtrw1CofwTOnuZkBr4N/TJt7aWKwlvB 7kEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rbwIn0tWgSdNhdH5lPly7AWTzAvikcCRK3NlmDTHFjU=; b=biEXseTiKHgbzTMtMScUOV014Et1HwXF3reqmOYKMkq2LSuj9JJEc4wDoUAgNnznh1 hLrYtAbTechYkZuiBsOF+EcvJtjecuu2WZnySPfDdfXiWUxyEa2fS8Jg6mC51Q2djS+l L+9BN1+fTAmlBkMFf+4YuU4beAf1TxhyCN/9SYXulz+BjYZZmFcADN8yqjvYgrfPLpBx zXsnhFVIWJV8A1cOhOxvgKCRoyysIrLAHfExd5O0OcuYlgg5APnqgAfR9A6m9sTu3sTe /G+c+Ss8BU1pno/l1oQj50lkt6nk5YVsErQBKtt9jYPQRQd1EDFDKX9neYzvf2EyOc+Z YZ+A== X-Gm-Message-State: AOAM532CcVdxbQMBVcSoegIkRoeiYrAPQRzR/NcV57NDd0IssZY7vVXt AELJVf20zJnk3tSLUADnKTY= X-Received: by 2002:a17:902:7281:b029:ea:afe2:b356 with SMTP id d1-20020a1709027281b02900eaafe2b356mr21766956pll.16.1620595087712; Sun, 09 May 2021 14:18:07 -0700 (PDT) Received: from localhost (g1.222-224-229.ppp.wakwak.ne.jp. [222.224.229.1]) by smtp.gmail.com with ESMTPSA id r32sm9486424pgm.49.2021.05.09.14.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 14:18:07 -0700 (PDT) Date: Mon, 10 May 2021 06:18:05 +0900 From: Stafford Horne To: Mike Rapoport Cc: Jonas Bonn , Stefan Kristiansson , Mike Rapoport , openrisc@lists.librecores.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] openrisc: mm/init.c: remove unused variable 'end' in paging_init() Message-ID: References: <20210509091103.7985-1-rppt@kernel.org> <20210509091103.7985-3-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210509091103.7985-3-rppt@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 09, 2021 at 12:11:03PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > A build with W=1 enabled produces the following warning: > > CC arch/openrisc/mm/init.o > arch/openrisc/mm/init.c: In function 'paging_init': > arch/openrisc/mm/init.c:131:16: warning: variable 'end' set but not used [-Wunused-but-set-variable] > 131 | unsigned long end; > | ^~~ > > Remove the unused variable 'end'. > > Signed-off-by: Mike Rapoport > --- > arch/openrisc/mm/init.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c > index f3fa02b8838a..6e38ec96cab8 100644 > --- a/arch/openrisc/mm/init.c > +++ b/arch/openrisc/mm/init.c > @@ -128,7 +128,6 @@ void __init paging_init(void) > { > extern void tlb_init(void); > > - unsigned long end; > int i; > > printk(KERN_INFO "Setting up paging and PTEs.\n"); > @@ -144,8 +143,6 @@ void __init paging_init(void) > */ > current_pgd[smp_processor_id()] = init_mm.pgd; > > - end = (unsigned long)__va(max_low_pfn * PAGE_SIZE); > - > map_ram(); > > zone_sizes_init(); Thanks, I will queue this in the openrisc fixes queue. -Stafford