Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752898AbbD0ILq (ORCPT ); Mon, 27 Apr 2015 04:11:46 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:44704 "EHLO e06smtp17.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752789AbbD0ILm (ORCPT ); Mon, 27 Apr 2015 04:11:42 -0400 Message-ID: <553DEF35.5000901@de.ibm.com> Date: Mon, 27 Apr 2015 10:11:33 +0200 From: Christian Borntraeger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Michael Mueller , qemu-devel@nongnu.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org CC: Eduardo Habkost , Gleb Natapov , Alexander Graf , Daniel Hansel , "Jason J. Herne" , Cornelia Huck , Paolo Bonzini , Richard Henderson , Andreas Faerber Subject: Re: [Qemu-devel] [PATCH v5 10/17] target-s390x: Add S390 CPU model alias definition routines References: <1428933396-37887-1-git-send-email-mimu@linux.vnet.ibm.com> <1428933396-37887-11-git-send-email-mimu@linux.vnet.ibm.com> In-Reply-To: <1428933396-37887-11-git-send-email-mimu@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15042708-0029-0000-0000-0000045E781C Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1247 Lines: 39 Am 13.04.2015 um 15:56 schrieb Michael Mueller: > --- a/target-s390x/cpu-models.c > +++ b/target-s390x/cpu-models.c > @@ -88,3 +88,85 @@ S390_PROC_DEF("2827-ga2", CPU_S390_2827_GA2, "IBM zEnterprise EC12 GA2") [...] > +int set_s390_cpu_alias(const char *name, const char *model) > +{ > + S390CPUAlias *alias; > + > + if (!name || !model) { > + return -EINVAL; > + } > + if (!strcmp(name, model)) { > + return -EINVAL; > + } > + if (!s390_cpu_class_by_name(model)) { > + return -EINVAL; > + } > + alias = g_try_malloc0(sizeof(S390CPUAlias)); > + if (!alias) { > + return -ENOMEM; > + } > + alias->name = g_strdup(name); > + alias->model = g_strdup(model); > + s390_cpu_aliases = g_slist_append(s390_cpu_aliases, alias); > + return 0; > +} > + Applying: target-s390x: Add S390 CPU model alias definition routines /home/cborntra/REPOS/qemu/.git/rebase-apply/patch:96: new blank line at EOF. + warning: 1 line adds whitespace errors. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/