Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1761585rwd; Fri, 9 Jun 2023 01:33:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5NBk5EA0ia+b5IxuUUPQsxv339cTQUH5y/4EzrvKKUnYbOvNoZ0CQIhHxP29RwlRPkXRH3 X-Received: by 2002:aca:2216:0:b0:398:26f0:67a9 with SMTP id b22-20020aca2216000000b0039826f067a9mr888837oic.55.1686299622181; Fri, 09 Jun 2023 01:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686299622; cv=none; d=google.com; s=arc-20160816; b=mv6+3oMqYegAzDCNM9s11X/Ly4rBQeVPDkyB+mrzKUC7rtK/kDvcsDZudsx6Q0jOAP RDXHYJo5oqdgnjEy9ibKssYJjkNw8ER/Ebzj9Ixt0o6g1EJylyMPyeFYVx9mKltKh0ZP YD/FvnS7bQ93aTTPb67q4D4LbGNg2yUXh6W62fSVuY7aBJVrzt5Nbb2rELIDj8NfP5FX QDVy9e3/eiGt72SEoWlKe3YENkvfMMvRZ6TcLJ63GxlYbhxMM7V4QbWuUDRatFYRqkaZ w2wbQ6NNpyOYepDsKevYqIKsdCSbCxMLe7A9cQ+W60T/TXi6BfTgT73YrTaCx7bZXCxg MAEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=24qOY0Re3wjZjQTrvQeg9mSIA8iH0176/s5qU47UWyY=; b=azf8bG30wNTH1qvSh76fq5KZaK7ODjjfmnrW9/gsfmAnFGScwMmuzyckKXQDd5UYL/ 1FYy9b7BZDcdWcztMUo6d2MMx9EayMpRYYhniyQi7xUesfJWi9Ju+pfCYen7z0CeKd/l wZOdakcyWDKB+k7oJL2k9DEhhJEuTgKK4Nf3b5q/d9P8AhGgrr0LZBh9/vlBU96DZXty rULTY7cl8sv9CUPUtYB0diJvwVO+XYh/chlNYl5/YmKWr8GPjDsP1TJZADRxdqupSA03 pYbGpdrjuRr3uGaxW4HzlH6KvNwFMFPZZaQWX/x6NWKqjGxG3TCCfjfc7YNdvGsx0erF zcYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v23-20020a17090ae99700b0024e036ec731si2418427pjy.36.2023.06.09.01.33.29; Fri, 09 Jun 2023 01:33:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240774AbjFII05 (ORCPT + 99 others); Fri, 9 Jun 2023 04:26:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241417AbjFIIZx (ORCPT ); Fri, 9 Jun 2023 04:25:53 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 37E6F3C03; Fri, 9 Jun 2023 01:24:52 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1q7XQE-0004Jv-00; Fri, 09 Jun 2023 10:24:38 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 7C157C02EB; Fri, 9 Jun 2023 10:16:25 +0200 (CEST) Date: Fri, 9 Jun 2023 10:16:25 +0200 From: Thomas Bogendoerfer To: Arnd Bergmann Cc: Arnd Bergmann , Greg Kroah-Hartman , Geert Uytterhoeven , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mips: provide unxlate_dev_mem_ptr() in asm/io.h Message-ID: <20230609081625.GA8160@alpha.franken.de> References: <20230516194000.548487-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230516194000.548487-1-arnd@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 16, 2023 at 09:39:42PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The unxlate_dev_mem_ptr() function has no prototype on the mips > architecture, which does not include asm-generic/io.h, so gcc warns > about the __weak definition: > > drivers/char/mem.c:94:29: error: no previous prototype for 'unxlate_dev_mem_ptr' [-Werror=missing-prototypes] > > Since everyone else already gets the generic definition or has a custom > one, there is not really much point in having a __weak version as well. > > Remove this one, and instead add a trivial macro to the mips header. > Once we convert mips to use the asm-generic header, this can go away > again. > > Signed-off-by: Arnd Bergmann > --- > arch/mips/include/asm/io.h | 1 + > drivers/char/mem.c | 7 ------- > 2 files changed, 1 insertion(+), 7 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]