Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2314231pxt; Sun, 8 Aug 2021 19:32:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrkA9wfrj9eBOb0OCPQt/7tFGPciEqjMnlrcW/vkedP484sEF42MDJacMRK0C3Ah4ZaVkb X-Received: by 2002:a05:6602:2bd0:: with SMTP id s16mr1064181iov.69.1628476320744; Sun, 08 Aug 2021 19:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628476320; cv=none; d=google.com; s=arc-20160816; b=RKlbf3xBKlY9HjWgNng8eUMX0ympVVBrEREyZL8HerTcx/V/ywC09fJTHPOTwhnGJ4 BvmhQ0Ug6HBjE+uqLrVqNgaZyoD1h3BWm+4V4dWmM3/4R/6fgzHhf9JpKwf2+9sC/54E ZcvjN3u2nL15TLNdPsQqeyAW+UQTx0mClq4PxC/ly9qoC3juEi9mE7rSBPkHbT1g02m6 /zT8SU/G9fds5kBUg51UKkDHptQ0xb/I8VIOMZ8nX4+KFauHZ8KhvqGsdi18GC8xxuAR Okkd/Ht0gbGrRBGognBaG2qKbrywDSn5vuQwh3DVyIg4cWBXBIcQZnS8DFsyHOlOUWXd 1oMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=bZYo8E3NoPCdQsD1K8epoiMvW0tENbZpp7jmQByQbzE=; b=Fw6qIyoJ0aG/5lnbPfSQoLer7aDuMurffmhxsKq9swxkGE6oQmjKNz0yd3Mu5dEabb qiUADhL9B2frP/0MhCGOAWCqaR7DKpccBwwPZN1M74PX9Vuuhw2hqnfhZf7Oj8oOPwBD cJJNX3l5MXf7hoFbbe1IHpeXGmPr/IjV+5AUa5cIjc2DLQiQIcwT1x/k0YZ5ywEZFuJg EZB/knOueJUR9ZW79+1mC9y0JyLweq1o351mX5SlkdAcbK7PpmP7OC1CVTkBY3dJtPWI 5BpBle5EUv0aTE8qvC4I3qNymVql9SD6B7qGXRzYKNGaz+bpGg4XThtnSC0mDdFVnFbw TjCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=V0y7Uk5Z; 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 z12si8109159ilb.144.2021.08.08.19.31.49; Sun, 08 Aug 2021 19:32:00 -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=@infradead.org header.s=casper.20170209 header.b=V0y7Uk5Z; 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 S231459AbhHICan (ORCPT + 99 others); Sun, 8 Aug 2021 22:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbhHICal (ORCPT ); Sun, 8 Aug 2021 22:30:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1968EC061760 for ; Sun, 8 Aug 2021 19:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=bZYo8E3NoPCdQsD1K8epoiMvW0tENbZpp7jmQByQbzE=; b=V0y7Uk5ZnkDlA5jxT4+U9agg+U DGUsIrFPHMeHHPWmK79y/v0kxo2o+K5746ApR1c3sSkKc6IDn6Sqi7eyRVlqt5v+NjBtktL3CusoK shzlfGov1ATLs928lfeatp+8m7Bpts2VospHMkT4M5tgINs+mB0I4+hwuM9g+zkWSmHlCosLIP19N Tpbw8pF6jP2WSIFK8s7jrWomvOyB9ji/cBg1e6NGFWQ1JFfDAGiXuQCj0jNF1VZdYH0aX8vpcLZZS S67gTmRVQ18WqjJMNBf+Nr6oUjkuvOEl6HOkv7PakgGYFtTYZ9DALejovf0kDcgZ9J31KFX6n4Kvj Pr/5N6Qg==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mCv1w-00AXWB-BY; Mon, 09 Aug 2021 02:28:55 +0000 Subject: Re: [PATCH] openrisc: Fix compiler warnings in setup To: Guenter Roeck , Stafford Horne Cc: LKML , Openrisc , kernel test robot , Jonas Bonn , Stefan Kristiansson , Mike Rapoport , Andrew Morton , Kefeng Wang , Christophe JAILLET References: <20210805030035.2994973-1-shorne@gmail.com> <20210809013128.GA3698029@roeck-us.net> From: Randy Dunlap Message-ID: <0a3de28d-17d5-ec22-0ffb-97f5ca11c127@infradead.org> Date: Sun, 8 Aug 2021 19:28:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210809013128.GA3698029@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/8/21 6:31 PM, Guenter Roeck wrote: > On Thu, Aug 05, 2021 at 12:00:33PM +0900, Stafford Horne wrote: >> This was pointed out with the recent name change of or32_early_setup to >> or1k_early_setup. Investigating the file I found a few other warnings >> so cleaning them up here. >> >> arch/openrisc/kernel/setup.c:220:13: warning: no previous prototype for 'or1k_early_setup' [-Wmissing-prototypes] >> 220 | void __init or1k_early_setup(void *fdt) >> | ^~~~~~~~~~~~~~~~ >> >> Fix this the missing or1k_early_setup prototype warning by adding an >> asm/setup.h file to define the prototype. >> >> arch/openrisc/kernel/setup.c:246:13: warning: no previous prototype for 'detect_unit_config' [-Wmissing-prototypes] >> 246 | void __init detect_unit_config(unsigned long upr, unsigned long mask, >> | ^~~~~~~~~~~~~~~~~~ >> >> The function detect_unit_config is not used, just remove it. >> >> arch/openrisc/kernel/setup.c:221: warning: Function parameter or member 'fdt' not described in 'or1k_early_setup' >> >> Add @fdt docs to the function comment to suppress this warning. >> >> Reported-by: kernel test robot >> Signed-off-by: Stafford Horne > > Puzzled. This patch gives me: Stafford posted a v2 earlier today: https://lore.kernel.org/lkml/20210808135437.3640549-1-shorne@gmail.com/ > Building openrisc:or1ksim_defconfig ... failed > ------------ > Error log: > In file included from ./arch/openrisc/include/asm/page.h:35, > from ./include/linux/generic-radix-tree.h:39, > from lib/generic-radix-tree.c:3: > ./arch/openrisc/include/asm/setup.h:11:13: error: > expected '=', ',', ';', 'asm' or '__attribute__' before 'or1k_early_setup' > 11 | void __init or1k_early_setup(void *fdt); > | ^~~~~~~~~~~~~~~~ > make[1]: *** [scripts/Makefile.build:272: lib/generic-radix-tree.o] Error 1 > > Bisect log attached for completeness. That needs #include -- ~Randy