From nobody Mon Dec 29 03:00:03 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31090C4167B for ; Fri, 1 Dec 2023 05:52:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377543AbjLAFwB (ORCPT ); Fri, 1 Dec 2023 00:52:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377566AbjLAFv6 (ORCPT ); Fri, 1 Dec 2023 00:51:58 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294921734 for ; Thu, 30 Nov 2023 21:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=fEQIY/PD10m5ObiwbCiBSgJ8pMG7R2h3xIOqhN7l6kY=; b=J3Y6GAJ8b2oKbSPrhjOIfHQA5z ImDO/K6arjtQ4MeyJZbODC2wIvwGdwobigg0d7koHXiI285IKzDXOvvLAEiUtbz73HQksa4L9dz1a rbud8kJONWbL6jLjU5+BLFPn4basQoDFn77APeRKK3chzNkFZfL+iwOALbnb8FrJE9/vS5g4EYynI hNCDFecI41pWNIzOrke/THoFn4XNPUb1zQfUEtVIVweqtOBzqrhW1Q9a3CoAnGYhmTV5Bcr9U7pq1 AtRD4rDoaTIorlge6PNb7qc0VYFbwQWEQwQ4rciHSmTZOSuCmYTaWTazOQYQTXbLz3dKcyLKi1BcS P+V9ZSEA==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r8wRU-00CiyY-06; Fri, 01 Dec 2023 05:52:00 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Alistair Popple , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, Michael Ellerman Subject: [PATCH] powerpc/44x: select I2C for CURRITUCK Date: Thu, 30 Nov 2023 21:51:59 -0800 Message-ID: <20231201055159.8371-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Fix build errors when CURRITUCK=3Dy and I2C is not builtin (=3Dm or is not set). Fixes these build errors: powerpc-linux-ld: arch/powerpc/platforms/44x/ppc476.o: in function `avr_hal= t_system': ppc476.c:(.text+0x58): undefined reference to `i2c_smbus_write_byte_data' powerpc-linux-ld: arch/powerpc/platforms/44x/ppc476.o: in function `ppc47x_= device_probe': ppc476.c:(.init.text+0x18): undefined reference to `i2c_register_driver' Fixes: 2a2c74b2efcb ("IBM Akebono: Add the Akebono platform") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Closes: lore.kernel.org/r/202312010820.cmdwF5X9-lkp@intel.com Cc: Alistair Popple Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org Cc: Michael Ellerman --- arch/powerpc/platforms/44x/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/K= config --- a/arch/powerpc/platforms/44x/Kconfig +++ b/arch/powerpc/platforms/44x/Kconfig @@ -173,6 +173,7 @@ config ISS4xx config CURRITUCK bool "IBM Currituck (476fpe) Support" depends on PPC_47x + select I2C select SWIOTLB select 476FPE select FORCE_PCI