Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2048000rdh; Tue, 26 Sep 2023 10:40:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfI7G4rW6AgjPQVEdAOSXpMUr0JsZ+s/RhZ2l1aYS9/uMP7T1zDGy8jPZ3Be6w858kRdiQ X-Received: by 2002:a05:6870:ea8a:b0:1bb:7d24:eabb with SMTP id s10-20020a056870ea8a00b001bb7d24eabbmr14297050oap.0.1695750029942; Tue, 26 Sep 2023 10:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695750029; cv=none; d=google.com; s=arc-20160816; b=sCCBfdWBntZeZh1BOxx2f61wK1cI2rKjR08qi56XhlU9TsRfIafpgSTO6RMuC/at0D 84WT1iNNl0zAbXsURqkgNnC7c08tfXsCixBO8pIb5ulQV+U5avdkqvfrojk1GSKXWDxw hksn7fv4PtvbC1RcYYsVlEmoKQ3ps+C9uzQHzYZu2sF6I12Qky/o/UvUEvhNcJeumh34 /6rpMrswC1YJpekXvVaPikF5h0TZfUU0sUs5NV8K0sBI2GaGQsoIA6TWHC8CBxQNFOXs rqqxJK9wrMo7Y5kJ58vJq7dMsm4POY20WzGEMvo8ordo4b2gk0crS805c7I2/UYxnn78 CoUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rG/CnIilUKIx4ZX6uO8pwj0iKoMPMtAHHOSA84Y3klc=; fh=+K6kSTKqIkYTuCHgCTVAsVdSH2TMCR1/2DgQ+SNrWQA=; b=Mtl8NcnlzjEMVxLnKh6BxzoTGoqAHTYu9TecHFpybb55GzC1e/2QwQJnKRBJ0+k1VZ Kwk98LMP7eQ5pYyiIAZ8n/46n+ipLAjM7iqQL0xtV+4/X3ORmqoookDB2ggTWJZ1Q7pA ixUMTk3doc/eoM5gjdiW4LzMo4h4uQyvmaOHRsU+99UF5uKFhfS/pUBAXe7yIosBIDnY YEvQ42wQf85CGVSfDuTTc3Tp5P0xogWTZ20a2A7HsGNnIlagJysRtvEW0TFg3XpiysHd /qcnf6zJFnWGd6yBmn9feNy+9WcZJJGZKPSxwi0o5ik+M3TwvqXx+AqmEDAei+Bqu1gs VdQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=oL6Kmepz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k33-20020a634b61000000b00578a084850dsi12746178pgl.720.2023.09.26.10.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=oL6Kmepz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 60B10824E794; Tue, 26 Sep 2023 10:28:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233251AbjIZR2t (ORCPT + 99 others); Tue, 26 Sep 2023 13:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232053AbjIZR2s (ORCPT ); Tue, 26 Sep 2023 13:28:48 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 451EEDC for ; Tue, 26 Sep 2023 10:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rG/CnIilUKIx4ZX6uO8pwj0iKoMPMtAHHOSA84Y3klc=; b=oL6KmepzwMN9ufGtDVxIlPLOip Bk9seHkrZWGWXfzn+vKMHLBSAw85EFiILd4DQw0SqVrMxBA2na3iCTVMJnbhGa+ykUY2jbeKuZ4wI w0nDkRSDQVU+NF8Bc1j+VIyUsGv5/xo4ZOK9KRejACxssMau/JA0LIyt2zAYCsEEjIgTZxC/pggej zVMfDP+GNNgMHBjojyriUnMWYI+dtctGLwat71ADQNTHUAyCw0V18eJFV9GQbvuGJ+RA7CVHwo0MT H/sPvlLIrZOWvRCrIu/8LBHZto57abnEpwSDzHEQqNecEpBD6rwPu/eLZJoEhY4RQcGoEZqf7rjey 4QFknl2w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55628) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qlBrN-0002jh-1F; Tue, 26 Sep 2023 18:28:33 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qlBrM-0000aU-Nt; Tue, 26 Sep 2023 18:28:32 +0100 Date: Tue, 26 Sep 2023 18:28:32 +0100 From: "Russell King (Oracle)" To: Masahiro Yamada Cc: patches@armlinux.org.uk, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: make self-contained for ARM Message-ID: References: <20230926172253.73204-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230926172253.73204-1-masahiroy@kernel.org> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 10:28:46 -0700 (PDT) On Wed, Sep 27, 2023 at 02:22:53AM +0900, Masahiro Yamada wrote: > When I compiled the following code for ARM, I encountered numerous > errors. > > [Test Code] > > #include > #include > > int foo(int *x, int __user *ptr) > { > return get_user(*x, ptr); > } > > To fix them, make some asm headers self-contained: > > 1. In arch/arm/include/asm/traps.h, include for __init, > and for asmlinkage. Please drop the __init marking instead of adding linux/init.h, it's not necessary. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!