xref: /OK3568_Linux_fs/kernel/LICENSES/dual/Apache-2.0 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunValid-License-Identifier: Apache-2.0
2*4882a593SmuzhiyunSPDX-URL: https://spdx.org/licenses/Apache-2.0.html
3*4882a593SmuzhiyunUsage-Guide:
4*4882a593Smuzhiyun  Do NOT use. The Apache-2.0 is not GPL2 compatible. It may only be used
5*4882a593Smuzhiyun  for dual-licensed files where the other license is GPL2 compatible.
6*4882a593Smuzhiyun  If you end up using this it MUST be used together with a GPL2 compatible
7*4882a593Smuzhiyun  license using "OR".
8*4882a593Smuzhiyun  To use the Apache License version 2.0 put the following SPDX tag/value
9*4882a593Smuzhiyun  pair into a comment according to the placement guidelines in the
10*4882a593Smuzhiyun  licensing rules documentation:
11*4882a593Smuzhiyun    SPDX-License-Identifier: Apache-2.0
12*4882a593SmuzhiyunLicense-Text:
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunApache License
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunVersion 2.0, January 2004
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunhttp://www.apache.org/licenses/
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun1. Definitions.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun"License" shall mean the terms and conditions for use, reproduction, and
25*4882a593Smuzhiyundistribution as defined by Sections 1 through 9 of this document.
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun"Licensor" shall mean the copyright owner or entity authorized by the
28*4882a593Smuzhiyuncopyright owner that is granting the License.
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun"Legal Entity" shall mean the union of the acting entity and all other
31*4882a593Smuzhiyunentities that control, are controlled by, or are under common control with
32*4882a593Smuzhiyunthat entity. For the purposes of this definition, "control" means (i) the
33*4882a593Smuzhiyunpower, direct or indirect, to cause the direction or management of such
34*4882a593Smuzhiyunentity, whether by contract or otherwise, or (ii) ownership of fifty
35*4882a593Smuzhiyunpercent (50%) or more of the outstanding shares, or (iii) beneficial
36*4882a593Smuzhiyunownership of such entity.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun"You" (or "Your") shall mean an individual or Legal Entity exercising
39*4882a593Smuzhiyunpermissions granted by this License.
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun"Source" form shall mean the preferred form for making modifications,
42*4882a593Smuzhiyunincluding but not limited to software source code, documentation source,
43*4882a593Smuzhiyunand configuration files.
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun"Object" form shall mean any form resulting from mechanical transformation
46*4882a593Smuzhiyunor translation of a Source form, including but not limited to compiled
47*4882a593Smuzhiyunobject code, generated documentation, and conversions to other media types.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun"Work" shall mean the work of authorship, whether in Source or Object form,
50*4882a593Smuzhiyunmade available under the License, as indicated by a copyright notice that
51*4882a593Smuzhiyunis included in or attached to the work (an example is provided in the
52*4882a593SmuzhiyunAppendix below).
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun"Derivative Works" shall mean any work, whether in Source or Object form,
55*4882a593Smuzhiyunthat is based on (or derived from) the Work and for which the editorial
56*4882a593Smuzhiyunrevisions, annotations, elaborations, or other modifications represent, as
57*4882a593Smuzhiyuna whole, an original work of authorship. For the purposes of this License,
58*4882a593SmuzhiyunDerivative Works shall not include works that remain separable from, or
59*4882a593Smuzhiyunmerely link (or bind by name) to the interfaces of, the Work and Derivative
60*4882a593SmuzhiyunWorks thereof.
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun"Contribution" shall mean any work of authorship, including the original
63*4882a593Smuzhiyunversion of the Work and any modifications or additions to that Work or
64*4882a593SmuzhiyunDerivative Works thereof, that is intentionally submitted to Licensor for
65*4882a593Smuzhiyuninclusion in the Work by the copyright owner or by an individual or Legal
66*4882a593SmuzhiyunEntity authorized to submit on behalf of the copyright owner. For the
67*4882a593Smuzhiyunpurposes of this definition, "submitted" means any form of electronic,
68*4882a593Smuzhiyunverbal, or written communication sent to the Licensor or its
69*4882a593Smuzhiyunrepresentatives, including but not limited to communication on electronic
70*4882a593Smuzhiyunmailing lists, source code control systems, and issue tracking systems that
71*4882a593Smuzhiyunare managed by, or on behalf of, the Licensor for the purpose of discussing
72*4882a593Smuzhiyunand improving the Work, but excluding communication that is conspicuously
73*4882a593Smuzhiyunmarked or otherwise designated in writing by the copyright owner as "Not a
74*4882a593SmuzhiyunContribution."
75*4882a593Smuzhiyun
76*4882a593Smuzhiyun"Contributor" shall mean Licensor and any individual or Legal Entity on
77*4882a593Smuzhiyunbehalf of whom a Contribution has been received by Licensor and
78*4882a593Smuzhiyunsubsequently incorporated within the Work.
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun2. Grant of Copyright License. Subject to the terms and conditions of this
81*4882a593Smuzhiyun   License, each Contributor hereby grants to You a perpetual, worldwide,
82*4882a593Smuzhiyun   non-exclusive, no-charge, royalty-free, irrevocable copyright license to
83*4882a593Smuzhiyun   reproduce, prepare Derivative Works of, publicly display, publicly
84*4882a593Smuzhiyun   perform, sublicense, and distribute the Work and such Derivative Works
85*4882a593Smuzhiyun   in Source or Object form.
86*4882a593Smuzhiyun
87*4882a593Smuzhiyun3. Grant of Patent License. Subject to the terms and conditions of this
88*4882a593Smuzhiyun   License, each Contributor hereby grants to You a perpetual, worldwide,
89*4882a593Smuzhiyun   non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
90*4882a593Smuzhiyun   this section) patent license to make, have made, use, offer to sell,
91*4882a593Smuzhiyun   sell, import, and otherwise transfer the Work, where such license
92*4882a593Smuzhiyun   applies only to those patent claims licensable by such Contributor that
93*4882a593Smuzhiyun   are necessarily infringed by their Contribution(s) alone or by
94*4882a593Smuzhiyun   combination of their Contribution(s) with the Work to which such
95*4882a593Smuzhiyun   Contribution(s) was submitted. If You institute patent litigation
96*4882a593Smuzhiyun   against any entity (including a cross-claim or counterclaim in a
97*4882a593Smuzhiyun   lawsuit) alleging that the Work or a Contribution incorporated within
98*4882a593Smuzhiyun   the Work constitutes direct or contributory patent infringement, then
99*4882a593Smuzhiyun   any patent licenses granted to You under this License for that Work
100*4882a593Smuzhiyun   shall terminate as of the date such litigation is filed.
101*4882a593Smuzhiyun
102*4882a593Smuzhiyun4. Redistribution. You may reproduce and distribute copies of the Work or
103*4882a593Smuzhiyun   Derivative Works thereof in any medium, with or without modifications,
104*4882a593Smuzhiyun   and in Source or Object form, provided that You meet the following
105*4882a593Smuzhiyun   conditions:
106*4882a593Smuzhiyun
107*4882a593Smuzhiyun   a. You must give any other recipients of the Work or Derivative Works a
108*4882a593Smuzhiyun      copy of this License; and
109*4882a593Smuzhiyun
110*4882a593Smuzhiyun   b. You must cause any modified files to carry prominent notices stating
111*4882a593Smuzhiyun      that You changed the files; and
112*4882a593Smuzhiyun
113*4882a593Smuzhiyun   c. You must retain, in the Source form of any Derivative Works that You
114*4882a593Smuzhiyun      distribute, all copyright, patent, trademark, and attribution notices
115*4882a593Smuzhiyun      from the Source form of the Work, excluding those notices that do not
116*4882a593Smuzhiyun      pertain to any part of the Derivative Works; and
117*4882a593Smuzhiyun
118*4882a593Smuzhiyun   d. If the Work includes a "NOTICE" text file as part of its
119*4882a593Smuzhiyun      distribution, then any Derivative Works that You distribute must
120*4882a593Smuzhiyun      include a readable copy of the attribution notices contained within
121*4882a593Smuzhiyun      such NOTICE file, excluding those notices that do not pertain to any
122*4882a593Smuzhiyun      part of the Derivative Works, in at least one of the following
123*4882a593Smuzhiyun      places: within a NOTICE text file distributed as part of the
124*4882a593Smuzhiyun      Derivative Works; within the Source form or documentation, if
125*4882a593Smuzhiyun      provided along with the Derivative Works; or, within a display
126*4882a593Smuzhiyun      generated by the Derivative Works, if and wherever such third-party
127*4882a593Smuzhiyun      notices normally appear. The contents of the NOTICE file are for
128*4882a593Smuzhiyun      informational purposes only and do not modify the License. You may
129*4882a593Smuzhiyun      add Your own attribution notices within Derivative Works that You
130*4882a593Smuzhiyun      distribute, alongside or as an addendum to the NOTICE text from the
131*4882a593Smuzhiyun      Work, provided that such additional attribution notices cannot be
132*4882a593Smuzhiyun      construed as modifying the License.
133*4882a593Smuzhiyun
134*4882a593Smuzhiyun    You may add Your own copyright statement to Your modifications and may
135*4882a593Smuzhiyun    provide additional or different license terms and conditions for use,
136*4882a593Smuzhiyun    reproduction, or distribution of Your modifications, or for any such
137*4882a593Smuzhiyun    Derivative Works as a whole, provided Your use, reproduction, and
138*4882a593Smuzhiyun    distribution of the Work otherwise complies with the conditions stated
139*4882a593Smuzhiyun    in this License.
140*4882a593Smuzhiyun
141*4882a593Smuzhiyun5. Submission of Contributions. Unless You explicitly state otherwise, any
142*4882a593Smuzhiyun   Contribution intentionally submitted for inclusion in the Work by You to
143*4882a593Smuzhiyun   the Licensor shall be under the terms and conditions of this License,
144*4882a593Smuzhiyun   without any additional terms or conditions. Notwithstanding the above,
145*4882a593Smuzhiyun   nothing herein shall supersede or modify the terms of any separate
146*4882a593Smuzhiyun   license agreement you may have executed with Licensor regarding such
147*4882a593Smuzhiyun   Contributions.
148*4882a593Smuzhiyun
149*4882a593Smuzhiyun6. Trademarks. This License does not grant permission to use the trade
150*4882a593Smuzhiyun   names, trademarks, service marks, or product names of the Licensor,
151*4882a593Smuzhiyun   except as required for reasonable and customary use in describing the
152*4882a593Smuzhiyun   origin of the Work and reproducing the content of the NOTICE file.
153*4882a593Smuzhiyun
154*4882a593Smuzhiyun7. Disclaimer of Warranty. Unless required by applicable law or agreed to
155*4882a593Smuzhiyun   in writing, Licensor provides the Work (and each Contributor provides
156*4882a593Smuzhiyun   its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
157*4882a593Smuzhiyun   OF ANY KIND, either express or implied, including, without limitation,
158*4882a593Smuzhiyun   any warranties or conditions of TITLE, NON-INFRINGEMENT,
159*4882a593Smuzhiyun   MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
160*4882a593Smuzhiyun   responsible for determining the appropriateness of using or
161*4882a593Smuzhiyun   redistributing the Work and assume any risks associated with Your
162*4882a593Smuzhiyun   exercise of permissions under this License.
163*4882a593Smuzhiyun
164*4882a593Smuzhiyun8. Limitation of Liability. In no event and under no legal theory, whether
165*4882a593Smuzhiyun   in tort (including negligence), contract, or otherwise, unless required
166*4882a593Smuzhiyun   by applicable law (such as deliberate and grossly negligent acts) or
167*4882a593Smuzhiyun   agreed to in writing, shall any Contributor be liable to You for
168*4882a593Smuzhiyun   damages, including any direct, indirect, special, incidental, or
169*4882a593Smuzhiyun   consequential damages of any character arising as a result of this
170*4882a593Smuzhiyun   License or out of the use or inability to use the Work (including but
171*4882a593Smuzhiyun   not limited to damages for loss of goodwill, work stoppage, computer
172*4882a593Smuzhiyun   failure or malfunction, or any and all other commercial damages or
173*4882a593Smuzhiyun   losses), even if such Contributor has been advised of the possibility of
174*4882a593Smuzhiyun   such damages.
175*4882a593Smuzhiyun
176*4882a593Smuzhiyun9. Accepting Warranty or Additional Liability. While redistributing the
177*4882a593Smuzhiyun   Work or Derivative Works thereof, You may choose to offer, and charge a
178*4882a593Smuzhiyun   fee for, acceptance of support, warranty, indemnity, or other liability
179*4882a593Smuzhiyun   obligations and/or rights consistent with this License. However, in
180*4882a593Smuzhiyun   accepting such obligations, You may act only on Your own behalf and on
181*4882a593Smuzhiyun   Your sole responsibility, not on behalf of any other Contributor, and
182*4882a593Smuzhiyun   only if You agree to indemnify, defend, and hold each Contributor
183*4882a593Smuzhiyun   harmless for any liability incurred by, or claims asserted against, such
184*4882a593Smuzhiyun   Contributor by reason of your accepting any such warranty or additional
185*4882a593Smuzhiyun   liability.
186*4882a593Smuzhiyun
187*4882a593SmuzhiyunEND OF TERMS AND CONDITIONS
188