Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1946147yba; Fri, 10 May 2019 03:53:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvgdHD0twQ9M858KsVji+Q7oDHJSRIykMeo2ixCHp3gG7KvNrtm9nsudhgPxzmKAZHmLLZ X-Received: by 2002:a62:75d8:: with SMTP id q207mr12778761pfc.35.1557485630999; Fri, 10 May 2019 03:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557485630; cv=none; d=google.com; s=arc-20160816; b=RZxyfg6cjS9Lmd7Q5tXpTUZP+OrJbJ7/68FVl+OhQXSRIZFIiH5o2watZzO7Pp5Ur8 ImccI9UneEbLiVyNvD62BPHxFxG78fgOHO+NC88jIK/RHDu8NP6itllYWQAx+MUoXETf 7T+5QET2vE/cbLSzvxntqzpZLRyEkAjW9fXX8vZBC/RC7f6rZj+gz81zgjxu0WSOQD1Z G0cHXvAMSxUF21M3nmajB4gznpLRHsM8YoZ+nt6D0q2eQeldrnkIySOjesszCaLIo1AC PDwIf5sAG36g6p/LSB5uFibN9ykE9hul2RMjdmmK779PhY/DfjT/YJfXusrloSG1zwF1 tLng== 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=umEmxrMGtqIbEDWu5METn2PuovP8siL3liU50f/hxe8=; b=VEy1hz+hooMUGg2PTRQi4C6auB5+njERcG9cd+dwiSChu9LmSSM4v0aByzSvEaPGa0 IANv3eBmYq2MBz/+7Es+wVWDfvFXzrFuGbKmznkEQqV1+/Is76tOsDh7kp+VltuQeHsM pUWuGjJrK0J877t5EO/2WItAf7sjxhF8SOBt9Hi2zl4/zLWlHkEgPdVE+UildEwE+oQz TxSZUkKX3On+yTb0e595RD+oki81dc9McliRGF+gXeI88SJfkP3Z3tY6PWrDekrlX4Ok BJ2akUJ5iiac4tT0+7AyVxkLFmTaFESNP+VeIJYYI/mlFUQsi/+j5V8/UQ0RxQZjXJgW wcTg== 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 d2si6622141pgv.315.2019.05.10.03.53.35; Fri, 10 May 2019 03:53:50 -0700 (PDT) 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 S1727504AbfEJKuz (ORCPT + 99 others); Fri, 10 May 2019 06:50:55 -0400 Received: from ozlabs.org ([203.11.71.1]:35787 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727049AbfEJKuz (ORCPT ); Fri, 10 May 2019 06:50:55 -0400 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 (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 450n7J1Wj0z9s4V; Fri, 10 May 2019 20:50:51 +1000 (AEST) From: Michael Ellerman To: Borislav Petkov Cc: Johannes Thumshirn , linux-edac@vger.kernel.org, mchehab@kernel.org, james.morse@arm.com, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org Subject: Re: [PATCH] EDAC, mpc85xx: Prevent building as a module In-Reply-To: <20190509180220.GH17053@zn.tnic> References: <20190502141941.12927-1-mpe@ellerman.id.au> <20190506065045.GA3901@x250> <20190508101238.GB19015@zn.tnic> <87o94bvfxm.fsf@concordia.ellerman.id.au> <20190509145534.GD17053@zn.tnic> <20190509180220.GH17053@zn.tnic> Date: Fri, 10 May 2019 20:50:52 +1000 Message-ID: <87bm0avb03.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 Borislav Petkov writes: > On Thu, May 09, 2019 at 04:55:34PM +0200, Borislav Petkov wrote: >> On Fri, May 10, 2019 at 12:52:05AM +1000, Michael Ellerman wrote: >> > Thanks. It would be nice if you could send it as a fix for 5.2, it's the >> > last thing blocking one of my allmodconfig builds. But if you don't >> > think it qualifies as a fix that's fine too, it can wait. >> >> Sure, no problem. Will do a pull request later. > > Hmm, so looking at this more, I was able to produce this config with my > ancient cross-compiler: > > CONFIG_EDAC_SUPPORT=y > CONFIG_EDAC=m > CONFIG_EDAC_LEGACY_SYSFS=y > CONFIG_EDAC_MPC85XX=y Oh yeah good point. > Now, mpc85xx_edac is built-in and edac_core.ko is a module > (CONFIG_EDAC=m) and that should not work - i.e., builtin code calling > module functions. But my cross-compiler is happily building this without > complaint. Or maybe I'm missing something. That's weird. > In any case, I *think* the proper fix should be to do: > > config EDAC_MPC85XX > bool "Freescale MPC83xx / MPC85xx" > depends on FSL_SOC && EDAC=y > > so that you can't even produce the above invalid .config snippet. > > Hmmm? Yeah that looks better to me. I didn't think about the case where EDAC core is modular. Do you want me to send a new patch? cheers