Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp192214imu; Thu, 10 Jan 2019 21:41:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ZwVby2l9VfUZFZhbKv/y7myz+Z7/zJ7V9cWn33By9oX0Etc3jPXnXwxEciQIicEY8csWc X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr13497153plo.50.1547185307029; Thu, 10 Jan 2019 21:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547185306; cv=none; d=google.com; s=arc-20160816; b=CSvKCXjEzBRhYVM94ypTJQcB+G9JDpsBc9gh4Vl6JyumCg051zqnxXyt3OsWidxnjr a9wRvjBUCNJuGYMZuXwCr1uKc5XY9WwxhyjBBmKNYjy0LHwz/PnzG6Bk+4tlP7eITaUS 6YBt/ZjKzCGPj+4IecqK2/9Qu5jVCIoww6EnlN0wx9B5f4u4FH+KReuWKJt6bh+Cbc0G rx0k5fvA3g5V57yNPtgclNAlL4pizGwz9g4qnU1a/kC6qZLt+tkuqMk0hobNH65Ql0rH mwiyS0jY1nRb9wxlrTsSSzgYpC2Q0S8COkMBF3wi3s5OQ87eMa3ojloEbVH8FLfViQPA UwzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=YXxFRa7g7Ek0jdXcv43CZQRn8lPQe/cbUuR1oNXl7r4=; b=NL0tyOHROw6J68cmoci9nOo60CzPBUIac9p2z4gx24pp77ZuzrW6gSYbVtCKUDoCL7 QeSZqLdMGOp9KxxRLVfqhedYReE3HgRjYuRkNxFobq6UCrlKaw2dn0jlc2s6MnbaRfKK FTDtzQ7n2oE/Lem2HeYF1w/uz75X7wHUvYv+nwrHJVqJr/MndPidOyh6RonWNWwAOsKJ tYCElZ+DLCafjnC2okonOvIGNINJXIkqeTAipwsHWSHubyBbFpdjhjhcgQ0pmvYPPHl/ ASqEF6D8XY0A7B1/Q0DnmIZTsMo8ijkXW5atSiBgjJy4/OgVGFnW9NeO0Wt5IQ+7PHaU 24vA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si3325950pgg.382.2019.01.10.21.41.31; Thu, 10 Jan 2019 21:41:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729827AbfAKFZh (ORCPT + 99 others); Fri, 11 Jan 2019 00:25:37 -0500 Received: from ozlabs.org ([203.11.71.1]:44133 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726581AbfAKFZh (ORCPT ); Fri, 11 Jan 2019 00:25:37 -0500 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 (2048 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43bWXt46Gwz9sN1; Fri, 11 Jan 2019 16:25:34 +1100 (AEDT) From: Michael Ellerman To: Masahiro Yamada , Alexey Kardashevskiy Cc: linuxppc-dev , Christophe Leroy , Linux Kernel Mailing List Subject: Re: [RFC PATCH kernel] powerpc/stack_protector: Fix external modules building In-Reply-To: References: <20190110054216.74248-1-aik@ozlabs.ru> Date: Fri, 11 Jan 2019 16:25:33 +1100 Message-ID: <877efbg3zm.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Masahiro Yamada writes: > On Thu, Jan 10, 2019 at 2:44 PM Alexey Kardashevskiy wrote: ... >> diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile >> index 488c9ed..0492f62 100644 >> --- a/arch/powerpc/Makefile >> +++ b/arch/powerpc/Makefile >> @@ -419,7 +419,11 @@ archheaders: >> ifdef CONFIG_STACKPROTECTOR >> prepare: stack_protector_prepare >> >> +ifeq ($(KBUILD_EXTMOD),) >> stack_protector_prepare: prepare0 >> +else >> +stack_protector_prepare: >> +endif > > > Honestly, I think this is ugly. Yes I would call it a hack :) > Do you want me to send an alternative solution? I don't grok how external modules are built well enough to work out what the right solution is. So if you can come up with something better that would be awesome. cheers