Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10662862imu; Mon, 31 Dec 2018 04:21:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN6TVR5kiDkKUdHBe4IMeGyeRk78TFvFh5/hoPZapTPU792MA7+Qai4O1m6jRCcIi9j12Wk4 X-Received: by 2002:a17:902:7848:: with SMTP id e8mr37795446pln.100.1546258860197; Mon, 31 Dec 2018 04:21:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546258860; cv=none; d=google.com; s=arc-20160816; b=znM7Kbng4wulPyaramZn3+LdkY4kMRs3yzfXZRCqnPCKBWtGB8inGpBAy2L3YjK73S 8XjcOjX6cZBL6SmbPKDHoZF4SC8AUly0Nt8DkVMYguOKOrwMsI6q8ZZQPf5rIV6PrK3M k9FSC10mgXabUd5ljqdJllW3uo4ugxsJ7Vbup+6/5PY9usOIsOKVQXaIWXpTyyT5kvrL 4s/dOwDYDbq7f8pCsuqVv7LofoufxYDpnlvJDrrUDkBH+rfm7jP8SlBLZ0BNNG3L+JQb +8Ex5yTgOABQZITZdRT2iOUVztUpqtlEExAhmPAo40UUU8dem7JsWhYWBo2coyXsmO4O kphQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=LtZXBXSwQzuhM6llgbZc1NEGQibmPDxx7rAlim7Nhm0=; b=sJXhZb1fDOo23j73AX2Oxmd9zKBr3bepsQxg8I80ACc5a8Jze/JM5nVSLLXaTf9Ozj QKXUwu54YPmHK6xyfTFdjolAg183L1yRw9+z19OaG1SpR+k+Ickhs/wHGUidq5wz12tv vplOeOTkWdwuppPHN9ylYNFgoo5C+8iq04wOZGpy+nYf8TQ0dL0Ie5OJQVi3EqSM6hQv q9NIemiZ9IrPeALb29qrlvliS2M235oxHaW2w4IZjs6/l/AnhBbEmaY2Y+Q2eBsl/yFO 9Oku+YskrJrzk5tTet9ih9t4HAiYM86f5NgPJA9p2jln2oer9sdBSeKrN7TuddzSI7El LA6g== 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 t4si12485348pgg.110.2018.12.31.04.20.45; Mon, 31 Dec 2018 04:21:00 -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 S1727301AbeLaMTU (ORCPT + 99 others); Mon, 31 Dec 2018 07:19:20 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:35960 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727167AbeLaMTU (ORCPT ); Mon, 31 Dec 2018 07:19:20 -0500 Received: by mail-qt1-f194.google.com with SMTP id t13so29165087qtn.3 for ; Mon, 31 Dec 2018 04:19:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LtZXBXSwQzuhM6llgbZc1NEGQibmPDxx7rAlim7Nhm0=; b=jwvAlB2nrWYa/UMk5VSLrbNpWCywKCyx7vUU8yo7v2khuwzL3eCzeGw6ph05BM2gXX C1bvxS+c1ighlCvO3E+BtdKtVmmVrlm+tHT0rIVRJsjPMtrOq6C633CHNgxK+Iy1f1D0 b95RVxRv6nc2F4AF2qpTERzmMiMdI5RKpoeXE5jhlLUyaBP/URPexsI7hi75XFmt8fA2 wcHA4GVUFf3f6HRkt6El+9SPbo16Gf0zYbCAMvDQYiaSjkJueCCWbNrE+NnUo94SYJ6Q SvtuDU0CJioUmrUb0lWr1vAF4mAgYx/Gq5hhK3s44K8M6yMemTN/p4xgglrySrSxD8rb MQKA== X-Gm-Message-State: AJcUukc3JDOxe9exmRWIuphImJCzo1tCjTRwezyYO1cYav5b/Mna1vWX WLNoxV9z0T8A7L8WVCsmbth2r5hjuziCpT7VWZI= X-Received: by 2002:a0c:f50c:: with SMTP id j12mr35156465qvm.149.1546258759237; Mon, 31 Dec 2018 04:19:19 -0800 (PST) MIME-Version: 1.0 References: <505240b144f1666acf26a3c1e93c8e6868fe1408.1545784679.git.fthain@telegraphics.com.au> <20181230185300.Horde.o5iU5x8n8UeDsyjemaBU_w7@messagerie.si.c-s.fr> In-Reply-To: From: Arnd Bergmann Date: Mon, 31 Dec 2018 13:19:03 +0100 Message-ID: Subject: Re: [PATCH v8 13/25] m68k: Dispatch nvram_ops calls to Atari or Mac functions To: Finn Thain Cc: LEROY Christophe , Joshua Thompson , linuxppc-dev , Geert Uytterhoeven , linux-m68k , Linux Kernel Mailing List , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 30, 2018 at 11:12 PM Finn Thain wrote: > On Sun, 30 Dec 2018, LEROY Christophe wrote: > But I'm over-simplifying. Arnd's alternative actually goes like this, > > #if defined(CONFIG_MAC) && !defined(CONFIG_ATARI) > const struct nvram_ops arch_nvram_ops = { > /* ... */ > } > #elif !defined(CONFIG_MAC) && defined(CONFIG_ATARI) > const struct nvram_ops arch_nvram_ops = { > /* ... */ > } > #elif defined(CONFIG_MAC) && defined(CONFIG_ATARI) > const struct nvram_ops arch_nvram_ops = { > /* ... */ > } > #endif > > So, you're right, this isn't "duplication", it's "triplication". Ok, I failed to realized that MAC and ATARI are not mutually exclusive. I agree that your original version is best then. Arnd